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 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 in time %and space of words, and space of words, where is the size of the output, for We also achieve a tradeoff of words of space, with query time of for the same problem, when We solve {\textit{path successor problem}} in words of space and time for and an arbitrary constant We propose a solution to {\textit{path counting problem}}, with words of space and query time, for Finally, we solve {\textit{path reporting problem}} in words of space and 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 .
Cite
@article{arxiv.1910.01147,
title = {Path and Ancestor Queries on Trees with Multidimensional Weight Vectors},
author = {Meng He and Serikzhan Kazi},
journal= {arXiv preprint arXiv:1910.01147},
year = {2019}
}