subject

The selection algorithm (to find thekth smallest value in a list), described in the class(and in the book), uses columns of size 5. Assume that you implement the same selectionalgorithm using columns of size 17, rather than 5. Required:
a. Exactly how far from either end of the array is the median of medians guaranteed to be. Just give the high order term. (Recall that with columns of size 5 we got in.)
b. It turns out that there is an algorithm that finds the median of 9 elements with 14 com- parisons. Using this algorithm, briefly list each step of Selection with columns of size 9 and how many comparisons the step takes. Note that partition can now be done with only (4/9)n comparisons; use this value in your analysis.
c. Write a recurrence for the number of comparisons the algorithm uses.
d. Solve the recurrence using constructive induction. Just get the high order term exactly.
e. With more careful analysis, in class we could have obtained 16n comparisons using columns of size 5. How does this new value, using columns of size 9, compare?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 22.06.2019 17:00
Your computer running windows 10 is doing some very strange things with the operating system. you are fairly certain it is not a hardware issue. you need to try to get further insight into what is going on within the operating system. which tool would be best suited for this?
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
How are roger williams, james oglethorpe, and william penn similar?
Answers: 3
question
Computers and Technology, 24.06.2019 20:30
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
You know the right answer?
The selection algorithm (to find thekth smallest value in a list), described in the class(and in the...
Questions
question
Mathematics, 25.09.2019 02:01
Questions on the website: 13722361