@Dave Cycle finding algo (Floyd's, Brent's) can be applied only for the iterated function values. This means: f(x0) = x1; f(x1) = x2 and etc. Suppose we have the following array: 1 2 3 2 4. Value 2 have two different transitions.
Clarify your proposed method if it needs additional observations. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
