Sorting Lab

Selection Sort

Scan for the minimum element, place it at the beginning, and repeat. Ideal for demonstrating quadratic-time behavior.

Dataset

Comma or space separated numbers.

Observe how each pass locks one element into its sorted spot.

Step-by-step reasoning

Each entry highlights the minimum search and placement.

  1. Run the algorithm to populate steps.