【24h】

Universal Succinct Representations of Trees?

机译:普遍的精明的树木表示?

获取原文

摘要

We consider the succinct representation of ordinal and cardinal trees on the RAM with logarithmic word size. Given a tree T, our representations support the following operations in O(1) time: (i) BP-substring(i,b), which reports the substring of length b bits (b is at most the wordsize) beginning at position i of the balanced parenthesis representation of T, (ii) DFUDS-substring(i, b), which does the same for the depth first unary degree sequence representation, and (iii) a similar operation for tree-partition based representations of T, We give: (1) an asymptotically space-optimal 2n+o(n) bit representation of n-node ordinal trees that supports all the above operations with b=Θ(log n), answering an open question from [He et al., ICALP'07]. (2) an asymptotically space-optimal C(n, k)+o(n)-bit representation of k-ary cardinal trees, that supports (with b=Θ(log n~(1/2))) the operations (ii) and (iii) above, on the ordinal tree obtained by removing labels from the cardinal tree, as well as the usual label-based operations. As a result, we obtain a fully-functional cardinal tree representation with the above space complexity. This answers an open question from [Raman et al, SODA'02]. Our new representations are able to simultaneously emulate the BP, DFUDS and partitioned representations using a single instance of the data structure, and thus aim towards universality. They not only support the union of all the ordinal tree operations supported by these representations, but will also automatically inherit any new operations supported by these representations in the future.
机译:我们考虑的顺序和基数树与对数字大小的RAM简洁表示。鉴于一棵树T,我们表示支持澳以下操作(1)时间:(一)BP-子串(I,B),该报告长度b位(b为大多数字长)的子串在位置i开始T的均衡括号表示的,(ⅱ)DFUDS-SUBSTRING(I,b),其做为深度第一一进制度序列表示中的相同,和(iii)类似的操作为树形区段T的基础表示,我们得到:(1)一个渐近空间最佳2N + n节点序树的O(N)的位表示,它支持所有用b =Θ(log n)的上述操作,应答从一个开放的问题[He等人,。 ICALP'07。 (2)一个渐近空间最优C(N,K)+ O(n)的k元基数树位表示,即支撑件(用b =Θ(日志N〜(1/2)))的操作( ii)和(iii)外,通过上从基数树,以及通常的基于标签的操作中除去的标签获得的序数的树。其结果是,我们得到与上面的空间复杂度全功能的基数树表示。这个回答来自[拉曼等,SODA'02]一个悬而未决的问题。我们新的表示是能够同时模拟BP,DFUDS并使用数据结构的一个实例分区交涉,从而实现普遍性的目标。他们不仅支持所有这些表示支持的序树操作的结合,也将自动继承在未来的这些表示支持的任何新业务。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号