aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2009 - Previous Question Paper Solution
  • What is the number of swaps required to sort n elements u...
Multiple choice

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

  1. $\theta(n)$
  2. $\theta(n log\ n)$
  3. $\theta(n^2)$
  4. $\theta(n^2log\ n)$
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Keep practicing — related questions

  • Which one of the following is the tightest upper bound that represents the number of swaps required to sort...
  • Which one of the following in place sorting algorithms needs the minimum number of swaps?
  • Which one of the following in place sorting algorithms needs the minimum number of swaps?
  • Selection sort's worst-case time complexity is
  • In quick-sort, for sorting n elements, the $\left(n/4\right)^{th}$ smallest element is selected as pivot us...
  • In quick-sort, for sorting n elements, the $\left(n/4\right)^{th}$ smallest element is selected as pivot us...
  • Selection sort's worst case time complexity is
  • What is the worst case space complexity of selection sort?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy