Arboral Satisfaction, Independent Rectangles, and Wilber's Second Lower Bound #
This module proves Wilber's second lower bound (the Funnel Bound, [Wil89]) on the cost of
every binary search tree execution serving an access sequence xs, via the geometric
arboral-satisfaction and independent-rectangles framework of
[DHI+09].
Proof architecture #
Arboral satisfaction of BST executions (
ArborallySatisfied,executionPoints,arborallySatisfied_executionPoints): AnyTouchedExecutiononxsinduces the 2D execution point setE = {(k, i) | k ∈ touchedAt i} ⊆ α × Fin xs.lengthof size|E| = e.cost, containing all access pointsX = {(xs[i], i)}. UsingtopNodeandUntouchedPreserved, every pair of points inEnot sharing a row or column spans a closed axis-aligned box containing a third point ofE.Independent rectangles lower bound (
Rect,IndependentRects,card_independentRects_le): A finite setIof non-degenerate rectangles is independent overXif everyR ∈ Ihas both defining point-corners inX, contains no other point ofX, and no two distinct rectangles inIhave any of the four geometric corners of one in the strict open interior of the other. By induction on|E \ X|(inserting one extra pointr ∈ E \ Xat a time and splitting the rectangles containingrinto quadrant sub-rectangles while bounding the killed rectangles via a non-crossing bipartite graph lemma and order-dualityαᵒᵈ), every arborally satisfied supersetE ⊇ XsatisfiesI.card ≤ 12 * (E \ X).card.Wilber's Second Lower Bound (
funnelScan,funnelOf,funnelAlter,wilberSecond,wilberSecond_le_twelve_mul_cost,wilberSecond_le_twelve_mul_stepCost): For each accessj,funnelOf xs jscans backward fromj - 1down to the previous access ofxs[j], recording keys that strictly tighten the open interval(lo, hi)aroundxs[j], andfunnelAlter xs jcounts left/right alternations in this funnel. Each alternating pair maps injectively to an unsatisfied rectangle ofaccessPoints xs, and the resulting collection satisfiesIndependentRects, yieldingwilberSecond xs ≤ 12 * (e.cost - xs.length)and hencewilberSecond xs ≤ 12 * e.touchedCost ≤ 12 * e.stepCost.
Main definitions #
inBox,ArborallySatisfied,executionPoints,accessPoints: 2D execution point sets and the arboral satisfaction predicate.Rect,IndependentRects: axis-aligned rectangles spanned by point pairs and the independent unsatisfied rectangles predicate.funnelScan,funnelOf,funnelAlter,wilberSecond: backward funnel scan, per-access funnel alternations, and Wilber's second lower bound.
Main results #
arborallySatisfied_executionPoints: everyTouchedExecutionyields an arborally satisfied point set of sizee.costcontainingaccessPoints xs.card_independentRects_le:I.card ≤ 12 * (E \ X).cardfor any arborally satisfiedE ⊇ XandIndependentRects X I.wilberSecond_le_twelve_mul_cost_sub,wilberSecond_le_twelve_mul_cost,wilberSecond_le_twelve_mul_touchedCost,wilberSecond_le_twelve_mul_stepCost: Wilber's Second Lower Bound (Funnel Bound) ([Wil89]) for all touched-subtree and pointer-and-rotation BST executions.
References #
- [Wil89] Robert Wilber, Lower Bounds for Accessing Binary Search Trees with Rotations, SIAM Journal on Computing 18(1), 56–67, 1989 (cited at topic level; journal full text not inspected).
- [DHI+09] Erik D. Demaine, Dion Harmon, John Iacono, Daniel M. Kane, and Mihai Pătraşcu, The Geometry of Binary Search Trees, SODA 2009, pp. 496–505 (cited at topic level; proceedings full text not inspected).
Arboral Satisfaction of BST Executions #
Point r lies in the closed axis-aligned bounding box of p and q.
A finite 2D point set E is arborally satisfied ([DHI+09])
if every pair of points in E with distinct x- and y-coordinates spans a closed bounding box
containing a third point of E.
The 2D access point set {(xs[i], i) | i : Fin xs.length}.
The 2D execution point set {(k, i) | k ∈ e.touchedAt i} of a TouchedExecution.
Every TouchedExecution starting from an Ordered BST yields an arborally satisfied 2D point
set executionPoints e ([DHI+09]).
Independent Unsatisfied Rectangles Lower Bound #
Left x-coordinate of R.
Right x-coordinate of R.
Bottom t-coordinate of R.
Top t-coordinate of R.
Non-degeneracy of a rectangle (bot.1 ≠ top.1 and bot.2 < top.2).
Closed box membership in R.
Strict open interior membership in R.
R₁ has one of its four geometric corners strictly inside the open interior of R₂.
R is valid, has both point-corners in X, and contains no other point of X.
I is a finite set of independent unsatisfied rectangles over X
([DHI+09]): every R ∈ I is unsatisfied in X, and no two
distinct rectangles in I place a geometric corner of one in the strict interior of the other.
Independent Rectangles Lower Bound (after [DHI+09]):
for any finite subset X ⊆ E with E arborally satisfied and any independent set I of
unsatisfied rectangles over X, I.card ≤ 12 * (E \ X).card.
Wilber's Second Lower Bound (Funnel Bound) #
Backward funnel scan for target key x over reversed history entries (key, idx) strictly
before the previous access of x, recording (key, idx, isRight) whenever a key strictly
tightens the enclosing open interval (lo, hi) around x.
Number of left/right alternations in the funnel of access j ([Wil89]).
Wilber's Second Lower Bound (Funnel Bound) ([Wil89]): sum of funnelAlter xs j
across all accesses j in xs.
Wilber's Second Lower Bound (Funnel Bound) ([Wil89]) in sharp extra-touch form:
for any ordered BST T₀ and any TouchedExecution serving xs from T₀,
wilberSecond xs ≤ 12 * (e.cost - xs.length).
Wilber's Second Lower Bound (Funnel Bound) ([Wil89]) for any TouchedExecution:
wilberSecond xs ≤ 12 * e.cost.
Wilber's Second Lower Bound (Funnel Bound) ([Wil89]) for the touched-node cost of any
pointer-and-rotation BSTExecution.
Wilber's Second Lower Bound (Funnel Bound) ([Wil89]) for the atomic
pointer-and-rotation step cost of any BSTExecution.