Back to Search
Start Over
A note on generating binary trees inA-order andB-order
- 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.
- Subjects :
- Discrete mathematics
Binary tree
Applied Mathematics
Weight-balanced tree
Binary pattern
Lexicographical order
Random binary tree
Computer Science Applications
Combinatorics
Computational Theory and Mathematics
Geometry of binary search trees
Binary search tree
Bit-length
Computer Science::Formal Languages and Automata Theory
Mathematics
Subjects
Details
- ISSN :
- 10290265 and 00207160
- Volume :
- 18
- Database :
- OpenAIRE
- Journal :
- International Journal of Computer Mathematics
- Accession number :
- edsair.doi...........e77e6ce72c323596d1d6b8f7d7d67eaf