Show that randomized quick-sort runs in O(n log n) time with probability 1 − 1/n2 . Hint: Use the Chernoff bound that states that if we flip a coin k times, then the probability that we get fewer than k/16 heads is less than 2−k/8

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter12: Review Of Calculus And Probability
Section12.7: Z-transforms
Problem 3P
icon
Related questions
Question

Show that randomized quick-sort runs in O(n log n) time with probability 1 − 1/n2 . Hint: Use the Chernoff bound that states that if we flip a coin k times, then the probability that we get fewer than k/16 heads is less than 2−k/8.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole