Abstract
In the path minimum problem, we preprocess a tree on n weighted nodes, such that given an arbitrary path, the node with the smallest weight along this path can be located. We design novel succinct indices for this problem under the indexing model, for which weights of nodes are read-only and can be accessed with ranks of nodes in the preorder traversal sequence of the input tree. We presentan index within O(m) bits of additional space that supports queries in O(α(m, n)) time and O(α(m, n)) accesses to the weights of nodes, for any integer m≥ n; andan index within 2 n+ o(n) bits of additional space that supports queries in O(α(n)) time and O(α(n)) accesses to the weights of nodes. Here α(m, n) is the inverse-Ackermann function, and α(n) = α(n, n). These indices give us the first succinct data structures for the path minimum problem. Following the same approach, we also develop succinct data structures for semigroup path sum queries, for which a query asks for the sum of weights along a given query path. One of our data structures requires nlg σ+ 2 n+ o(nlg σ) bits of space and O(α(n)) query time, where σ is the size of the semigroup. In the path reporting problem, queries ask for the nodes along a query path whose weights are within a two-sided query range. Using the succinct indices for path minimum queries, we achieve three different time/space tradeoffs for path reporting by designingan O(n)-word data structure with O(lg ϵn+ occ· lg ϵn) query time;an O(nlg lg n) -word data structure with O(lg lg n+ occ· lg lg n) query time; andan O(nlg ϵn) -word data structure with O(lg lg n+ occ) query time. Here occ is the number of nodes reported and ϵ is an arbitrary constant between 0 and 1. These tradeoffs match the state of the art of two-dimensional orthogonal range reporting queries (Chan et al. 2011), which can be treated as a special case of path reporting queries. When the number of distinct weights is much smaller than n, we further improve both the query time and the space cost of these three results.
Original language | English (US) |
---|---|
Pages (from-to) | 453-491 |
Number of pages | 39 |
Journal | Algorithmica |
Volume | 78 |
Issue number | 2 |
DOIs | |
State | Published - Jun 1 2017 |
Externally published | Yes |
Keywords
- Path minimum
- Path reporting
- Semigroup path sum
- Succinct data structures
- Succinct encoding of directed topology trees
ASJC Scopus subject areas
- General Computer Science
- Computer Science Applications
- Applied Mathematics