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
Time Complexity (category)
Quadratic Time -- O(n^2) 1
Time Complexity
O(n^2) 1
Connections

In Field

Sources
1. Wikipedia, Selection sort
  • 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.
  • Wikipedia Selection sort infobox time O(n^2) comparisons
View the Source
Wikidata: Selection Sort
Wikidata Q220831, class allow-list match (w-wdresolver-0926)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.