What is the number of swaps required to sort n elements using selection sort,…

GATE · 2009 · CS

What is the number of swaps required to sort n elements using selection sort, in the worst case?

  1. A.

    Θ(n)

  2. B.

    Θ(n log n)

  3. C.

    Θ(n²)

  4. D.

    Θ(n² log n)

Attempted by 1435 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…