Skip to main content
. 2020 Oct 16;21:265. doi: 10.1186/s13059-020-02168-z

Fig. 5.

Fig. 5

Implementing 1-dimension Range-Min-Query (RMQ). Given a set of 2-tuples, a binary search tree is built for the first values in the tuples. Each node p in the tree is associated with a pointer. The pointer points to the node that is in the subtree descended from p and has the minimal second value. In this example, RMQ(20,50)=14