Documentation

CslibFrontier.Algorithms.WordRAM.TreeDecomposition.IndependentSet.Instance

Serialized MWIS instance model and FPT word/step bounds #

This module defines the flat word-serializable maximum-weight independent set instance bundle MWISInstance, the bag serialization encodeBag, vertex weight/adjacency accessors, space and step envelopes (wordBound, stepBound, mwisFPTBound), compilation MWISInstance.ofRooted from a RootedTreeDecomposition, and width-k bounds maxBagLen_ofRooted_le and stepBound_ofRooted_le.

Main definitions #

Main results #

Length-prefixed word serialization [B.length] ++ B of an ordered bag B.

Word-encoded instance of maximum-weight independent set over a rooted tree decomposition on numNodes + 1 nodes (0 is the root) and numVerts graph vertices 0, …, numVerts - 1.

Weight lookup weights.getD u 0 of vertex u.

Adjacency indicator adjMatrix[u * numVerts + v] ≠ 0.

Flat word-list encoding [numVerts, numNodes] ++ weights ++ adjMatrix ++ parents ++ bags.flatMap encodeBag.

Maximum bag length across inst.bags (≤ k + 1 when R.width ≤ k).

Word-value upper bound covering literal constants, peak memory frontier across initial table allocation and all numNodes scratch best allocations, 2 ^ maxBagLen, and maximum DP table value (numNodes + 1) * maxBagLen * maxWeight.

Upper bound on the oracle memory cost (memoryCost) of the Word-RAM MWIS program on inst.

Compile a graph G : SimpleGraph V (e : V ≃ Fin m), rooted tree decomposition R : G.RootedTreeDecomposition n, vertex weights w : V → ℕ, and bag lists L : Fin (n + 1) → List V into a flat MWISInstance.

Closed-form FPT step bound 6 + (n + 1) * (2 ^ (k + 1) * (5 * (k + 1) ^ 2 + 6 * (k + 1) + 32)) for rooted tree decompositions on n + 1 nodes of width at most k.

theorem Cslib.Algorithms.WordRAM.TreeDecomposition.MWISInstance.maxBagLen_ofRooted_le {V : Type u_1} {G : SimpleGraph V} [DecidableEq V] [DecidableRel G.Adj] {m n : ℕ} (e : V ≃ Fin m) (R : G.RootedTreeDecomposition n) (w : V → ℕ) {L : Fin (n + 1) → List V} (hL : Lean.TreeDecomposition.IsBagOrder R L) {k : ℕ} (hk : R.width ≤ k) :
(ofRooted e R w L).maxBagLen ≤ k + 1

Under IsBagOrder R L and R.width ≤ k, every bag has length at most k + 1.

Under IsBagOrder R L and R.width ≤ k, stepBound is bounded by mwisFPTBound n k.