Problem:
What is the asymptotic running time of Randomized QuickSort on arrays of length n, in expectation (over the choice of random pivots) and in the worst case, respectively?
Solution:
It is again just memorizing standard results:
The expected result is θ(nlogn), and the worst case result is θ(n2).
What is the asymptotic running time of Randomized QuickSort on arrays of length n, in expectation (over the choice of random pivots) and in the worst case, respectively?
Solution:
It is again just memorizing standard results:
The expected result is θ(nlogn), and the worst case result is θ(n2).
No comments:
Post a Comment