Re: Quicksort
- From: "robertwessel2@xxxxxxxxx" <robertwessel2@xxxxxxxxx>
- Date: Mon, 7 Jan 2008 16:52:28 -0800 (PST)
On Jan 7, 12:17 am, Adak <adak_d...@xxxxxxxxxxxxx> wrote:
Not imo. I've tested an iterative version of Quicksort, and it was
just slightly faster. IMO it wasn't
worth the bother of ensuring that the stack space was adequate. Also,
the recursive version is a beauty.
The iterative version is certainly not.
Do you mean the fully recursive version of Quicksort, where both
partitions are sorted recursively, or the semi-recursive version where
only the smaller partition is sorted recursively, and the larger one
iteratively?
Stack size is unavoidably a problem with the fully recursive version,
unless, of course you can afford order N stack space.
.
- Follow-Ups:
- Re: Quicksort
- From: cr88192
- Re: Quicksort
- From: robertwessel2@xxxxxxxxx
- Re: Quicksort
- References:
- Quicksort
- From: Roman Töngi
- Re: Quicksort
- From: Adak
- Quicksort
- Prev by Date: Re: Quicksort
- Next by Date: Can someone tell me if this is an asp program?
- Previous by thread: Re: Quicksort
- Next by thread: Re: Quicksort
- Index(es):