GATEverse Practice, past papers & mock tests
GATE 2017 · CS2 - Afternoon
AlgorithmsAlgorithm Analysis and Asymptotic NotationseasyMCQ1 mark
Match the algorithms with their time complexities: Algorithm: (P) Towers of Hanoi with n disks (Q) Binary search given n sorted numbers (R) Heap sort given n numbers at the worst case (S) Addition of two n x n matrices Time complexity: (i) Θ(n^2) (ii) Θ(n log n) (iii) Θ(2^n) (iv) Θ(log n)
Save your progress

Related Algorithms PYQs