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
A few undocumented time complexities #87
Comments
Looking at the implementation of So there can be settings where |
I'll be the first to admit the implementations of some of the higher level functions haven't received as much attention to performance as the low level ops. |
I've implemented the early return you suggested, but I can't see a way to distinguish between |
A couple of time complexities that are left unspecified:
next()
for the iterators ofOrdSet
andOrdMap
(O(1)* ?)OrdSet::get_min
(O(log n) ?)OrdSet::get_max
(O(log n) ?)Should I make a PR, or is it easier for you to just add those yourself?
For functions that operate on multiple data structures (e.g.
OrdSet::is_subset
), does the "n" in the time complexities refer to the size of the smaller or the larger structure?The text was updated successfully, but these errors were encountered: