A deletion recurrence for expected positive-query cost in ARCH
ProvedCatalanHashing.Dynamic.arch_deletion_recurrencedata-structureshashingprobability
Fix a stored item in an ARCH table with cells. The items have positive integer word lengths, their total length is strictly less than , and each hash is independent and uniform. For a set containing , let be the expected number of cells scanned by a successful query for in the ARCH table built on . Then
Each term uses the cost of searching for the same item in the smaller table, with the table capacity unchanged. The recurrence relates the extra work caused by preempting items to queries on proper subsets and supplies the induction step in the proof of Theorem 1.3.
Preamble
import Definitions.Def_CatalanHashing_Dynamic_Static open MeasureTheory open scoped Classical ENNReal
Formal statement
namespace CatalanHashing.Dynamic
theorem arch_deletion_recurrence (m : ℕ) [NeZero m] {ι : Type*} [Fintype ι]
(len : ι → ℕ) (hlen : ∀ z, 1 ≤ len z) (hroom : (∑ z, len z) < m) (x : ι) :
(∫⁻ h : ι → unitInterval,
(queryCost len (fun z => canonical m (h z)) (arch m len h) (some x)
(canonical m (h x)) : ℝ≥0∞) ∂(Measure.pi fun _ => volume)) ≤
len x + ∑ y : {y : ι // y ≠ x}, ENNReal.ofReal ((len y.val : ℝ) / m) *
(let l := fun z : {z : ι // z ≠ y.val} => len z.val
let t : {z : ι // z ≠ y.val} := ⟨x, Ne.symm y.property⟩
∫⁻ h : {z : ι // z ≠ y.val} → unitInterval,
(queryCost l (fun z => canonical m (h z)) (arch m l h) (some t)
(canonical m (h t)) : ℝ≥0∞) ∂(Measure.pi fun _ => volume)) := by sorry
end CatalanHashing.Dynamic
Source
Conway, Komlós and Kuszmaul, Catalan Hashing: Efficient Linear Probing for Variable-Length Items, arXiv:2611.05235v1, §7.2, proof of Theorem 1.3, p. 26. https://arxiv.org/html/2611.05235v1#S7.SS2