How to Use
Select graph:
- tw: Treewidth
- Decomp: Tree structure
- FPT: Fixed-parameter tractable
Courcelle's Theorem
Any graph property expressible in MSO₂ logic can be decided in linear time for graphs of bounded treewidth. This includes: 3-coloring, Hamiltonian cycle, dominating set, and hundreds more NP-hard problems! The 'metatheorem' of parameterized complexity.
Tree Decomposition
A tree decomposition: tree T with bags B_t ⊆ V(G). (1) Every vertex in some bag. (2) Every edge has both endpoints in some bag. (3) Bags containing v form a connected subtree. Width = max bag size - 1.
Step-by-Step Instructions
- 1Select graph.
- 2Compute tw(G).
- 3Find decomposition.
- 4Apply Courcelle.
- 5Compare graphs.