Note: This visualizer was built specifically for yubinex/push_swap and simulates the algorithms used in that implementation. It is not a general-purpose push_swap visualizer.
An interactive browser-based visualizer for push_swap algorithms. Live demo →
- Step-by-step playback with back/forward/jump controls and adjustable speed
- Four algorithms to compare:
- sort tiny — optimal for ≤5 elements
- bubble sort — classic O(n²) for reference
- chunk sort — splits elements into rank-based chunks, pushes to B, pulls back in order
- radix sort — bitwise LSD radix sort on element ranks
- Color-coded stacks (blue = smallest, red = largest)
- Per-step explanation panel describing what each operation does and why
- Algorithm-specific detail panel (chunk progress bar, bit-by-bit breakdown for radix)
- Random input generator for 5 / 10 / 100 elements, or enter your own
Open index.html in any browser — no build step, no dependencies.
Enter a space-separated list of integers (no duplicates), select an algorithm, and click ▶ run. Use the step controls or ⏵ play to walk through the operations.