arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1410.4963cs.DS
收藏

关于二叉树的简洁表示

On Succinct Representations of Binary Trees

Pooya Davoodi, Rajeev Raman, Srinivasa Rao Satti

摘要:

我们观察到,一个标准的转换之间的\emph{ordinal}树(任意根树有序的孩子)和二叉树导致有趣的简洁的二叉树表示。这些变换有四种对称形式。通过这些转换,我们得到四个简洁的$n$节点二叉树的表示,使用$2n + n/(\log n)^{O(1)}$位和支持(除其他操作)导航,顺序编号,前或后顺序编号,子树大小和最低共同祖先(LCA)查询。支持有序编号的能力对于$n$有序值的数组$A$上的著名的最小范围查询(RMQ)问题至关重要。虽然Davoodi等人使用$2n + o(n)$位在$O(1)$时间中也支持此功能以及更多功能。Farzan和Munro(\emph{Algorithmica} \textbf{6}(2014))的表示(\emph{Phil. Trans. Royal Soc. A} \textbf{372}(2014))的扩展,他们的\emph{redundancy}或$o(n)$项要大得多,并且他们的方法可能不适合于实际实现。其中一个变换与Zaks序列(S.~ Zaks,\emph{Theor. Comput. Sci.} \textbf{10}(1980))编码二叉树,因此我们提供了基于Zaks序列的第一个简洁的二叉树表示。这些转换中的另一个等价于Fischer和Heun的(\emph{SIAM J. Comput.} \textbf{40}(2011))\minheap \结构。另一种变体允许仅使用工作空间的$O(\sqrt{n} \log n)$位从$A$构造$A$的笛卡尔树的编码。

英文摘要:

We observe that a standard transformation between \emph{ordinal} trees (arbitrary rooted trees with ordered children) and binary trees leads to interesting succinct binary tree representations. There are four symmetric versions of these transformations. Via these transformations we get four succinct representations of $n$-node binary trees that use $2n + n/(\log n)^{O(1)}$ bits and support (among other operations) navigation, inorder numbering, one of pre- or post-order numbering, subtree size and lowest common ancestor (LCA) queries. The ability to support inorder numbering is crucial for the well-known range-minimum query (RMQ) problem on an array $A$ of $n$ ordered values. While this functionality, and more, is also supported in $O(1)$ time using $2n + o(n)$ bits by Davoodi et al.'s (\emph{Phil. Trans. Royal Soc. A} \textbf{372} (2014)) extension of a representation by Farzan and Munro (\emph{Algorithmica} \textbf{6} (2014)), their \emph{redundancy}, or the $o(n)$ term, is much larger, and their approach may not be suitable for practical implementations. One of these transformations is related to the Zaks' sequence (S.~Zaks, \emph{Theor. Comput. Sci.} \textbf{10} (1980)) for encoding binary trees, and we thus provide the first succinct binary tree representation based on Zaks' sequence. Another of these transformations is equivalent to Fischer and Heun's (\emph{SIAM J. Comput.} \textbf{40} (2011)) \minheap\ structure for this problem. Yet another variant allows an encoding of the Cartesian tree of $A$ to be constructed from $A$ using only $O(\sqrt{n} \log n)$ bits of working space.

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

↑