>
Exams
>
Computer Science & Information Technology
>
Data Structures
>
the recurrence t n 2t n 2 n has a solution of
Question:
The recurrence T(n) = 2T(n/2) + n has a solution of _______.
Show Hint
For divide and conquer recurrences, master theorem can be used to determine the complexity quickly.
AP PGECET - 2025
AP PGECET
Updated On:
Jun 16, 2025
O(n)
O(nlogn)
O(n²)
O(logn)
Hide Solution
Verified By Collegedunia
The Correct Option is
B
Solution and Explanation
The given recurrence is a divide and conquer recurrence, and it can be solved using the master theorem. The solution to this recurrence is O(nlogn), as it fits the second case of the master theorem.
Download Solution in PDF
Was this answer helpful?
0
0
Top Questions on Data Structures
Which data structure follows the Last-In-First-Out (LIFO) principle?
CUET (UG) - 2025
Computer Science
Data Structures
View Solution
What is the time complexity of a binary search algorithm on a sorted array?
CUET (UG) - 2025
Computer Science
Data Structures
View Solution
In the context of graph algorithms, what is the significance of Dijkstra’s algorithm?
CUET (UG) - 2025
Computer Science
Data Structures
View Solution
In a binary tree, what is the maximum number of nodes at level k?
CUET (UG) - 2025
Computer Science
Data Structures
View Solution
Which sorting algorithm has the best average-case time complexity?
CUET (UG) - 2025
Computer Science
Data Structures
View Solution
View More Questions
Questions Asked in AP PGECET exam
Suppose \( R_1 \) and \( R_2 \) are reflexive relations on a set \( A \). Which of the following statements is correct?
AP PGECET - 2025
Set Theory
View Solution
Determine the value of $\lambda$ and $\mu$ for which the system of equations
$x + 2y + z = 6$,
$x + 4y + 3z = 10$,
$2x + 4y + \lambda z = \mu$
has a unique solution.
AP PGECET - 2025
Linear Algebra
View Solution
For a two-port network to be reciprocal, it is necessary that ……..
AP PGECET - 2025
Electrical power
View Solution
Which strategy can be used to minimize the shear damage in bioreactors used for animal cell culture?
AP PGECET - 2025
Cell Biology
View Solution
Let \( z \) be a complex variable and \( C : |z| = 3 \) be a circle in the complex plane. Then,
\[ \oint_C \frac{z^2}{(z - 1)^2(z + 2)} \, dz = \]
AP PGECET - 2025
Complex numbers
View Solution
View More Questions