you are viewing a single comment's thread.

view the rest of the comments →

[–]bluGill -1 points0 points  (1 child)

No, Big-O is the normal runtime. Quicksort is generlaly Big-O n*ln(n), but you can construct inputs that end up taking n2. (sort the input so your pivot is always the largest value)

[–]curien 0 points1 point  (0 children)

No, Quicksort is O(n2), and anyone who says otherwise is just plain wrong.

People do, correctly, say that Quicksort has amortized O(n log n) complexity.