Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Slowest sort you can think

Name: Anonymous 2012-07-22 3:02

What's the slowest non-Bogosort sort you can think of?

For me, it's
- Compute all the n! permutations of the list
- Do a breadth first search of the ordered permutation.
which, if done right, can be O(n*n!logn!).

Name: Anonymous 2012-07-24 11:46

>>30
logn! and logn differ so much that that's not even wrong.
http://www.wolframalpha.com/input/?i=plot+log+n+and+log+%28n!%29+from+1+to+30

Hint: the factorial of n is not a constant factor.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List