Package micycle.trapmap.graph

Package

Components of the History Graph, a Directed Acyclical Graph (DAG) that stores trapezoids in nodes. This DAG is navigated during point location queries to find the trapezoid that contains the query point. The root corresponds to the bounding box (modelled as a trapezoid) of the line segments.

Queries

  • The query point q is given by its coordinates
  • If the current node is a leaf, then we are done
  • Otherwise, one of the descendants of the current trapezoid is a trapezoid that contains q
  • Since there are at most 4 descendants, we can find it in O(1) time
  • Go down to this descendant and repeat the process