Instrumenti iz standardne knjižnice, v živo.
Neighbouring bars are compared and swapped; the largest sinks.
compare 2 and 5 — no swap
Breadth-first search visits the graph level by level.
dequeue G — no new neighbors
Balls fly under gravity along parabolic paths.
in flight — speed 3.47 px/step
Balls collide elastically; total momentum stays constant.
Σp=0, ΣKE=41