Black pebbling of complete binary trees #
The complete binary tree T_h of height h has a vertex for each root-first path of length at
most h. Edges point from children to parents, so the leaves are the sources and the root is the
sink. A vertex at depth d < h has black pebbling price h - d + 2, so the root has price h + 2.
The upper bound pebbles the two children one after the other. The lower bound uses the
path-blocking engine of CslibFrontier.Computability.Pebbling.Blocking, with the leftmost path into
each child as the witness path.
Main definitions #
Cslib.Pebbling.BinaryTreeVertex h,Cslib.Pebbling.completeBinaryTree h: the tree.Cslib.Pebbling.BinaryTreeVertex.root h: its root.Cslib.Pebbling.BinaryTreeVertex.below v: the subtree rooted atv.
Main results #
Cslib.Pebbling.blackPebblingPrice_completeBinaryTree: a vertex at depthd < hhas priceh - d + 2.Cslib.Pebbling.blackPebblingPrice_completeBinaryTree_root: forh ≥ 1the root has priceh + 2.
References #
- J. Nordström, New wine into old wineskins, Theorem 4.1.
- J. E. Savage, Models of Computation, Lemma 10.2.1 (with sliding, so its bound is one lower).
Complete binary trees #
A vertex of the complete binary tree of height h: a root-first path of length at most h,
where false is the left child.
The root-first path, with
falsefor the left child.The depth is at most
h.
The complete binary tree T_h, with edges directed from children to parents.
The vertices of the subtree rooted at v.
A vertex at depth d of T_h can be pebbled with h - d + 2 pebbles.
Every non-leaf vertex v of T_h forces h - depth + 2 pebbles on its subtree.
The black pebbling price of a non-leaf vertex at depth d of T_h is h - d + 2.
The complete binary tree of height h ≥ 1 has black pebbling price h + 2.