Skip to content
선택 정렬

File:Selection-Sort-Animation.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ220831· pop 47· linked from 77 articles

선택 정렬

Sign in to save

Also known as SelectionSort

sorting algorithm

Key facts

Class
Sorting algorithm
Data structure
Array
Worst case performance
O ( n 2 ) {\displaystyle O(n^{2})} comparisons, O ( n ) {\displaystyle O(n)} swaps
Best case performance
O ( n 2 ) {\displaystyle O(n^{2})} comparisons, O ( 1 ) {\displaystyle O(1)} swap
Average performance
O ( n 2 ) {\displaystyle O(n^{2})} comparisons, O ( n ) {\displaystyle O(n)} swaps
Worst case space complexity
O ( 1 ) {\displaystyle O(1)} auxiliary
Optimal
No

via Wikipedia infobox