Ranking and Unranking of t-Ary Trees Using RD-Sequences
スポンサーリンク
概要
- 論文の詳細を見る
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.
著者
-
WANG Yue-Li
Department of Information Management, National Taiwan University of Science and Technology
-
WU Ro-Yu
Department of Industrial Management, Lunghwa University of Science and Technology
-
CHANG Jou-Ming
Institute of Information Science and Management, National Taipei College of Business
-
CHANG Jou-Ming
Institute of Information and Decision Sciences, National Taipei College of Business
関連論文
- Ranking and Unranking of t-Ary Trees Using RD-Sequences
- Ranking and Unranking of Non-regular Trees in Gray-Code Order