retagged by
560 views

1 Answer

0 votes
0 votes

 Randomized Quick sort worst case is o(n^2).

suppose we take a pivot element and it is divided(partitioning) the array in two sub array . like one array have 0 element and other array have n-1 element then recurrence relation become

  • T(n)=T(n-1)+o(n).
  • time complexity=o(n^2)
edited by

Related questions

0 votes
0 votes
3 answers
1
ajaysoni1924 asked Sep 2, 2019
3,547 views
In quick sort for sorting of n Numbers, the 75th greatest Element is selected as pivot using $O(n^2)$ time complexity algorithm than what is the worst case time complexit...