130k views
4 votes
2 point) Express this problem formally with input and output conditions.2.(2 points) Describe a simple algorithm to compute the upper median. How manyoperations does it take asymptotically in the worst case?3.(7 points) Show how you can use the (upper) medians of the two lists to reduce thisproblem to its subproblems. State a precise self-reduction for your problem.4. (7 points) State a recursive algorithm that solves the problem based on your reduction.5.(2 point) State a tight asymptotic bound on the number of operations used by youralgorithm in the worst case.

User Seemly
by
3.9k points

1 Answer

1 vote

Answer:

See attached images

2 point) Express this problem formally with input and output conditions.2.(2 points-example-1
2 point) Express this problem formally with input and output conditions.2.(2 points-example-2
2 point) Express this problem formally with input and output conditions.2.(2 points-example-3
User Vidar Kongsli
by
4.9k points