題名: | A Linear Time Algorithm for Binary Tree Sequences Transformation Using Left-arm and Right-arm Rotations |
作者: | Wu, Ro-Yu Chang, Jou-Ming Wang, Yue-Li |
關鍵字: | Algorithms Amortized analysis Binary trees Rotations Tree transformation Enumera-tion Lexicographic order |
期刊名/會議名稱: | 2005 NCS會議 |
摘要: | In this paper we consider a transformation on binary trees using new types of rotations. Each of the newly proposed rotations is permitted only at nodes on the left-arm or the right-arm of a tree. Consequently, we develop a linear time algorithm with at most n − 1 rotations for converting weight sequences between any two binary trees. In particular, from an analysis of aggregate method for a sequence of rotations, each rotation of the proposed algorithm can be performed in a constant amortized time. Next, we show that a specific directed rooted tree called rotation tree can be constructed using one of the new type rotations. As a by-product, a naive algorithm for enumerating weight sequences of binary trees in lexicographic order can be implemented by traversing the rotation tree. |
日期: | 2006-10-13T08:16:10Z |
分類: | 2005年 NCS 全國計算機會議 |
文件中的檔案:
檔案 | 描述 | 大小 | 格式 | |
---|---|---|---|---|
ce07ncs002006000088.pdf | 364 kB | Adobe PDF | 檢視/開啟 |
在 DSpace 系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。