How to Use
Select graph:
- Bags: Vertex groups
- Tree: Bag connections
- Width: Max bag - 1
Properties
Running intersection property: bags containing vertex v form subtree. This ensures 'locality'. Width 1: graph is a forest. Width 2: series-parallel. Width 3: includes planar graphs. Many problems FPT in treewidth.
Algorithms on Decompositions
Dynamic programming on tree decomposition: 3-coloring in O(3^tw·n), independent set in O(2^tw·n), Hamiltonian cycle in O(2^tw·n). Courcelle's theorem: any MSO property in O(f(tw)·n). Extremely powerful framework.
Step-by-Step Instructions
- 1Select graph.
- 2View decomposition.
- 3Examine bags.
- 4Check properties.
- 5Compute width.