Year: 2003
Type: article
Abstract: An ecient algorithm for the generation of P-sequences is presented. P-sequences are integer sequences characterizing all shapes of n-noded binary trees. This algorithm generates each sequence in B-order with constant average time O(1). The sequences are generated in lexicographical orders. The ranking and unranking algorithms with O(n) time complexity are also described. Finally, an algorithm for the construction of a binary tree with a linked structure from P-sequence is presented.
Authors: H. Ahrabian, Abbas Nowzari-Dalini
Language: English
Subfield: Discrete Mathematics and Combinatorics
Field: Mathematics
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W73551576
