McqMate
Q. |
Under what case of Master’s theorem will the recurrence relation of merge sort fall? |
A. | 1 |
B. | 2 |
C. | 3 |
D. | it cannot be solved using master’s theorem |
Answer» B. 2 | |
Explanation: the recurrence relation of merge sort is given by t(n) = 2t(n/2) + o(n). so we can observe that c = logba so it will fall under case 2 of master’s theorem. |
View all MCQs in
Design and Analysis of AlgorithmsNo comments yet