Detecting Circular Lists

Richard A. O'Keefe ok at atlas.otago.ac.nz
Thu Oct 5 23:57:41 UTC 2000


Look under the name "tortoise and hare".
Cycle detection is indeed in Dijkstra's "A Discipline of Programming".
I think it may also be in Knuth.
It's a very old technique with many uses.





More information about the Squeak-dev mailing list