Re: "Sorting" assignment
- From: pete <pfiland@xxxxxxxxxxxxxx>
- Date: Thu, 07 Feb 2008 17:23:06 -0500
Willem wrote:
You know, I just realized something.
Selection sort very easily evolves to Heapsort.
(Heapsort is selection sort,
but with a log-n datatype for the selection)
Bubble sort (a lot less neatly) evolves to Quicksort.
(Both involve swapping elements on the basis of comparisons)
Knuth classifies heapsort as a selection sort,
and he classifies both bubblesort and quicksort as exchange sorts.
--
pete
.
- References:
- "Sorting" assignment
- From: Ivica
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- From: Bartc
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- From: Bartc
- Re: "Sorting" assignment
- From: Malcolm McLean
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- From: Julienne Walker
- Re: "Sorting" assignment
- From: spinoza1111
- Re: "Sorting" assignment
- From: Julienne Walker
- Re: "Sorting" assignment
- From: Willem
- "Sorting" assignment
- Prev by Date: Re: Meassure processor cycles
- Next by Date: Re: "Sorting" assignment
- Previous by thread: Re: "Sorting" assignment
- Next by thread: Re: "Sorting" assignment
- Index(es):
Relevant Pages
|