Generations of a plane tree #
A minimal generation API for the proof of Lemma lem:S_lh (source lines 3066–3083,
inventory P23):
gen i T: the fringe subtrees rooted at the vertices of generation (depth)i, in depth-first order (one entry per vertex, multiplicity preserved);genCount i T = Z_i(T): the number of vertices at generationi;skelSize k T = C_k(T) = Z_0(T) + ⋯ + Z_{k-1}(T): the number of vertices in the firstkgenerations (the paper's skeleton size), whileL_k(T) = Z_k(T) = (gen k T).length;vertexCount_eq_skelSize_add:|T| = C_k(T) + ∑_{v ∈ gen k T} |T_v|, the deterministic identity behind the decomposition|𝒯| = C_k + ∑_{i ≤ L_k} |𝒯^{(i)}|.
The fringe subtrees rooted at generation i, in depth-first order.
Equations
Instances For
C_k(T) = ∑_{i < k} Z_i(T), the number of vertices in generations 0, …, k - 1.
Equations
Instances For
|T| = C_k(T) + ∑_{v ∈ gen k T} |T_v| (source lines 3076–3082).