Chapter 3 · Motion and state
Read cycles and ordered state
Compare two cycle tests, the two stack pop rules, and ordered data against a heap.

Picture path
- H takes the fast stride behind Leo on the same looping track until their paths meet. What detects the cycle?Compare their speeds; the loop is proven when the faster traveller catches the slower one.
- Fresh footprints arrive at an older matching footprint on the same route. What proves the loop?The decisive evidence is not a sad return; it is recognizing a state that was marked earlier.
- A taller arrival makes shorter waiting figures leave from the same end until order returns. What structure behavior is this?Watch which figures are removed and where; only the obstructing top figures leave.
- Dex arrives shorter than H and Ness, who step aside from the exposed end. What stack rule fired?The newcomer is shorter; taller waiting values leave until the height order holds again.
- H, Ness and Tya stand calmly in descending height from left to right. What do their body heights encode?Compare the three distinct people, tallest on the left and shortest on the right; nobody is stepping aside.
- A new trophy goes onto a small ranked shelf while the weakest one is tipped into a bin below. What loop is running?The shelf holds a fixed number of slots, and only the current worst keeper is evicted.