In-place parent-table accumulation pass (parentPassProg) #
This module certifies parentPassProg, which iterates over all 2 ^ |LP| parent masks curS,
computes restrictMask LB LP curS via restrictMaskProg, and adds best[rKey] in-place into
tblP[curS], with no dependency on MWISInstance, IndepScan, WeightScan, or ChildPass.
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.parentPassPrefix: prefix-updated list representation ofparentPass.Cslib.Algorithms.WordRAM.TreeDecomposition.ParentPassArgs: register arguments forparentPassProg.Cslib.Algorithms.WordRAM.TreeDecomposition.parentPassProg: Word-RAM in-place parent-table accumulation loop.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.getD_parentPass_raw,Cslib.Algorithms.WordRAM.TreeDecomposition.mem_parentPassPrefix_le: agreement withparentPassandcapO + capBentry bound.Cslib.Algorithms.WordRAM.TreeDecomposition.parentPassProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.parentPassProg_realizes: in-place framing outside[tblPPtr, tblPPtr + tblPLen), correctness, cost bound, and exact-basis realization certificate.
Prefix-updated list representation of parentPass #
parentPassPrefix preserves the length of oldL.
Pointwise lookup on parentPassPrefix at index s < oldL.length with s < k.
Pointwise formula for (parentPass LB LP old best c).getD s 0 without requiring LP.Nodup.
Every entry of parentPassPrefix is bounded by capO + capB.
Word-RAM parent pass (parentPassProg) #
Register arguments for parentPassProg.
- bagBPtr : ℕ
Base memory address of child bag
LB. - bagBLen : ℕ
Length of child bag
LB. - bagPPtr : ℕ
Base memory address of parent bag
LP. - bagPLen : ℕ
Length of parent bag
LP. - tblPPtr : ℕ
Base memory address of parent DP table
tblP. - tblPLen : ℕ
Length
2 ^ |LP|of parent DP tabletblP. - bestPtr : ℕ
Base memory address of the scratch
bestarray of length2 ^ |LP|.
Instances For
Accumulate best[restrictMask LB LP s] into tblP[s] in-place across 0 .. tblPLen - 1.
Correctness, outside-table framing, and memory-cost bound for parentPassProg.
Exact-basis Word-RAM realization certificate for parentPassProg.