Generating regular k-ary trees efficiently

被引:14
|
作者
Xiang, LM
Ushijima, K
Akl, SG
机构
[1] Kyushu Univ, Dept Comp Sci & Commun Engn, Higashi Ku, Fukuoka 8128581, Japan
[2] Queens Univ, Dept Comp & Informat Sci, Kingston, ON K7L 3N6, Canada
来源
COMPUTER JOURNAL | 2000年 / 43卷 / 04期
关键词
D O I
10.1093/comjnl/43.4.290
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A recursive algorithm GenWordsR and a non-recursive algorithm GenWordsNR are presented in this paper to generate sequences for regular k-ary trees efficiently. They are compared with same of the previous recursive and non-recursive algorithms for this problem that were found in the literature. When the average number of recursive calls is used as a measure of the time complexity of recursive algorithms for generating k-ary trees, O(k) calls for a k-ary tree is the best result in the previous recursive algorithms, while O(1/k) calls for a k-ary tree is needed by GenWordsR. When the average number of comparisons is used as a measure of the time complexity of non-recursive algorithms for generating k-ary trees, GenWordsNR outperforms the previous non-recursive algorithms. As k increases, the number (and the average number) of comparisons performed by GenWordsNR tends to 66% that of the best previous non-recursive algorithms.
引用
收藏
页码:290 / 300
页数:11
相关论文
共 50 条
  • [21] Loop free generation of k-ary trees
    Roelants Van Baronaigien, Dominique
    American Journal of Mathematical and Management Sciences, 2000, 20 (1-2) : 183 - 200
  • [22] Note on the Exponential Recursive k-Ary Trees
    Ghasemi, Mina
    Javanian, Mehri
    Nabiyyi, Ramin Imany
    RAIRO-THEORETICAL INFORMATICS AND APPLICATIONS, 2023, 57 : 16 - 32
  • [23] k-Ary spanning trees contained in tournaments
    Ai, Jiangdong
    Lei, Hui
    Shi, Yongtang
    Yao, Shunyu
    Zhang, Zan-Bo
    DISCRETE APPLIED MATHEMATICS, 2020, 285 : 141 - 146
  • [24] BRANCHES IN RANDOM RECURSIVE k-ARY TREES
    Javanian, M.
    Vahidi-Asl, M. Q.
    BULLETIN OF THE IRANIAN MATHEMATICAL SOCIETY, 2012, 38 (02) : 323 - 331
  • [25] Antimagic orientations for the complete k-ary trees
    Chen Song
    Rong-Xia Hao
    Journal of Combinatorial Optimization, 2019, 38 : 1077 - 1085
  • [26] Complete k-ary trees and Hamming graphs
    Choudum, S. A.
    Lavanya, S.
    AUSTRALASIAN JOURNAL OF COMBINATORICS, 2009, 45 : 15 - 24
  • [27] Scaling limits of k-ary growing trees
    Haas, Benedicte
    Stephenson, Robin
    ANNALES DE L INSTITUT HENRI POINCARE-PROBABILITES ET STATISTIQUES, 2015, 51 (04): : 1314 - 1341
  • [28] EFFICIENT GENERATION OF K-ARY TREES IN NATURAL ORDER
    ER, MC
    COMPUTER JOURNAL, 1992, 35 (03): : 306 - 308
  • [29] Restricted rotation distance between k-ary trees
    Cleary S.
    Journal of Graph Algorithms and Applications, 2023, 27 (01) : 19 - 33
  • [30] ON ALPHABETICAL k-ARY TREES WITH RESTRICTED PATH LENGTH
    朱永津
    王建方
    A Monthly Journal of Science, 1981, (02) : 97 - 101