6) An algorithm is made up of 2 modules M1&M2. If order of M1 is f(n) & M2 is g(n) then the order of algorithm is?
Answer is:
min (f(n),g(n))
Related Data structures and Algorithms MCQ with Answers
Answer is:
At most 1.5n-2 comparisons are needed.
Answer is:
Θ(logn)
Answer is: