Cycle detection
On finding a repeating loop in a sequence
On finding a repeating loop in a sequence
In computer science, cycle detection or cycle finding is the algorithmic problem of finding a cycle in a sequence of iterated function values. For any function f that maps a finite set S to itself, and any initial value x0 in S, the sequence of iterated function values x 0 , x 1 = f ( x 0 ) , x 2 = f ( x 1 ) , … , x i = f ( x i − 1 ) ,...
Open boosters, collect cards and trade them. Free to play.
Play for free