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 条
  • [1] Generating regular k-ary trees efficiently
    Xiang, Limin, 1600, Oxford Univ Press, Oxford, United Kingdom (43):
  • [2] GENERATING K-ARY TREES IN LEXICOGRAPHIC ORDER
    ZHU, Y
    WANG, J
    SCIENTIA SINICA, 1980, 23 (10): : 1219 - 1225
  • [3] GENERATING k-ARY TREES IN LEXICOGRAPHIC ORDER
    朱永津
    王建方
    Science China Mathematics, 1980, (10) : 1219 - 1225
  • [4] On generating k-ary trees in computer representation
    Xiang, LM
    Ushijima, K
    Tang, CJ
    INFORMATION PROCESSING LETTERS, 2001, 77 (5-6) : 231 - 238
  • [5] GENERATING k-ARY TREES IN LEXICOGRAPHIC ORDER
    朱永津
    王建方
    ScienceinChina,SerA., 1980, Ser.A.1980 (10) : 1219 - 1225
  • [6] Optimal parallel algorithm for generating k-ary trees
    Vajnovszki, V
    Phillips, C
    COMPUTERS AND THEIR APPLICATIONS: PROCEEDINGS OF THE ISCA 12TH INTERNATIONAL CONFERENCE, 1997, : 201 - 204
  • [7] ON FIBONACCI K-ARY TREES
    CHANG, DK
    FIBONACCI QUARTERLY, 1986, 24 (03): : 258 - 262
  • [8] GENERATION AND RANKING OF K-ARY TREES
    ZAKS, S
    INFORMATION PROCESSING LETTERS, 1982, 14 (01) : 44 - 48
  • [9] Antibandwidth of complete k-ary trees
    Calamoneri, Tiziana
    Massini, Annalisa
    Toeroek, L'ubomir
    Vrt'o, Imrich
    DISCRETE MATHEMATICS, 2009, 309 (22) : 6408 - 6414
  • [10] Protected points in k-ary trees
    Mansour, Toufik
    APPLIED MATHEMATICS LETTERS, 2011, 24 (04) : 478 - 480