Recent questions tagged time-complexity

0 votes
1 answer
392
Time complexity of this Recurrence relation T(n)=T(√n) +1O(nlogn)O(log log n)O(n^2)n^2 logn
0 votes
1 answer
394
0 votes
1 answer
397
What is difference between tightest upper bound and tightest lower bound? Give ur explanation with examples?
0 votes
1 answer
399
The time complexity of the most efficient algorithm to determine whether an arbitrary array of size ‘n’, is min-heap or not?(A) O(log n)(B) O(n)(C) O(n logn)(D) O(1)
1 votes
1 answer
400
What is the time complexity of 'deleting any random node from a max or min heap'?
0 votes
1 answer
403
0 votes
1 answer
405
f(n)=O(g(n))Which of the following is True?2^f(n)=O(2^(g(n))log(f(n))=O(log(g(n))f(n)=O(f(n/2))f(n)=O(f(n)^2)
0 votes
0 answers
407
Will the complexity of the function be $\Theta n^{2} or \Theta n^{3}?$
0 votes
0 answers
408
Please mention proper approach to solve similar questions
1 votes
2 answers
411
What is worst case time complexity to delete middle element from the min heap of n distinct elements?O(logn)O(n)O(nlogn)O($n^{2}$)
1 votes
1 answer
412
What is the time complexity to find the Kth largest element in a Min-Heap? Or equivalently, What is the time complexity to find Kth smallest element in Max-Heap?
0 votes
0 answers
413
Better than O(n) exists ?
0 votes
0 answers
414
0 votes
1 answer
415
0 votes
2 answers
417
How the limits are reduced. Please explain in simpler way.
0 votes
0 answers
418
An array with n distinct element In array till ith position elements are in increasing order after ith position elements are in decreasing order time Complexity to find i...
0 votes
0 answers
419
Prove dijkstra’s algorithm using Heap is O((n+|E|)logn) where n is no.of vertices and |E| is number of edges?Book : Fundamentals of Computer Algorithms By sahni pa...