MCQ · 1 mark · Algorithm Analysis
GATE CS 2017 CS-2 — Q3
Match the algorithms with their time complexities:
| Algorithm | Time complexity |
|---|---|
| (P) Towers of Hanoi with disks | (i) |
| (Q) Binary search given sorted numbers | (ii) |
| (R) Heap sort given numbers at the worst case | (iii) |
| (S) Addition of two matrices | (iv) |