Let Xi,j be an indicator random variable for the event that the i-th smallest number is ever
Fantastic news! We've Found the answer you've been seeking!
Question:
Let Xi,j be an indicator random variable for the event that the i-th smallest number is ever compared with the j-th smallest in QuickSelect(A, k).
(a) Write an exact expression for E[Xi,j ].
(b) Show that the expected runtime of QuickSelect(A, k) is O(n).
Related Book For
Mathematical Statistics with Applications in R
ISBN: 978-0124171138
2nd edition
Authors: Chris P. Tsokos, K.M. Ramachandran
Posted Date: