首页> 外文期刊>ACM transactions on algorithms >Data Structures for Path Queries
【24h】

Data Structures for Path Queries

机译:路径查询的数据结构

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Consider a tree T on n nodes, each having a weight drawn from [1..sigma]. In this article, we study the problem of supporting various path queries over the tree T. The path counting query asks for the number of the nodes on a query path whose weights are in a query range, while the path reporting query requires to report these nodes. The path median query asks for the median weight on a path between two given nodes, and the path selection query returns the k-th smallest weight. We design succinct data structures to encode T using nH(W-T) + 2n + o(n lg sigma) bits of space, such that we can support path counting queries in O(lg sigma / lg lg n + 1) time, path reporting queries in O((occ + 1)(lg sigma / lg lg n + 1)) time, and path median and path selection queries in O(lg sigma / lg lg sigma) time, where H(W-T) is the entropy of the multiset of the weights of the nodes in T and occ is the size of the output. Our results not only greatly improve the best known data structures [Chazelle 1987; Krizanc et al. 2005], but also match the lower bounds for path counting, median, and selection queries [Patrascu 2007, 2011; Jorgensen and Larsen 2011] when sigma = Omega (n/polylog(n)).
机译:考虑在n个节点上的树T,每个节点具有从[1.sigma]得出的权重。在本文中,我们研究了在树T上支持各种路径查询的问题。路径计数查询要求权重在查询范围内的查询路径上的节点数,而路径报告查询则需要报告这些节点的数量。节点。路径中位数查询要求两个给定节点之间的路径上的中位数权重,而路径选择查询返回第k个最小权重。我们设计简洁的数据结构以使用nH(WT)+ 2n + o(n lg sigma)位空间编码T,这样我们就可以支持O(lg sigma / lg lg n + 1)时间的路径计数查询,路径报告O((occ +1)(lg sigma / lg lg n + 1))时间中的查询,以及O(lg sigma / lg lg sigma)时间中的路径中位数和路径选择查询,其中H(WT)是T和occ中节点权重的乘数集是输出的大小。我们的结果不仅大大改善了最著名的数据结构[Chazelle 1987; Krizanc等。 [2005],但也要符合路径计数,中位数和选择查询的下限[Patrascu 2007,2011; [Jorgensen和Larsen,2011年],而sigma = Omega(n / polylog(n))。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号