Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate: traversals other than {bisect, linear} #947

Open
foresterre opened this issue Jun 27, 2024 · 0 comments
Open

Investigate: traversals other than {bisect, linear} #947

foresterre opened this issue Jun 27, 2024 · 0 comments

Comments

@foresterre
Copy link
Owner

foresterre commented Jun 27, 2024

  • Galloping search -> exponential + binary
    • Can we use a better heuristic than exponential? Would e.g. fibonacci work?
  • Can Zig Zagging improve average search time?\
    • i.e. something like Binary Search with Bidirectional Expansion
  • Jump Search
  • Interpolation Search
  • Ternary Search

For all of these we should consider going from the end (ie more recent); I hypothesise that usually most projects have an MSRV closer to the most recent version than the least recent, especially if there are lots of versions.

Something to consider is that using the edition to limit the search space already makes the search space considerably smaller.

@foresterre foresterre changed the title Investigate traversals other than {bisect, linear} Investigate: traversals other than {bisect, linear} Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant