1.

Master’s theorem is used for?(a) solving recurrences(b) solving iterative relations(c) analysing loops(d) calculating the time complexity of any codeI got this question in an internship interview.The above asked question is from Masters theorem topic in division Recursion of Data Structures & Algorithms II

Answer»

The correct answer is (a) SOLVING recurrences

Easy explanation - Master’s theorem is a DIRECT METHOD for solving recurrences. We can SOLVE any recurrence that falls under any one of the three cases of master’s theorem.



Discussion

No Comment Found

Related InterviewSolutions