Match the algorithms with their times complexities:
List - I (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 × n matrices
List II.
(i) Θ(n2)
(ii) Θ(n log n)
(iii) Θ(2n)
(iv) Θ(log n)