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

PYQ GATE 2009

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 1621 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…