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

度有界有序树的生成、排序与去排序

Generation, Ranking and Unranking of Ordered Trees with Degree Bounds

Mahdi Amani, Abbas Nowzari-Dalini

摘要:

研究了节点具有最大度$Δ$的无标号有序树的生成、排序和去排序问题。这类树代表了化学树的推广。化学树是一种无标号树,其中没有节点的度大于4。通过允许化学树的每个节点最多有$Δ$子节点而不是4个,我们将得到化学树的泛化。在这里,我们介绍了一个新的编码在一个字母表的大小为4表示无标记有序树的最大程度的$Δ$。我们使用这种编码生成这些树在A-顺序与常数的平均时间和O(n)的最坏情况下的时间。由于给定的编码,在预先计算大小和时间O(n^2)的情况下(假设$Δ$是常数),排序和取消排序算法也都采用O(n)和O(nlogn)时间复杂度设计。

英文摘要:

We study the problem of generating, ranking and unranking of unlabeled ordered trees whose nodes have maximum degree of $Δ$. This class of trees represents a generalization of chemical trees. A chemical tree is an unlabeled tree in which no node has degree greater than 4. By allowing up to $Δ$ children for each node of chemical tree instead of 4, we will have a generalization of chemical trees. Here, we introduce a new encoding over an alphabet of size 4 for representing unlabeled ordered trees with maximum degree of $Δ$. We use this encoding for generating these trees in A-order with constant average time and O(n) worst case time. Due to the given encoding, with a precomputation of size and time O(n^2) (assuming $Δ$ is constant), both ranking and unranking algorithms are also designed taking O(n) and O(nlogn) time complexities.

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

↑