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: cosmic ray sorting 2012-07-24 21:59

def crs(l):
    while not all(l[i-1]<=l[i]for i in range(1,len(l))):
        pass

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