Hacker News new | past | comments | ask | show | jobs | submit login

Because there are a finite number of states, it will always loop.

An interesting question might be around how many distinct loops there are and whether there's some pattern to the loop lengths.




> Because there are a finite number of states, it will always loop.

No it wouldn't. The fact that it will pass through every state infinite times doesn't mean it will do it in the same order each time. Each digit of pi has only 10 possible states, but it never loops.


If the state evolution:

(a) is deterministic

(b) depends only on the current state, and

(c) can only occupy a finite number of states

then it will loop.

Pi digits do not satisfy this because while the digit space is finite (10), the next digit depends on more than just the prior digit.

Related (but not the same): https://en.wikipedia.org/wiki/Poincaré_recurrence_theorem


The speed of the balls are changed by a small random amount when they hit a tile, so it's not deterministic.


If it's a deterministic RNG then it just means the state space is very large.


Ooh that’s cool I’ve never seen that before.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: