CS Learning Lab

Algorithms

Sorting Lab

One visual model for adjacent swaps, selected minimums, insertion shifts, merge writes, pivot partitions, and heap extraction.

Big-O Comparison

Visualizer set

Choose an algorithm

Growth

Quadratic growth becomes visible fast

Browser timing can be noisy, so this lab starts with theoretical operation counts. The shape is the concept.

Open Chart
n=8
64
n=16
256
n=32
1,024
n=64
4,096
n=128
16,384
n=256
65,536
Red: O(n^2)Blue: O(n log n)Green: O(n)