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 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
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, 04.04.2020 10:28
Questions on the website: 13722362