comp.lang.ada
 help / color / mirror / Atom feed
From: Wilhelm Spickermann <uza.20.unbenutzbar@spamgourmet.com>
Subject: Re: Ada and multi-core CPUs
Date: Sat, 10 Sep 2005 10:27:34 +0200
Date: 2005-09-10T10:27:34+02:00	[thread overview]
Message-ID: <dfu5dm$1ief$1@ulysses.news.tiscali.de> (raw)
In-Reply-To: UKKdnZ2dnZ1Se429nZ2dnT5ivN6dnZ2dRVn-yJ2dnZ0@comcast.com

Hi,

tmoran@acm.org wrote:

> Iï¿œsplitï¿œtheï¿œdataï¿œarrayï¿œinï¿œhalf,
> sorting one half with the main program and the other with a
> separate task, then merged the two half-results.

Instead of merging, you could also insert another parallel sort,
one for both of the upper quarters and the other for both of the
lower quarters. After that, only the two inner quarters need to
be merged or sorted (perhaps recursively). 
(see D. E. Knuth: The Art of Computer Programming, Vol III
Sorting and Searching, 5.3.4 Networks for Sorting)

Wilhelm Spickermann




  reply	other threads:[~2005-09-10  8:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-09 21:33 Ada and multi-core CPUs tmoran
2005-09-10  8:27 ` Wilhelm Spickermann [this message]
2005-09-10 17:27   ` tmoran
2005-09-10 22:01     ` Adrian Knoth
2005-09-10 22:49       ` tmoran
2005-09-12 16:21         ` Jeffrey Carter
2005-09-12 15:48 ` Marc A. Criley
2005-09-12 19:43   ` tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox