Documentation

CslibFrontier.Algorithms.WordRAM.TreeDecomposition.IndependentSet.RootPass

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 #

Main results #

Register arguments for rootPassProg.

  • numVerts : ℕ

    Number of graph vertices m.

  • adjPtr : ℕ

    Base memory address of the m × m adjacency 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 table tbl₀.

Instances For

    Maximize forgetWeight wt [] L₀ c + tbl₀[c] over independent root masks c < tbl0Len.

    theorem Cslib.Algorithms.WordRAM.TreeDecomposition.rootPassProg_spec {w : ℕ} (args : RootPassArgs) {inst : MWISInstance} {L0 tbl0 : List ℕ} {arr0 : Array ℕ} {s : DataStructure.Memory.State} (hadj : WordRAM.Realization.HoldsIn args.adjPtr inst.adjMatrix s) (hwt : WordRAM.Realization.HoldsIn args.wtPtr inst.weights s) (hnv : args.numVerts = inst.numVerts) (hL0 : WordRAM.Realization.HoldsIn args.bag0Ptr L0 s) (hlen0 : L0.length = args.bag0Len) (hL0_lt : ∀ u ∈ L0, u < inst.numVerts) (htbl0 : WordRAM.Realization.HoldsIn args.tbl0Ptr tbl0 s) (htbl0_len : tbl0.length = args.tbl0Len) (harr0 : ∀ c < args.tbl0Len, tbl0.getD c 0 = arr0.getD c 0) :

    Correctness against rootPassInst and memory-cost bound for rootPassProg.