1,710 views

1 Answer

Related questions

0 votes
0 votes
1 answer
1
akash.dinkar12 asked Jun 27, 2019
933 views
QUICKSORT(A,p,r) 1 if p < r 2 q = PARTITION(A,p,r) 3 QUICKSORT(A, p , q-1) 4 QUICKSORT(A, q + 1, r)How would you modify QUICKSORT to sort into nonincreasing order?
0 votes
0 votes
1 answer
2
akash.dinkar12 asked Jun 27, 2019
1,465 views
Give a brief argument that the running time of PARTITION on a subarray of size $n$ is $\Theta(n)$.
0 votes
0 votes
1 answer
3