Floyd's tortoise and hare algorithm ( Cycle Detection)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O((\lambda + \mu)$ t_f)

Space Complexity

$O({1})$ Pointer algo

(Algorithmic Cryptanalysis)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Year

1967

Reference

http://pds7.egloos.com/pds/200801/07/29/p636-floyd.pdf