Path and Ancestor Queries on Trees with Multidimensional Weight Vectors
Abstract: We consider an ordinal tree on nodes, with each node assigned a -dimensional weight vector $\pnt{w} \in {1,2,\ldots,n}<sup>d,$ where 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 only represents the number of dimensions of the weight vector without taking the tree topology into account, a path query in a tree with -dimensional weight vectors generalize the corresponding -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 is the size of the output, for 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 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 and an arbitrary constant $\eps > 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 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 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 .
Paper Prompts
Sign up for free to create and run prompts on this paper.