The median of n elements can be found in O(n) time. Which one of the following…

PYQ GATE 2006

The median of n elements can be found in O(n) time. Which one of the following is correct about the complexity of quick sort, in which median is selected as pivot?

  1. A.

    Θ(n)

  2. B.

    Θ(n log n)

  3. C.

    Θ(n²)

  4. D.

    Θ(n³)

Attempted by 705 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…