Re: Sort comparison

2012-05-01 Thread Dan Stromberg
gt; the > >> > running time of radix sort. > >> > > >> > I realize it's commonly said that radixsort is n*k rather than > n*log(n). > >> > I've been making that case that in real life, frequently k==log(n). > >> > > >> &

Re: Sort comparison

2012-05-01 Thread Ian Kelly
radixsort is n*k rather than n*log(n). >> > I've been making that case that in real life, frequently k==log(n). >> > >> > Anyway, here's the comparison, with code and graph: >> > http://stromberg.dnsalias.org/~strombrg/sort-comparison/ >> >> It can be dif

Re: Sort comparison

2012-05-01 Thread Dan Stromberg
On Tue, May 1, 2012 at 10:51 AM, Terry Reedy wrote: > On 5/1/2012 1:25 AM, Dan Stromberg wrote: > > Anyway, here's the comparison, with code and graph: >> http://stromberg.dnsalias.org/**~strombrg/sort-comparison/<http://stromberg.dnsalias.org/%7Estrombrg/sort-compariso

Re: Sort comparison

2012-05-01 Thread Dan Stromberg
. > > > > Anyway, here's the comparison, with code and graph: > > http://stromberg.dnsalias.org/~strombrg/sort-comparison/ > > It can be difficult to distinguish O(n) from O(n log n) on a log-log > plot, so I don't think that graph makes your point very well. > Thank you for

Re: Sort comparison

2012-05-01 Thread Terry Reedy
On 5/1/2012 1:25 AM, Dan Stromberg wrote: Anyway, here's the comparison, with code and graph: http://stromberg.dnsalias.org/~strombrg/sort-comparison/ (It's done in Pure python and Cython, with a little m4). Interesting, BTW, that an unstable quicksort in Cython was approaching tims

Re: Sort comparison

2012-05-01 Thread Ian Kelly
radix sort. > > I realize it's commonly said that radixsort is n*k rather than n*log(n). > I've been making that case that in real life, frequently k==log(n). > > Anyway, here's the comparison, with code and graph: > http://stromberg.dnsalias.org/~strombrg/sort-comparis

Sort comparison

2012-04-30 Thread Dan Stromberg
log(n). I've been making that case that in real life, frequently k==log(n). Anyway, here's the comparison, with code and graph: http://stromberg.dnsalias.org/~strombrg/sort-comparison/ (It's done in Pure python and Cython, with a little m4). Interesting, BTW, that an unstable qui