Title of article :
Ranking and unranking of non-regular trees with a prescribed branching sequence
Author/Authors :
Wu، نويسنده , , Ro-Yu and Chang، نويسنده , , Jou-Ming and Chang، نويسنده , , Chir-Ho Chang، نويسنده ,
Issue Information :
روزنامه با شماره پیاپی سال 2011
Pages :
5
From page :
1331
To page :
1335
Abstract :
Ordered trees are called non-regular trees with a prescribed branching sequence (or non-regular trees for short) if their internal nodes have a pre-specified degree sequence in preorder list. This article presents two main results. First, we develop a simple algorithm to generate all non-regular trees in lexicographic order using RD-sequences defined by [R.-Y. Wu, J.-M. Chang, Y.-L. Wang, Loopless generation of non-regular trees with a prescribed branching sequence, The Computer Journal 53 (2010) 661–666]. Then, by analyzing the structure of a coding tree, this algorithm is proved to run in constant amortized time. Next, we propose efficient ranking algorithm (i.e., determining the rank of a given non-regular tree in such an order) and unranking algorithm (i.e., converting a positive integer to its corresponding RD-sequence).
Keywords :
Ranking/unranking algorithms , Constant amortized time , Enumeration algorithms , Non-regular trees
Journal title :
Mathematical and Computer Modelling
Serial Year :
2011
Journal title :
Mathematical and Computer Modelling
Record number :
1597704
Link To Document :
بازگشت