Recent questions tagged time-complexity

0 votes
1 answer
93
Solve the following recurrences using recursion tree method and write the asymptotic time complexity T(n)=T(n/2)+n^2
1 votes
0 answers
100
Can anyone solve this recurrence relation T(n) = 3T(n-1) + O(n^2)Its ans is O(3^n n^2)
2 votes
1 answer
101
What is the correct time complexity in $\theta()$ ?
0 votes
1 answer
104
Given two max heap, one of size n and other m. Calculate the time complexity of merging them to get a max heap.
1 votes
2 answers
106
what if a full binary tree contains both left and right sides as the max heap, then what will be the complexity of making it a proper max heap?
0 votes
1 answer
108