InterviewSolution
Saved Bookmarks
| 1. |
Consider the Quick sort algorithm in which the partitioning procedure splits elements into two sub-arrays and each sub-array contains at least one-fourth of the elements. Let T(n) be the number of comparisons required to sort array of n elements. Then T(n) |
|
Answer» Right option is (B) T(n) <= T(n/4) + T(3n/4) + cn |
|