Iteration landscape / Three.js

One trace.
Every ordered pair.

A 4×4 grid contains 16 items. One loop visits 16 items; nested loops visit all 16 × 16 = 256 pairs.

Single loop tracing
0 / 16 visits
Nested loops tracing
0 / 256 visits
Logical-step controls
Speed 1.5×

Step advances each algorithm by exactly one body execution—not by frame.

for item in items: visit(item) 16 items → 16 visits
for i in items: for j in items: visit(i, j) 16 × 16 → 256 visits
single-loop probe current pair pair endpoint
Drag to orbit · wheel to zoom · double-click to reset
Preparing the first logical iteration…