EFFICIENT GENERATION OF K-ARY TREES IN NATURAL ORDER

被引:21
|
作者
ER, MC
机构
[1] Department of Mathematics and Computing Sciences, St. Francis Xavier University, Antigonish
来源
COMPUTER JOURNAL | 1992年 / 35卷 / 03期
关键词
D O I
10.1093/comjnl/35.3.306
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A k-ary tree with n nodes can be encoded as a k-inorder-preorder sequence of length (k - 1) n by labelling the tree from 1 to (k - 1) n in generalised inorder and then reading off the labelled integers in generalised preorder. The natural ordering of a set of k-ary trees with n nodes is shown to be preserved in the lexicographic ordering of a set of k-inorder-preorder sequences of length (k - 1) n. An efficient algorithm for generating a set of k-inorder-preorder sequences in lexicographic order is presented. This set of k-inorder-preorder sequences can subsequently be converted to the corresponding set of k-ary trees in natural order.
引用
收藏
页码:306 / 308
页数:3
相关论文
共 50 条
  • [1] Coding k-ary trees for efficient loopless generation in lexicographic order
    Xiang, LM
    Ushijima, K
    Asahiro, Y
    INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: CODING AND COMPUTING, PROCEEDINGS, 2002, : 396 - 401
  • [2] GENERATION AND RANKING OF K-ARY TREES
    ZAKS, S
    INFORMATION PROCESSING LETTERS, 1982, 14 (01) : 44 - 48
  • [3] Efficient loopless generation of Gray codes for k-ary trees
    Xiang, LM
    Ushijima, K
    Tang, CJ
    INFORMATION PROCESSING LETTERS, 2000, 76 (4-6) : 169 - 174
  • [4] Parallel generation of k-ary trees
    Vajnovszki, V
    Phillips, C
    HIGH PERFORMANCE COMPUTING ON THE INFORMATION SUPERHIGHWAY - HPC ASIA '97, PROCEEDINGS, 1997, : 117 - 121
  • [5] Recursive Generation of k-ary Trees
    Manes, K.
    Sapounakis, A.
    Tasoulas, I.
    Tsikouras, P.
    JOURNAL OF INTEGER SEQUENCES, 2009, 12 (07)
  • [6] Systolic generation of k-ary trees
    Lesi, Vincent Vajnovszki
    Parallel Processing Letters, 1999, 9 (01): : 93 - 101
  • [7] GENERATING K-ARY TREES IN LEXICOGRAPHIC ORDER
    ZHU, Y
    WANG, J
    SCIENTIA SINICA, 1980, 23 (10): : 1219 - 1225
  • [8] GENERATING k-ARY TREES IN LEXICOGRAPHIC ORDER
    朱永津
    王建方
    Science China Mathematics, 1980, (10) : 1219 - 1225
  • [9] Shifts and loopless generation of k-ary trees
    Korsh, JF
    Lipschutz, S
    INFORMATION PROCESSING LETTERS, 1998, 65 (05) : 235 - 240
  • [10] Loop free generation of k-ary trees
    Roelants Van Baronaigien, Dominique
    American Journal of Mathematical and Management Sciences, 2000, 20 (1-2) : 183 - 200