Computer Science, asked by meridianrohitdoc, 18 days ago

How many swaps will be performed in selection sort in worst case :-​

Answers

Answered by Anonymous
1

\huge{\green{\bold{\underline{\underline{\overline{\overline{\pink{Answer}}}}}}}}

Selection sort

ClassSorting algorithmWorst-case performanceО(n2) comparisons, О(n) swapsBest-case performanceО(n2) comparisons, O(1) swapsAverage performanceО(n2) comparisons, О(n) swapsWorst-case space complexityO(1) auxiliary

Answered by XxMissSinglexX
1

Answer:

  • Selection sort
  • ClassSorting algorithmWorst-case performanceО(n2) comparisons, О(n) swapsBest-case performanceО(n2) comparisons, O(1) swapsAverage performanceО(n2) comparisons, О(n) swapsWorst-case space complexityO(1) auxiliary
Similar questions