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

Look into alternative "FastStabbing" implementation. #17

Open
joshuak94 opened this issue Mar 31, 2021 · 0 comments
Open

Look into alternative "FastStabbing" implementation. #17

joshuak94 opened this issue Mar 31, 2021 · 0 comments

Comments

@joshuak94
Copy link
Owner

FastStabbing is an implementation for interval range queries which assumes n intervals with left and right endpoints in the range [1,...,O(n)]. Then it can index this list in Ω(n) space and time, with queries solved in Ω(1 + k) time, where k = # of results produced by the query.

This is better than Interval Trees, which require Ω(n log n) time to build and Ω(log n + k) time to query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant