Answer is:
min (f(n),g(n))
Answer is:
At most 1.5n-2 comparisons are needed.
Answer is:
Θ(logn)
Answer is: