As we know that the complexities are -->
| Algorithm | Complexity |
|---|
| I. Tower of Hanoi (n disks) | O(2ⁿ) — exponential |
| II. Binary Search (n sorted numbers) | O(log n) — logarithmic |
| III. Heap Sort worst case | O(n log n) — linearithmic |
| IV. Addition of two n×n matrices | O(n²) — quadratic |
Now, we know that-->> Logarithmic < Linearithmic < Quadratic < Exponential
So,
O(logn)<O(nlogn)<O(n2)<O(2n).
Correct Order: II, III, IV, I
Option A.