📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Recurrence relations are commonly used to analyze the

    time complexity of Divide and Conquer algorithms. The Master Theorem is a tool for solving these. What does a typical recurrence relation for Divide and Conquer look like?
    A T(N) = T(N-1) + C Correct Answer Incorrect Answer
    B T(N) = aT(N/b) + f(N) Correct Answer Incorrect Answer
    C T(N) = T(N-1) + T(N-2) Correct Answer Incorrect Answer
    D T(N) = N T(N-1) Correct Answer Incorrect Answer
    E T(N) = C Correct Answer Incorrect Answer

    Solution

    The general form of a recurrence relation for Divide and Conquer algorithms that the Master Theorem can solve is T(N) = aT(N/b) + f(N), where:        a is the number of subproblems.        N/b is the size of each subproblem.        f(N) is the cost of dividing the problem and combining the subproblem solutions.

    Practice Next
    ask-question