کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
434204 689702 2014 9 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
A loopless algorithm for generating multiple binary tree sequences simultaneously
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
A loopless algorithm for generating multiple binary tree sequences simultaneously
چکیده انگلیسی

Pallo and Wu et al. respectively introduced the left-weight sequences (LW-sequences) and right-weight sequences (RW-sequences) for representing binary trees. In this paper, we introduce two new types of binary tree sequences called the left-child sequences (LC-sequences) and right-child sequences (RC-sequences). Next, we propose a loopless algorithm associated with rotations of binary trees for generating LW-, RW-, LC-, and RC-sequences simultaneously. Moreover, we show that LW- and RW-sequences are generated in Gray-code order, and LC- and RC-sequences are generated so that each sequence can be obtained from its predecessor by changing at most two digits. Our algorithm is shown to be more efficient in both space and time than the existing known algorithms.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Theoretical Computer Science - Volume 556, 30 October 2014, Pages 25–33
نویسندگان
, , , ,