comp.lang.ada
 help / color / mirror / Atom feed
* QuickSort / Recursive Question
@ 2003-01-12  3:35 Jonny Ada
       [not found] ` <gu7rva.ur3.ln@beastie.ix.netcom.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Jonny Ada @ 2003-01-12  3:35 UTC (permalink / raw)


Ok. Ok. I'm doing my homework...

Basically i've been given a task to do and i'm a little confused with the
language of the question (i know it's not really relevant here).

I have a (small) linked list of integers and i've been asked to:

"Break it into two small lists (one bigger than a vaule one smaller blah
blah...). Sort the two smaller lists RECURSIVELY and then reassemble them
into one sorted list."

I've done the 'two smaller lists' bit but i'm not sure what is meant by
'recursive'. i know about calling a procedure from within the same procedure
and can do that but should i be breaking these two smaller lists into even
more smaller lists or sorting them by looking at the values and doing an
insertion sort or something.

I'd appreciate some help!

Thanks in advance!

Iain





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QuickSort / Recursive Question
       [not found] ` <gu7rva.ur3.ln@beastie.ix.netcom.com>
@ 2003-01-12 12:47   ` Jonny Ada
  2003-01-13 22:09     ` Stapler
  2003-01-14 15:27     ` vKp
  0 siblings, 2 replies; 4+ messages in thread
From: Jonny Ada @ 2003-01-12 12:47 UTC (permalink / raw)


That's brilliant! Thanks!





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QuickSort / Recursive Question
  2003-01-12 12:47   ` Jonny Ada
@ 2003-01-13 22:09     ` Stapler
  2003-01-14 15:27     ` vKp
  1 sibling, 0 replies; 4+ messages in thread
From: Stapler @ 2003-01-13 22:09 UTC (permalink / raw)


In article <avsj4k$vit$1@news8.svr.pol.co.uk>, Jonny Ada wrote:
> That's brilliant! Thanks!
> 
>

What's even more brilliant is the treatment Donald Knuth gives the
subject in The Art of Computer Programming. Look in the volume "Sorting
and Searching".

Stapler



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: QuickSort / Recursive Question
  2003-01-12 12:47   ` Jonny Ada
  2003-01-13 22:09     ` Stapler
@ 2003-01-14 15:27     ` vKp
  1 sibling, 0 replies; 4+ messages in thread
From: vKp @ 2003-01-14 15:27 UTC (permalink / raw)


"Jonny Ada" <surfer_rosa1134@hotmail.com> wrote in message
news:avsj4k$vit$1@news8.svr.pol.co.uk...
> That's brilliant! Thanks!
>
Any chance of posting the final algorithm you got? I would find it quite
useful for a project I'm doing.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-14 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-12  3:35 QuickSort / Recursive Question Jonny Ada
     [not found] ` <gu7rva.ur3.ln@beastie.ix.netcom.com>
2003-01-12 12:47   ` Jonny Ada
2003-01-13 22:09     ` Stapler
2003-01-14 15:27     ` vKp

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