CodeCookbook

Sorting Networks — Bitonic Sort

Fixed wiring of comparators. Vertical lines connect two wires; a swap occurs if the top wire has a larger value.

n =
SlowFast
step 1 / 0
01234567
Current array state
Press Play to start
Active (no swap)
Swapped
Completed
Pending