Generation, Ranking and Unranking of Ordered Trees with Degree Bounds

被引:3
|
作者
Amani, Mahdi [1 ]
Nowzari-Dalini, Abbas [2 ]
机构
[1] Univ Pisa, Dipartimento Informat, Pisa, Italy
[2] Univ Tehran, Colleague Sci, Sch Math Stat & Comp Sci, Tehran, Iran
关键词
VARIABLE NEIGHBORHOOD SEARCH; CONSTANT-TIME GENERATION; BINARY-TREES; CHEMICAL TREES; LOOPLESS GENERATION; EXTREMAL GRAPHS; ARY TREES; ENUMERATION; ALGORITHM; INDEXES;
D O I
10.4204/EPTCS.204.4
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study the problem of generating, ranking and unranking of unlabeled ordered trees whose nodes have maximum degree of Delta. 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 Delta 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 Delta. 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 Delta is constant), both ranking and unranking algorithms are also designed taking O (n) and O (nlogn) time complexities.
引用
收藏
页码:31 / 45
页数:15
相关论文
共 50 条
  • [1] Ranking and unranking algorithms for loopless generation of t-ary trees
    Ahmadi-Adl, Amin
    Nowzari-Dalini, Abbas
    Ahrabian, Hayedeh
    [J]. LOGIC JOURNAL OF THE IGPL, 2011, 19 (01) : 33 - 43
  • [2] RANKING AND UNRANKING OF AVL-TREES
    LI, LW
    [J]. SIAM JOURNAL ON COMPUTING, 1986, 15 (04) : 1025 - 1035
  • [3] RANKING AND UNRANKING OF 2-3 TREES
    GUPTA, U
    LEE, DT
    WONG, CK
    [J]. SIAM JOURNAL ON COMPUTING, 1982, 11 (03) : 582 - 590
  • [4] UNRANKING AND RANKING SPANNING-TREES OF A GRAPH
    COLBOURN, CJ
    DAY, RPJ
    NEL, LD
    [J]. JOURNAL OF ALGORITHMS, 1989, 10 (02) : 271 - 286
  • [5] ENUMERATING, RANKING AND UNRANKING BINARY-TREES
    PALLO, JM
    [J]. COMPUTER JOURNAL, 1986, 29 (02): : 171 - 175
  • [6] Efficient Generation, Ranking, and Unranking of (k, m)-Ary Trees in B-Order
    M. Amani
    A. Nowzari-Dalini
    [J]. Bulletin of the Iranian Mathematical Society, 2019, 45 : 1145 - 1158
  • [7] Efficient Generation, Ranking, and Unranking of (k, m)-Ary Trees in B-Order
    Amani, M.
    Nowzari-Dalini, A.
    [J]. BULLETIN OF THE IRANIAN MATHEMATICAL SOCIETY, 2019, 45 (04) : 1145 - 1158
  • [8] Constant Time Generation of Trees with Degree Bounds
    Zhuang, Bingbing
    Nagamochi, Hiroshi
    [J]. OPERATIONS RESEARCH AND ITS APPLICATIONS, 2010, 12 : 183 - 194
  • [9] Improved Algorithms for Ranking and Unranking (k, m)-Ary Trees
    Chang, Yu-Hsuan
    Wu, Ro-Yu
    Chang, Ruay-Shiung
    Chang, Jou-Ming
    [J]. ALGORITHMIC ASPECTS IN INFORMATION AND MANAGEMENT, AAIM 2019, 2019, 11640 : 16 - 28
  • [10] Ranking, unranking and random generation of extensional acyclic digraphs
    Rizzi, Romeo
    Tomescu, Alexandru I.
    [J]. INFORMATION PROCESSING LETTERS, 2013, 113 (5-6) : 183 - 187