Loading...
Loading...
0
ops.
0
ops.
0
ops.
0
ops.
0
comp.
0
ms
0
sec
0
ops/ms
0
comp/ms
[1] Sum of Swap, Get, Set and Comparison operations.
[2] Swap operations do not count as neither Get nor Set operations.
Selection Sort is a simple sorting algorithm that repeatedly selects the smallest element from the unsorted list and places it at the end of the sorted list. This process is repeated until all the elements are sorted.
Selection Sort has a time complexity of O(n²) which makes it inefficient for large data sets, but it is a simple algorithm to understand and implement.
Big O Notation | |||
---|---|---|---|
Time complexity | Space complexity | ||
Worst | Average | Best | Worst |
O(n^2) | Θ(n^2) | Ω(n^2) | O(1) |
Big O Notation defines the lower, average and upper bounds of an algorithm, where Time complexity determines the amount of operations, and Space complexity the amount of memory that can be used
This site uses cookies to ensure you the best experiences of all.
By continuing, I must assume you're okay with them, however, you can read more about them here.
Continue