Re: sort algorithm
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 21:06:22 +0000
Juha Nieminen said:
Richard Heathfield wrote:
Um, what you call counting sort, I call bucket sort. I'm probably
abusing the term.
Bucket sort is a completely different sorting algorithm.
Having done a little belated research, I beg to differ slightly. When your
data forms a contiguous range and you can afford enough buckets to have
one bucket per possible value (as was the case for this problem), bucket
sort effectively degenerates into counting sort. So I was half-right. :-)
<snip>
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- References:
- sort algorithm
- From: Limbo
- Re: sort algorithm
- From: Richard Heathfield
- Re: sort algorithm
- From: Juha Nieminen
- Re: sort algorithm
- From: Richard Heathfield
- Re: sort algorithm
- From: Juha Nieminen
- sort algorithm
- Prev by Date: Re: sort algorithm
- Previous by thread: Re: sort algorithm
- Next by thread: Re: sort algorithm
- Index(es):
Relevant Pages
|