Question: In the algorithm SELECT ( using median of median as a pivot value ) discussed in the class we created 5 groups and showed that

In the algorithm SELECT (using median of median
as a pivot value) discussed in the class we created 5 groups and showed
that you can make ith selection in O(n) in the worst case.
(a) What will happen to the complexity of SELECT algorithm (dis-
cussed in chapter-9) if we create 9 groups instead of 5? Show all
your work/steps.
(b) Show that if you create 3 groups then algorithm will no longer
be linear.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!