Computer Sciences > Gate 2017 Set-2 > Complexity
Match the algorithms with their time complexities:
| Algorithm | Time Complexity |
|---|---|
| (P)Tower of Hanoi with n disks | (i)θ(n2) |
| (Q)Binary Search given n sorted numbers | (ii)θ(nlogn) |
| (R)Heap sort of n numbers at the worst case | (iii)θ(2n) |
| (S)Addition of two n*n matrices | (iv)θ(logn) |
Correct : Complexity
Similar Questions
Consider the following functions from positives integers to real numbers
10, √n, n, log2n, 100/n.
The CORRECT arrangement of the above functions in in...
Consider the following functions from positives integers to real numbers
10, √n, n, log2n, 100/n.
The CORRECT arrangement of the above functions in in...
Consider the following functions from positives integers to real numbers
10, √n, n, log2n, 100/n.
The CORRECT arrangement of the above functions in in...
Total Unique Visitors
Loading......