• retagged by
1,211 views

2 Answers

Best answer
2 2 votes

If you have any doubt, then leave comment. I think it is self explanatory. 

Source: Wikipedia

• selected by
2 2 votes
Quick sort  worst case  O(n^2)

avg case and best  case O(nlogn)
Position:
Show:

Related questions

0 0 votes
1 1 answer
852
852 views
akash.dinkar12 asked Jun 28, 2019
852 views
Show that RANDOMIZED-QUICKSORT’s expected running time is $\Omega(n\ lg\ n)$.
0 0 votes
2 2 answers
996
996 views
akash.dinkar12 asked Jun 28, 2019
996 views
Show that quicksort’s best-case running time is $\Omega(n\ lg\ n)$.
0 0 votes
1 1 answer
1.4k
1.4k views
akash.dinkar12 asked Jun 27, 2019
1,372 views
Show that the running time of QUICKSORT is $\Theta(n^2)$ when the array $A$ contains distinct elements and is sorted in decreasing order.
1 1 vote
2 2 answers
1.0k
1.0k views
akash.dinkar12 asked Jun 27, 2019
1,029 views
What is the running time of QUICKSORT when all elements of the array $A$ have the same value?