Back to Search Start Over

A note on generating binary trees inA-order andB-order

Authors :
R Racca
Jean Marcel Pallo
Source :
International Journal of Computer Mathematics. 18:27-39
Publication Year :
1985
Publisher :
Informa UK Limited, 1985.

Abstract

We introduce in this paper the P-sequences which are integer sequences characterizing binary trees and generating lexicographically all the binary trees in -order. We compute the rank of a P-sequence by a direct formula and not by an algorithm. Furthermore, we introduce the L-sequences which generate directly and lexicographically all the binary trees on A -order, also called natural order. Ranking and unranking algorithms are provided.

Details

ISSN :
10290265 and 00207160
Volume :
18
Database :
OpenAIRE
Journal :
International Journal of Computer Mathematics
Accession number :
edsair.doi...........e77e6ce72c323596d1d6b8f7d7d67eaf