Selection Sort Visualizer

0 elements
50%
Comparisons: 0
Swaps: 0
Status: Idle

Selection Sort Explained

Selection Sort repeatedly finds the minimum element from the unsorted portion and places it at the beginning, building the sorted array step-by-step.

Algorithm Characteristics

  • Time ComplexityO(n²)
  • Space ComplexityO(1)
  • StabilityUnstable
  • AdaptiveNo

Key Properties

  • Finds the minimum element in each pass

  • In-place sorting with no extra memory

  • Unstable due to long-distance swaps

  • Non-adaptive, always O(n²) comparisons

Best for small datasets or educational purposes due to its simplicity