Opening book details…
Can I read Convex Hull Trick & Li Chao Tree on EtoBox?
Convex Hull Trick & Li Chao Tree by albertinhotdn is a document available to read on EtoBox.
What is Convex Hull Trick & Li Chao Tree about?
The document summarizes two algorithms - the convex hull trick and Li Chao tree - for solving the problem of finding the minimum cost route between cities while accounting for gasoline costs and tolls. The convex hull trick maintains the lower convex hull of linear cost functions, allowing queries to find the minimum cost function in O(log n) time. The Li Chao tree stores linear functions in a segment tree such that the minimum function can be found on any path to a leaf in O(log n) time by recursively ch
- Author
- albertinhotdn
- Language
- EN