Papers
Topics
Authors
Recent
Search
2000 character limit reached

Path and Ancestor Queries on Trees with Multidimensional Weight Vectors

Published 2 Oct 2019 in cs.DS | (1910.01147v1)

Abstract: We consider an ordinal tree TT on nn nodes, with each node assigned a dd-dimensional weight vector $\pnt{w} \in {1,2,\ldots,n}<sup>d,$ where d∈Nd \in \mathbb{N} is a constant. We study path queries as generalizations of well-known {\textit{orthogonal range queries}}, with one of the dimensions being tree topology rather than a linear order. Since in our definitions dd only represents the number of dimensions of the weight vector without taking the tree topology into account, a path query in a tree with dd-dimensional weight vectors generalize the corresponding (d+1)(d+1)-dimensional orthogonal range query. We solve {\textit{ancestor dominance reporting}} problem as a direct generalization of dominance reporting problem, %in time $\O((\lg<sup>{d-1}</sup> n)/(\lg\lg n)<sup>{d-2}+k)$ in time $\O(\lg<sup>{d-1}{n}+k)$ %and space of $\O(n(\lg n)<sup>{d-1}/(\lg</sup> \lg n)<sup>{d-2})$ words, and space of $\O(n\lg<sup>{d-2}n)$ words, where kk is the size of the output, for d≥2.d \geq 2. We also achieve a tradeoff of $\O(n\lg<sup>{d-2+\eps}{n})$ words of space, with query time of $\O((\lg<sup>{d-1}</sup> n)/(\lg\lg n)<sup>{d-2}+k),$ for the same problem, when d≥3.d \geq 3. We solve {\textit{path successor problem}} in $\O(n\lg<sup>{d-1}{n})$ words of space and time $\O(\lg<sup>{d-1+\eps}{n})$ for d≥1d \geq 1 and an arbitrary constant $\eps &gt; 0.$ We propose a solution to {\textit{path counting problem}}, with $\O(n(\lg{n}/\lg\lg{n})<sup>{d-1})$ words of space and $\O((\lg{n}/\lg\lg{n})<sup>{d})$ query time, for d≥1.d \geq 1. Finally, we solve {\textit{path reporting problem}} in $\O(n\lg<sup>{d-1+\eps}{n})$ words of space and $\O((\lg<sup>{d-1}{n})/(\lg\lg{n})<sup>{d-2}+k)$ query time, for d≥2.d \geq 2. These results match or nearly match the best tradeoffs of the respective range queries. We are also the first to solve path successor even for d=1d = 1.

Authors (2)
Citations (2)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.