comp.lang.ada
 help / color / mirror / Atom feed
From: bgillett@polyslo.CalPoly.EDU (Brad Gillette)
Subject: Re: Got any good ADA assignments ?
Date: 2 May 90 20:37:51 GMT	[thread overview]
Message-ID: <263f451f.625c@petunia.CalPoly.EDU> (raw)
In-Reply-To: 13137@udenva.cair.du.edu



I'm currently in a class of mostly senior and grad-level CSc
students being introduced to Ada.  An early assignment was to
implement Quick Sort in Ada along with the enhancement technicques
of median-of-three and 'default to insert sort' below a certain 
array size.

The next step was to modify the sort package to handle generic
types.  (The first step only sorted arrays of integers, but this
version must be able to handle various types of records with an
integer for a key.)

The last step will be to send the two sub-arrays resulting from
a Quick Sort partition to a parallel processor as two tasks.
Then as each of those sub-arrays is further partitioned, their
sub-arrays will be dealt with similiarly, and so on...
('course, you have to have a parallel processor for this last
step.)

bjg


-- 
Brad Gillette                       "Far be from us, Sire, the dangerous
bgillett.polyslo.CalPoly.EDU         novelty of thinking."  --Rector of the
                                     Univ. of Cervera to King Ferdinand.

           reply	other threads:[~1990-05-02 20:37 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <13137@udenva.cair.du.edu>]
replies disabled

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