The search functionality is under construction.

IEICE TRANSACTIONS on Information

Ranking and Unranking of t-Ary Trees Using RD-Sequences

Ro-Yu WU, Jou-Ming CHANG, Yue-Li WANG

  • Full Text Views

    0

  • Cite this

Summary :

In this paper, we introduce a concise representation, called right-distance sequences (or RD-sequences for short), to describe all t-ary trees with n internal nodes. A result reveals that there exists a close relationship between the representation and the well-formed sequences suggested by Zaks [Lexicographic generation of ordered trees, Theoretical Computer Science 10 (1980) 63-82]. Using a coding tree and its concomitant tables, a systematical way can help us to investigate the structural representation of t-ary trees. Consequently, we develop efficient algorithms for determining the rank of a given t-ary tree in lexicographic order (i.e., a ranking algorithm), and for converting a positive integer to its corresponding RD-sequence (i.e., an unranking algorithm). Both the ranking and unranking algorithms can be run in O(tn) time and without computing all the entries of the coefficient table.

Publication
IEICE TRANSACTIONS on Information Vol.E94-D No.2 pp.226-232
Publication Date
2011/02/01
Publicized
Online ISSN
1745-1361
DOI
10.1587/transinf.E94.D.226
Type of Manuscript
Special Section PAPER (Special Section on Foundations of Computer Science -- Mathematical Foundations and Applications of Algorithms and Computer Science --)
Category

Authors

Keyword