Finite tree excursions #
A Łukasiewicz tree word has integer increments at least -1, total sum -1,
and nonnegative sums at every strict prefix. The increment decoder checks the
lower bound before converting increments to natural outdegrees.
Integer increment words of finite plane trees, with the empty prefix included and the terminal prefix excluded from the nonnegativity condition.
Equations
Instances For
Reconstruct a tree from integer increments, rejecting values below -1
before converting them to outdegrees. The degree decoder accepts one tree only.
Equations
Instances For
The forward DFS code satisfies exactly the finite-excursion conditions.
Decoding the increment word of a tree recovers that tree.
A successful increment parse reproduces the entire input word.
Every valid tree excursion parses successfully as one tree.
Integer Łukasiewicz excursions are precisely the codes of unique finite plane trees.