On enumerating tree permutations in natural order
An efficient algorithm for enumerating all tree permutations of n integers in the natural order is presented. The enumeration problem is solved by considering that a tree permutation hLR is simply a linearized representation of the corresponding binary tree, such that h is the node value and L and R are its left and right subtrees, respectively. The best-case, average-case and worst-case time-complexities of the enumeration algorithm are O(1), O(3) and O(n), respectively, whereas its space-complexity is O(n). Furthermore, it is shown that the conversion from a tree permutation to the conventional representation of a binary tree using records (nodes) and pointers can be accomplished in O(n) units of time.
- A Note on Generating Well-formed Parenthesis Strings Lexicographically
- A numbering system for binary trees
- Generation of all the balanced parenthesis strings in lexicographical order
- Generation of Binary Trees from Ballot Sequences
- scientific article; zbMATH DE number 3757724 (Why is no real title available?)
- scientific article; zbMATH DE number 3473265 (Why is no real title available?)
- Lexicographic generation of ordered trees
- Ranking and Listing Algorithms for k-Ary Trees
- Constant-memory iterative generation of special strings representing binary trees
- Classes of Admissible Permutations that are Generatable by Depth-first Traversals of Ordered Trees
- Increasing trees and alternating permutations
- scientific article; zbMATH DE number 4187815 (Why is no real title available?)
This page was built for publication: On enumerating tree permutations in natural order
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3804211)