2 ms·
With respect, I think you're worng about that. > The module [bisect] ... uses a basic bisection algorithm to do its work. ~ https://docs.python.org/3.0/librar
by carapace 7y ago
With respect, I think you're worng about that.
> The module [bisect] ... uses a basic bisection algorithm to do its work.
~ https://docs.python.org/3.0/library/bisect.html https://docs.python.org/3.0/library/bisect.html
> Binary search runs in logarithmic time in the worst case, making O(log n) comparisons...
~ https://en.wikipedia.org/wiki/Binary_search_algorithm https://en.wikipedia.org/wiki/Binary_search_algorithm
edit: Unless you mean moving the data?