How many swaps will be performed in selection sort in worst case :-
Answers
Answered by
1
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
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
Science,
9 days ago
Math,
9 days ago
Math,
9 days ago
Psychology,
18 days ago
Business Studies,
18 days ago
English,
8 months ago
Biology,
8 months ago