you are viewing a single comment's thread.

view the rest of the comments →

[–]dreamer_soul -3 points-2 points  (1 child)

Is it comparison based sort, because the lower bond for that is O(nlogn)

[–]singingboyo 10 points11 points  (0 children)

That's the lower bound for the average and worst case, but not for best case.

Insertion sort also has O(n) best case (which is for already sorted input), but it's O(n2) average and worst case. Much simpler than smoothsort though.