Function find_cycle

Source
pub fn find_cycle<T>(init: T, f: impl Fn(T) -> T) -> Rho
where T: Copy + Eq,
Expand description

循環検出法

Space complexity $O(1)$