Master Mathematics.

Programming · Searching, Sorting & Complexity · Problem 6

The expected-time recurrence of quicksort

Quicksort sorts distinct randomly ordered elements, always taking the first element of the subarray as pivot, with linear partition time. Which recurrence gives the expected time ?

  1. (A)
  2. (B)
  3. (C)
  4. (D)

Source: GATE DA