Parameterized Complexity
Stefan Szeider Vienna University of Technology, Austria S A T
- S
M T S u m m e r S c h
- l
2 1 3 E s p
- ,
F i n l a n d
1 / 97
Parameterized Complexity Stefan Szeider Vienna University of - - PowerPoint PPT Presentation
Parameterized Complexity Stefan Szeider Vienna University of Technology, Austria 2 0 1 3 m e r S c h o o l S M T S u m S A T - n d s p o o , F i n l a E 1 / 97 Outline Foundations Backdoors Kernelization
1 / 97
3 / 97
4 / 97
5 / 97
◮ Instance: a CNF formula F. ◮ Parameter: number of variables of F. ◮ Question: is F satisfiable?
◮ Instance: a CNF formula F. ◮ Parameter: the size of a largest clause of F. ◮ Question: is F satisfiable?
◮ Instance: a CNF formula F and an integer k. ◮ Parameter: k. ◮ Question: is there a satisfying assignment for F
that sets exactly k variables to 1?
6 / 97
7 / 97
◮ Instance: a graph G and an integer k. ◮ Parameter: k. ◮ Question: does G admit a VC of size at most k?
8 / 97
1 2 3 5 4
9 / 97
1 2 3 5 4
9 / 97
1 2 3 5 4 Put (1) into the VC. 2 3 5 4
9 / 97
1 2 3 5 4 Put (1) into the VC. 2 3 5 4 Put (2) into the VC. 1 3 5 4
9 / 97
2.1 Label the left child of x with (H − u, S ∪ {u}). 2.2 Label the high child of x with (H − v, S ∪ {v}).
10 / 97
11 / 97
◮ Instance: a graph G and an integer k. ◮ Parameter: maximum degree of vertices in G. ◮ Question: does G admit a VC of size at most k?
12 / 97
13 / 97
14 / 97
15 / 97
16 / 97
a computable function g and a constant c.
17 / 97
◮ Instance: a graph G = (V, E), a nonnegative
integer k.
◮ Parameter: k. ◮ Question: does G contain a clique on k vertices?
18 / 97
Let G be a graph with n vertices. Consider its complement graph G. 1 2 3 5 4 → 1 2 3 5 4 G has an independent set of size k if and only if the complement graph ¯ G contains a clique on k vertices. ( ¯ G has the same vertices as G, and two vertices in ¯ G are adjacent if and only if they are not adjacent in G). Hence there is a parameterized reduction from IS to CLIQUE, and a parameterized reduction from CLIQUE to IS.
19 / 97
20 / 97
21 / 97
22 / 97
23 / 97
◮ Instance: a weft t depth h circuit C and an
integer k.
◮ Parameter: k. ◮ Question: has C a satisfying input of weight
exactly k?
24 / 97
25 / 97
26 / 97
27 / 97
28 / 97
29 / 97
30 / 97
31 / 97
◮ t quantifier block alternations, starting with ∃, ◮ all blocks after the leading one consist of at most
u quantifiers.
32 / 97
k
33 / 97
Downey & Fellows “Parameterized Complexity” Springer 1999. Niedermeier “Invitation to fixed-parameter algorithms” CUP 2006. Flum & Grohe “Parameterized Complexity Theory” Springer 2006. Cesati “The Turing way to parameterized complexity” JCSS 67, 2003. The Computer Journal, Special Issues 51/1, 51/3, 2008. Downey & Thilikos “Confronting Intractability via Parameters” Computer Science Review. 5(4), 2011, pp. 279–317
34 / 97
36 / 97
37 / 97
38 / 97
39 / 97
40 / 97
41 / 97
42 / 97
43 / 97
◮ Instance: a CNF formula F, an integer k. ◮ Parameter: k. ◮ Question: does F have a strong C-backdoor set of
size at most k?
44 / 97
45 / 97
46 / 97
47 / 97
48 / 97
49 / 97
50 / 97
51 / 97
x
52 / 97
53 / 97
Gottlob & Szeider “Fixed-parameter algorithms for artificial intelligence, constraint satisfaction, and database problems” The Computer Journal 51(3), 2006. Samer & Szeider, “Fixed-Parameter Tractability”, Chapter 13 of the Handbook of Satisfiability, IOS Press, 2009. Gaspers & Szeider: Backdoors to Satisfaction. Survey Paper, Fellows Festschrift, Springer 2012.
54 / 97
56 / 97
57 / 97
k
polynomial-time size < f(k)
59 / 97
60 / 97
61 / 97
62 / 97
63 / 97
p (“the Polynomial Hierarchy collapses
p).
64 / 97
◮ Instance: a CNF formula F and a strong
C-backdoor of F of size k.
◮ Parameter: k. ◮ Question: Is F satisfiable?
65 / 97
66 / 97
67 / 97
68 / 97
Bodlaender et al. “On problems without polynomial kernels” J. of Computer and System Sciences, 75, 423-434, 2009. Dom, Lokshtanov, Saurabh “Incompressibility through Colors and IDs” ICALP (1) 2009: 378-389 Szeider “Limits of Preprocessing” AAAI 2011, 93-98.
69 / 97
71 / 97
72 / 97
72 / 97
72 / 97
72 / 97
72 / 97
such that v ∈ χ(t).
such that v, w ∈ χ(t) (“covering”).
unique path from t1 to t3, then χ(t1) ∩ χ(t3) ⊆ χ(t2) (“connectedness”).
73 / 97
74 / 97
75 / 97
76 / 97
◮ Dynamic programming: compute local information
in a bottom-up fashion along a tree decomposition
◮ Monadic Second Order Logic: express graph
problem in some logic formalism and use a meta-algorithm
77 / 97
78 / 97
◮ “there are three sets of vertices which form a
partition of V such that no edge has both ends in the same set”
◮ ∃A ⊆ V ∃B ⊆ V ∃C ⊆ V
A ∪ B ∪ C = V ∧ A ∩ B = A ∩ C = B ∩ C = ∅ ∧∀e ∈ E ∀u ∈ V ∀v ∈ V ∧inc(u, e) ∧ inc(v, e) ∧ u = v → ¬(u ∈ A ∧ v ∈ A) ∧ ¬(u ∈ B ∧ v ∈ B) ∧ ¬(u ∈ C ∧ v ∈ C)
79 / 97
80 / 97
CNF Formula F = {C, D, E, F, G} where C = {u, v, y}, D = {u, z}, E = {v, w}, F = {w, x}, G = {x, y, z}.
81 / 97
◮ Proof: take tree decomposition (T, χ) of primal
graph.
◮ For each clause C there is a node t of T with
var(C) ⊆ χ(t).
◮ Add to t a new neighbor t′ with
χ(t′) = χ(t) ∪ {C}.
◮ One big clause alone gives large primal treewidth. ◮ {{x, y1}, {x, y2}, . . . , {x, yn}} gives large dual
treewidth.
82 / 97
CNF Formula F = {C, D, E, F, G} where C = {u, v, y}, D = {u, z}, E = {v, w}, F = {w, x}, G = {x, y, z}.
u u v v w w x x y y z z C D E F G
83 / 97
84 / 97
Kloks “Treewidth: Computations and Approximations”, Springer 1994. Bodlaender & Koster, “Combinatorial Optimization on Graphs of Bounded Treewidth” The Computer Journal 51(3), 255-269, 2008 Hlinen´ y, Oum, Seese, Gottlob, “Width Parameters Beyond Tree-width and their Applications” The Computer Journal 51(3), 326-362, 2008 Samer & Szeider, “Constraint Satisfaction with Bounded Treewidth Revisited” J. of Computer and System Sciences, 76(2), 103-114, 2010.
85 / 97
◮ Maximum Satisfiability (Max Sat)
Given a CNF formula F, find an assignment that satisfies as many clauses of F as possible.
◮ Traveling Salesperson Problem (TSP).
87 / 97
88 / 97
(A) Heuristic moves to non-improving solutions, random restarts, etc. (B) Increase value of k (most algorithms use k = 1
89 / 97
◮ Instance: A CNF formula F and a truth
assignment τ : var(F) → {0, 1}.
◮ Question: Is there a k-flip neighbor τ ′ of τ that
satisfies more clauses of F than τ?
◮ Instance: A CNF formula F and a truth
assignment τ : var(F) → {0, 1}.
◮ Question: Is there a k-flip neighbor τ ′ of τ that
satisfies all clauses of F?
90 / 97
91 / 97
92 / 97
93 / 97
94 / 97
95 / 97
Krokhin & Marx: On the Hardness of Losing
Fellows et al. “Local Search: Is Brute-Force Avoidable?” IJCAI 2009: 486-491. Szeider “The Parameterized Complexity of k-Flip Local Search for SAT and MAX SAT” Discrete Optimization 8, 139-145, 2011.
96 / 97
97 / 97