Range Minimum Query of the Euler Tour.
Range Minimum Query of the Euler Tour.
Use this for typical queries.
The first query bound
The second query bound
The minimum between the first and second query
The order of x and y does not matter
,This currently maps to rmqBV
, but may choose to map to
either rmqBV
or rmqNaive
Range Minimum Query using the Berkman--Vishkin algorithm with the simplifications of Bender--Farach-Colton.
Range Minimum Query using the Berkman--Vishkin algorithm with the simplifications of Bender--Farach-Colton.
The first query bound
The second query bound
The minimum between the first and second query
Performance:
O(n)
O(1)
The order of x and y does not matter
Range Minimum Query of an Euler Tour using a naive algorithm.
Range Minimum Query of an Euler Tour using a naive algorithm.
The first query bound
The second query bound
The minimum between the first and second query
Performance:
O(1)
O(n)
The order of x and y does not matter
A class that represents an Euler Tour of a directed graph from a given root. This requires
O(n)
preprocessing time to generate the initial Euler Tour.