Comparisons = (20 + 24 – 1) Max = 43
Step 2 :
Total comparison = 43 + (65 – 44) = 64
Step 3 :
Total comparison = 64 + 19 = 83
Step 4 :
Total comparison = 93 + 65 = 158
= 158 + 93 + 64 + 43 = 35892. Give the correct matching for the following pairs:
| List-I | List-II | ||
| A. | O(logn) | P. | Selection |
| B. | O(n) | Q. | Insertion sort |
| C. | O(n log n) | R. | Binary search |
| D. | O(n2) | S. | Merge sort |
94. If T1 = O(1), give the correct matching for the following pairs:
