Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Algorithm

Selection Sort

Sorting Algorithm

A comparison sort that repeatedly finds the smallest remaining element and moves it into its final sorted position, making the same number of comparisons regardless of the input's initial order.

Facts
Time Complexity
O(n^2) 1
Connections

In Field

Sources
1. Wikipedia, Selection sort
Lead section
Quote, Lead section
It has a O(n2) time complexity, which makes it inefficient on large lists, and generally performs worse than the similar insertion sort.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.