All Exams Test series for 1 year @ ₹349 only
Question

The tight asymptotic bound for the recurrence $T(n)= 2T(n/4) + \sqrt{n}$ is

The correct answer is
$\Theta (\sqrt{n} \log n)$

To solve the recurrence relation T(n) = 2T(n/4) + \sqrt{n}, we need to find the tight asymptotic bound using the Master Theorem, which is commonly used for recurrences of the form:

T(n) = aT(n/b) + f(n)

In this case, the values are:

  • a = 2
  • b = 4
  • f(n) = \sqrt{n}

The Master Theorem provides a way to determine asymptotic bounds based on f(n) compared to n^{\log_b{a}}.

Step 1: Compare f(n) with n^{\log_b{a}}.

First, calculate \log_b{a}:

\log_b{a} = \log_4{2}. We can further compute it as:

\log_4{2} = \frac{\log_2{2}}{\log_2{4}} = \frac{1}{2}

Therefore, n^{\log_b{a}} = n^{1/2}.

So, we now compare f(n) = \sqrt{n} with n^{1/2}.

\sqrt{n} = n^{1/2}, indicating the two functions are asymptotically equivalent.

Step 2: Apply the Third Case of the Master Theorem

Since f(n) = \Theta(n^{\log_b{a}}), by the Master Theorem, the solution to the recurrence is:

T(n) = \Theta(n^{\log_b{a}} \log n) = \Theta(n^{1/2} \log n) = \Theta(\sqrt{n} \log n)

Conclusion: The tight asymptotic bound for the recurrence relation T(n)= 2T(n/4) + \sqrt{n} is \Theta (\sqrt{n} \log n).

Was this answer helpful?

Important Questions from Recurrences

  1. The solution of the recurrence relation

    \(T(n) \le \begin{cases} \theta(1) & \text{if } n \le 80 \\ T\left(\frac{n}{s}\right) + T\left(\frac{7n}{10} + 6\right) + O(n) & \text{if } n \gt 80 \end{cases}\)

    is :

  2. The solution of the recurrence relation of \(T(n) = 3T\left(\text{floor}\left(\frac{n}{4}\right)\right) + n\) is

  3. Which of the following is the solution of the following recurrence relation

    T(n) = T(2n/3) + 1?

  4. The asymptotic upper bound solution of the recurrence relation given by

    \(T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{lg\ n}\) is :

  5. A recursive function h, is defined as follows :

    h(m) = k, if m = 0

    = 1, if m = 1

    = 2 h(m – 1) + 4h(m – 2), if m ≥ 2

    If the value of h(4) is 88 then the value of k is :

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App