-
Notifications
You must be signed in to change notification settings - Fork 87
Description
In many practical applications, the exact length
It's very often sufficient to provide only an upper bound
This is technically also true for
If a minimal
I'd be happy to create a pull-request to somehow expose an interface to find cycles without the need compute the minimal
Would we perhaps want to change the existing cycle finding functions to provide a minimal_mu(brent, x0, f) or minimal_mu(lambda, x0, f) or similar)?
Should we instead expose new functions, say, brent_partial and floyd_partial, which only compute a brent and floyd in terms of those with an additional step to find
Maybe something else entirely would be preferable?
For context, this issue/question is motivated by my desire to add a new cycle finding algorithm (Nivash, both non-partitioned and partitioned) which can outperform Brent (and therefore Floyd) in many practical cases at the expense of logarithmic rather than constant memory usage, as well as a convenience helper to compute
An implementation of Nivash would be less practical in some cases if it needed to compute the minimal
Your feedback on how to best fit these new features into the existing library would be much appreciated.
Thanks!