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
Hindi,
29 days ago
English,
29 days ago
Psychology,
1 month ago
Business Studies,
1 month ago
English,
9 months ago
Biology,
9 months ago