Sort one sequence by O(n) in time and O(1) in space

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Feb 11 17:56:57 EST 2014


Steven D'Aprano wrote:
> Secondly, O(N*log N) applies to *comparison sorts*. Non-comparison sorts 
> such as radix-, counting- and bucket-sort have average case complexity of 
> O(N).

They require additional space, though.

-- 
Greg



More information about the Python-list mailing list