Root-bag maximization pass (rootPassProg) #
This module certifies rootPassProg, which scans all 2 ^ |L₀| subsets of the root bag L₀,
filters for pairwise independent subsets (indepBagProg), adds the root subset weight
(forgetWeightProg against an empty parent bag) to tbl₀[curC], and returns the maximum value
(rootPassInst).
Main definitions #
Cslib.Algorithms.WordRAM.TreeDecomposition.RootPassArgs: register arguments forrootPassProg.Cslib.Algorithms.WordRAM.TreeDecomposition.rootPassProg: Word-RAM root-table maximization loop.
Main results #
Cslib.Algorithms.WordRAM.TreeDecomposition.rootPassProg_spec,Cslib.Algorithms.WordRAM.TreeDecomposition.rootPassProg_realizes: read-only state preservation, functional equality withrootPassInst, cost bound, and exact-basis realization certificate.
Register arguments for rootPassProg.
- numVerts : ℕ
Number of graph vertices
m. - adjPtr : ℕ
Base memory address of the
m × madjacency matrix. - wtPtr : ℕ
Base memory address of the
m-word weight array. - bag0Ptr : ℕ
Base memory address of root bag
L₀. - bag0Len : ℕ
Length of root bag
L₀. - tbl0Ptr : ℕ
Base memory address of root DP table
tbl₀. - tbl0Len : ℕ
Length
2 ^ |L₀|of root DP tabletbl₀.
Instances For
Maximize forgetWeight wt [] L₀ c + tbl₀[c] over independent root masks c < tbl0Len.
rootPassProg is read-only and leaves memory unchanged.
Correctness against rootPassInst and memory-cost bound for rootPassProg.
Exact-basis Word-RAM realization certificate for rootPassProg.