edited by
3,794 views
14 votes
14 votes

Which of the following functions, given by there recurrence, grows the fastest asymptotically?

  1. $T(n) = 4T\left ( \frac{n}{2} \right ) + 10n$
  2. $T(n) = 8T\left ( \frac{n}{3} \right ) + 24n^{2}$
  3. $T(n) = 16T\left ( \frac{n}{4} \right ) + 10n^{2}$
  4. $T(n) = 25T\left ( \frac{n}{5} \right ) + 20\left ( n \log n \right )^{1.99}$
  5. They all are asymptotically the same
edited by

1 Answer

Best answer
16 votes
16 votes
By applying master theorem,

(a) T(n) = $\Theta$($n^2$)

(b) T(n) = $\Theta$($n^2$)

(c) T(n) = $\Theta$($n^2$*log n)

(d) T(n) = $\Theta$($n^2$)

C is growing fastest.
selected by
Answer:

Related questions

3.1k
views
3 answers
22 votes
Arjun asked Dec 10, 2017
3,120 views
Which of the following statements is TRUE for all sufficiently large integers n ?$2^{2^{\sqrt{\log \log n}}} <2^{\sqrt{\log n}} < n$2^{\sqrt{\log n}}<n<2^{2^{\sqrt{\log \ ... \sqrt{\log n}}$2^{\sqrt{\log n}}<2^{2^{\sqrt{\log \log n}}} < n$
2.9k
views
3 answers
11 votes
Arjun asked Dec 10, 2017
2,949 views
Let $n\geq 3,$ and let $G$ be a simple, connected, undirected graph with the same number $n$ of vertices and edges. Each edge of $G$ has a distinct real ... $T$ can be found in $O(n)$ time from the adjacency list representation of $G.$
2.5k
views
1 answers
12 votes
Arjun asked Dec 10, 2017
2,538 views
Let $G=(V,E)$ be a DIRECTED graph, where each edge $\large e$ has a positive weight $\large\omega(e),$ ... $\omega'(P)<2\times \omega(P).$All of the above options are necessarily TRUE.
8.4k
views
1 answers
13 votes
Arjun asked Dec 10, 2017
8,429 views
Consider the recursive quicksort algorithm with "random pivoting". That is, in each recursive call, a pivot is chosen uniformly at random from the sub-array being sorted.When this ... }}\right)$\Theta\left(\dfrac{1}{n \log^{2} n}\right)$