I am trying to understand Floyd's cycle detection algorithm. I can see why the algorithm works.
When the Hare moves twice as fast as Tortoise, if there is cycle, they will meet definitely at some point in the cycle.
Is there any proof that proves the above point? I mean, without assuming that Hare and Tortoise meet at some point when Hare moves twice the speed of Tortoise and then proving.
In the wiki, I can understand the following paragraph.
The key insight in the algorithm is that, for any integers $i ≥ μ$ and $k ≥ 0, x_i = x_{i + kλ}$, where λ is the length of the loop to be found and μ is the index of the first element of the cycle
But it is followed by the following point which I could not understand.
in particular, $i = kλ ≥ μ$, if and only if $x_i = x_{2i}$. Thus, the algorithm only needs to check for repeated values of this special form, one twice as far from the start of the sequence as the other, to find a period ν of a repetition that is a multiple of λ
How does the author come to conclusion that $i = kλ ≥ μ$, if and only if $x_i = x_{2i}$
Can somebody please help me in understanding this?