0
6.9kviews
Explain randomized version of Quick sort and derive its complexity.
1 Answer
2
277views
  • In the randomized version of Quick sort we impose a distribution on input.
  • This does not improve the worst-case running time independent of the input ordering.
  • In this version we choose a random key for the pivot.
  • Assume that procedure Random (a, b) returns a random integer in the range …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.