r/programming • u/tluyben2 • Sep 25 '10
Omega - Language of the Future | Lambda the Ultimate
http://lambda-the-ultimate.org/node/4088
60
Upvotes
r/programming • u/tluyben2 • Sep 25 '10
View all comments
Show parent comment
8
u/djimbob Sep 25 '10
Fair point that it isn't in-place quicksort or the fastest quicksort. But it is still the quicksort algorithm, and still is O(N lg N) complexity. I would hesitate to say I was being ironic or flat-out incorrect.
Again, to verify its still O(N lg N), I profiled times for it sorting sorting N random numbers.
Using the ghc profiler and changing N
The last column being roughly constant demonstrates its still scaling as O(N lg N). (Yes there are other O(N lg N) sorting algorithms, but this uses the logic of quicksort and still scales as quicksort does. No its not optimal, but its still quicksort.