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 #
Cslib.Algorithms.WordRAM.TreeDecomposition.encodeBag: length-prefixed bag word list.Cslib.Algorithms.WordRAM.TreeDecomposition.MWISInstance: flat word-serializable instance bundle withMWISInstance.wt,MWISInstance.adj,MWISInstance.encode,MWISInstance.maxBagLen,MWISInstance.maxWeight,MWISInstance.wordBound,MWISInstance.stepBound, andMWISInstance.ofRooted.Cslib.Algorithms.WordRAM.TreeDecomposition.mwisFPTBound: closed-form width-kstep bound6 + (n + 1) * (2 ^ (k + 1) * (5 * (k + 1) ^ 2 + 6 * (k + 1) + 32)).
Main results #
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.
- numVerts : ℕ
Number of graph vertices
m. - numNodes : ℕ
Parameter
nsuch that the decomposition hasn + 1nodes0, …, n. Vertex weights
weights[0 .. m - 1].Flattened row-major
m × madjacency indicators (0non-adjacent, nonzero adjacent).Parent node indices
parents[0 .. n].Ordered vertex lists
bags[0 .. n].Every nonroot node
1 ≤ i ≤ numNodeshas parent strictly precedingi.Every vertex in every bag is
< numVerts.
Weight lookup weights.getD u 0 of vertex u.
Adjacency indicator adjMatrix[u * numVerts + v] ≠ 0.
Maximum bag length across inst.bags (≤ k + 1 when R.width ≤ k).
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.
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.