Description
1) Regarding the celebrity problem that we discussed in the class, implement the modified algorithm
with time complexity of Ξ(π) in your favorite language.
10 points
2) For the Maximum Consecutive Subsequence problem, improve the proposed Ξ(π) algorithm such
that it not only returns the maximum sum, but also returns the corresponding subsequence. No
implementation is needed.
10 points
3) Let π(π) and π(π) be asymptotically positive functions. Prove or disprove each of the following
conjectures:
a) π(π) = π(π(π)) implies π(π) = π(π(π))
b) π(π) = Ξ (π (
π
2
))
c) π(π) = π(π(π)) implies log π(π) = π(log π(π)) where log π(π) β₯ 1 and π(π) β₯ 1 for all
sufficiently large π.
[from CLRS 3.4]
30 points