Describe an in-place version of the quick-select algorithm in pseudo-code,
assuming that you are allowed to modify the order of elements.
Show how to use a deterministicO(n)-time selection algorithm to sort a
sequence ofnelements inO(nlogn)worst-casetime.
Given an unsorted sequenceSofncomparable elements, and an integerk,
give anO(nlogk) expected-time algorithm for finding theO(k) elements
that have rankn/k_, 2n/k_, 3n/k_, and so on.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here