arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.01147cs.DS
收藏

具有多维权向量的树上的路径和祖先树

Path and Ancestor Queries on Trees with Multidimensional Weight Vectors

Meng He, Serikzhan Kazi

摘要:

我们考虑$n$节点上的序树$T$,每个节点分配一个$d$维权重向量$\pnt{w} \in \{1,2,\ldots,n\}^d,$,其中$d \in \mathbb{N}$是一个常数.我们研究路径查询的推广众所周知的{ \textit{orthogonal range queries} },其中一个维度是树拓扑结构,而不是线性顺序。由于在我们的定义中$d$只表示权重向量的维数而不考虑树的拓扑结构,因此具有$d$维权重向量的树中的路径查询推广了相应的$(d+1)$维正交范围查询。我们解决{ \textit{ancestor dominance reporting} }问题作为支配报告问题的直接推广,时间上的%$Ø((\lg^{d-1} n)/(\lg\lg n)^{d-2}+k)$时间上的$Ø(\lg^{d-1}{n}+k)$ %和$Ø(n(\lg n)^{d-1}/(\lg \lg n)^{d-2})$字的空间,以及$Ø(n\lg^{d-2}n)$字的空间,其中$k$是输出的大小,对于$d \geq 2.$,我们还实现了$Ø(n\lg^{d-2+\eps}{n})$字的空间的折衷,对于相同的问题,查询时间为$Ø((\lg^{d-1} n)/(\lg\lg n)^{d-2}+k),$,当$d \geq 3.$时我们在$Ø(n\lg^{d-1}{n})$中求解{ \textit{path successor problem} }空间和时间字$Ø(\lg^{d-1+\eps}{n})$对于$d \geq 1$和任意常数$\eps > 0.$我们对{ \textit{path counting problem} }提出一种求解方法,对于$d \geq 1.$具有$Ø(n(\lg{n}/\lg\lg{n})^{d-1})$空间字和$Ø((\lg{n}/\lg\lg{n})^{d})$查询时间。最后,对于$d \geq 2.$,我们在$Ø(n\lg^{d-1+\eps}{n})$空间字和$Ø((\lg^{d-1}{n})/(\lg\lg{n})^{d-2}+k)$查询时间中求解{ \textit{path reporting problem} }。这些结果匹配或几乎匹配相应范围查询的最佳折衷。我们也是第一个解决路径后继甚至$d = 1$。

英文摘要:

We consider an ordinal tree $T$ on $n$ nodes, with each node assigned a $d$-dimensional weight vector $\pnt{w} \in \{1,2,\ldots,n\}^d,$ where $d \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 $d$ only represents the number of dimensions of the weight vector without taking the tree topology into account, a path query in a tree with $d$-dimensional weight vectors generalize the corresponding $(d+1)$-dimensional orthogonal range query. We solve {\textit{ancestor dominance reporting}} problem as a direct generalization of dominance reporting problem, %in time $Ø((\lg^{d-1} n)/(\lg\lg n)^{d-2}+k)$ in time $Ø(\lg^{d-1}{n}+k)$ %and space of $Ø(n(\lg n)^{d-1}/(\lg \lg n)^{d-2})$ words, and space of $Ø(n\lg^{d-2}n)$ words, where $k$ is the size of the output, for $d \geq 2.$ We also achieve a tradeoff of $Ø(n\lg^{d-2+\eps}{n})$ words of space, with query time of $Ø((\lg^{d-1} n)/(\lg\lg n)^{d-2}+k),$ for the same problem, when $d \geq 3.$ We solve {\textit{path successor problem}} in $Ø(n\lg^{d-1}{n})$ words of space and time $Ø(\lg^{d-1+\eps}{n})$ for $d \geq 1$ and an arbitrary constant $\eps > 0.$ We propose a solution to {\textit{path counting problem}}, with $Ø(n(\lg{n}/\lg\lg{n})^{d-1})$ words of space and $Ø((\lg{n}/\lg\lg{n})^{d})$ query time, for $d \geq 1.$ Finally, we solve {\textit{path reporting problem}} in $Ø(n\lg^{d-1+\eps}{n})$ words of space and $Ø((\lg^{d-1}{n})/(\lg\lg{n})^{d-2}+k)$ query time, for $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 = 1$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑