Match the following.
- I - B, II - C, III - D, IV - D, V - A
Explanation:
AVL tree is balanced BST, so its height is O(log N)
The maximum height of BST is O(N) for left or right skewed
The time complexity of randomized quicksort and heapsort is O(N log N) in worst case
The time complexity of bubble sort is O(N2).
- I - C, II - B, III - A, IV - D, V - A
- I - B, II - C, III - D, IV - A, V - C
- I - B, II - B, III - D, IV - D, V - A
I think Time complexity of randomised quick sort in worst case is O(N^2).
Please correct me.