Skip to content

About

push_swap visualizer — built for yubinex/push_swap

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

push_swap visualizer

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 →

Features

  • 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

Usage

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.

About

push_swap visualizer — built for yubinex/push_swap

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages