GATE DA 2026, Q.15: Recurrence for randomized-input quicksort
The question
Quicksort runs on random distinct elements with the first element of each subarray as pivot and linear-time partition. Which recurrence gives the expected time T(n)?
- (A) T(n) = T(1) + T(n − 1) + O(n)
- (B) T(n) = T(n/4) + T(3n/4) + O(n)
- (C) T(n) = 2T(n/2) + O(n)
- (D) T(n) = (1/n) Σₖ₌₀ⁿ⁻¹ [T(k) + T(n − k − 1)] + O(n)
Checking your access…
The answer and full solution are in the GATE DA past-paper pack. All 195 questions from 2024, 2025 and 2026, each solved step by step and checked against the official key. ₹499, lifetime access.
What's in the pack · 60 questions are free to try.
Unlock this solution and every other question. ₹499, one payment, lifetime access.
Could not load the solution. Refresh the page, or email hello@gradientlab.dev.
Source: official GATE DA 2026 question paper and answer key (IIT Guwahati). The question is lightly reworded; every number and option is kept.