What is the purpose of using randomized quick sort over standard quick sort?
What is the purpose of using randomized quick sort over standard quick sort? Correct Answer so as to avoid worst case time complexity
Randomized quick sort helps in avoiding the worst case time complexity of O(n2) which occurs in case when the input array is already sorted. However the average case and best case time complexities remain unaltered.
মোঃ আরিফুল ইসলাম
Feb 20, 2025