Surprising (for me) benchmark results...

John J. Lee phrxy at csv.warwick.ac.uk
Wed May 2 20:16:34 EDT 2001


On Wed, 2 May 2001, Brian Quinlan wrote:

> > There are O(N) sorting algorithms??  I thought that was restricted to
> > quantum computation.
>
> Actually, there are O(N) sorting algorithms. Counting sort is O(N). The
> algorithm is simple but only works in (small) descrete element spaces. The
> following example works with integers:

Well, you learn something new every day here.

:)


John





More information about the Python-list mailing list