The complexity of enumeration and counting for acyclic conjunctive queries

Size: px
Start display at page:

Download "The complexity of enumeration and counting for acyclic conjunctive queries"

Transcription

1 The complexity of enumeration and counting for acyclic conjunctive queries Cambridge, march 2012

2 Counting and enumeration Counting Output the number of solutions Example : sat, Perfect Matching, Permanent, problems on graph, knots polynomials Enumeration Generate all solutions one by one Output can be large Natural algorithmic task This talk: look at these two tasks for fragments of conjunctive (i.e. {, }) queries (mainly ACQ)

3 Outline Enumeration A tour on complexity measure for enumeration Results for query problems Complexity characterization for ACQ Weighted Counting Polynomial representation of query Counting through polynomial evaluation Characterization of the tractability frontier for ACQ Common point : role of free variables in formulas.

4 Enumeration: measure of complexity Intractability NP-completeness of the existence of one solution (hard to start) hard after generation of a part of the solution set (hard to continue) Tractability Polynomial total time (succeed but don t know how) Incremental Polynomial Time (harder as the number of generated solutions increases) Polynomial delay (regular process)

5 Example Generate all models of a propositional formula (hum... intractable) Generate all independant sets of maximum size of a graph (intractable) Generate all maximal (for inclusion) independant sets polynomial delay for lexicographic ordering intractable for reverse lexicographic ordering Generate all models of a 2-CNF propositional formula (polynomial delay)

6 Complexity of enumeration of satisfiability problems Let ϕ be a formula with variables x 1,..., x n. If ϕ x 1 SAT : enumerate all solutions of ϕ x 1 If ϕ x 1 SAT : enumerate all solutions of ϕ x 1 Theorem (Creignou, Hebrard 97) In the Boolean case, there is no other efficient algorithm than the one described above. Consequently, easy (i.e. polynomial delay) cases are Horn, Anti-Horn, 2-CNF and affine. Schnoor & Schnoor 07 The situation is more complex for CSP on arbitrary finite domain See also Bulatov, Dalmau, Grohe & Marx 10

7 Enumeration algorithm: some precision { Precomputation step Algorithms in two steps: + Enumeration step(s) Computation models (in this talk) : RAM with uniform cost (but with bounded values in registers) Let A be an enumeration algorithm for Enum(R) and x I. time i (x) denotes the time when the algorithm finishes to write the ith solution if it exists. delayi (x) = time i+1 (x) time i (x). Delay may be : sub-exponential, polynomial, linear, constant (?) Warning: space is an important factor!

8 Small classes of enumeration problems An enumeration algorithm A is constant delay if there is a constant c such that for any x I and i, delay i (x) c. Enum(R) is computable with constant delay (Enum(R) Constant-Delay) if there is a constant delay algorithm A which computes Enum(R). Enum(R) Constant-Delay lin if it is reducible in linear time (in the input size) to a problem in Constant-Delay precomputation reduction

9 Query problems Query L = set of formulas S = set of (finite) structures Enumeration problem Enum(L, S) input: φ L and A S output: enumerate φ(a) = {ā D k (A, ā) = φ( x)} Counting problem Count(L, S) input: φ L and A S output: φ(a) = {ā D k (A, ā) = φ( x)}

10 Complexity Measures Framework for complexity analysis of multi-parameterized problems Parameters A, ϕ (inputs) ϕ(a) But also: number of free variables, of quantified variables, alternation, arity... A, ϕ and ϕ(a) : Combined Complexity. A and ϕ(a) : Data Complexity ϕ and ϕ(a) : Expression Complexity Parameterized complexity: express the complexity in terms of A, ϕ and ϕ(a) but consider ϕ as a parameter.

11 Some tractable cases for enumeration Data complexity deg τ d : the class of τ-structures of maximal degree d. Enum(fo, deg τ d ) constant-delay lin. Delay : triply exponential in the size of formula (Kazana, Segoufin 10) (D. Grandjean 07, Lindell 08) tw τ k : the class of τ-structures of treewidth at most k. Enum(mso, tw τ k ) linear-delay lin. (Bagan 06, Courcelle 07, Frick,..)

12 Conjunctive Queries Conjunctive Queries (CQ) L: {, }-fragment of first-order logic i.e. formulas ϕ( x) ȳψ( x, ȳ) where ψ is a conjunction of atoms. Combined complexity of model checking: NP-complete. No hope for enumeration. Tractable fragments for decision by restricting the formula (acyclicity, hypergraph decomposition methods).

13 Hypergraph associated to formulas The hypergraph of a formula ϕ is the hypergraph H = (V, E) such that V is the set of variables of ϕ for each atom R( v) of ϕ, we associate a hyperedge var(r( v)) t u x v y z

14 Acyclic Hypergraph Most general notion: α-acyclicity. An hypergraph is α-acyclic if the application of the following rules as long as possible outputs the empty hypergraph: 1. Remove hyperedges contained in other hyperedges; 2. Remove vertices that appear in at most one hyperedge. A conjunctive query is acyclic if its associated hypergraph is acyclic.

15 Acyclic hypergraph/query: examples Acyclic Cyclic Acyclic Large class of hypergraph/queries. Base case for more evolved decomposition methods. Remark: Adding an edge to a cyclic hypergraph may result in an acyclic hypergraph.

16 Acyclic Hypergraph: alternative definition A join tree of a hypergraph H = (V, E) is a pair (T, λ) where T = (V T, T ) is a tree and λ is a function from V T to E such that: For each e E, there is a t V T such that λ(t) = e (each vertex of T is a bag containing one edge) For each v V, the set {t V T : v λ(t)} is a connected subtree of T. Equivalent characterization : H is acyclic iff it has a join tree.

17 Acyclic Hypergraph: alternative definition e a, c, e, g f d g a b c a, b, c a, e, f c, d, e I

18 Complexity of acyclic conjunctive queries ACQ Acyclic Conjunctive Queries. ACQ Acyclic Conjunctive Queries with inequalities Example: ϕ(x, y) z t u(rxyz Ryzt Rztu Syt x u) Known results ACQ solvable in O( ϕ A ϕ(a) ) times (Yannakakis 81) ACQ solvable in O(2 O( ϕ ) A ϕ(a) log 2 ( A )) times (Papadimitriou & Yannakakis-99) or in O(( ϕ!) A ϕ(a) ) (Bagan-D.-Grandjean-07)

19 Yannakakis algorithm Input: (A, ϕ), a tree decomposition T - Take a leaf t V T, let R( x, z) the associated atom. - Take its father associated to S( x, ȳ) ({ȳ} { z} = ) Filter relation S in A by relation R : S := {(ā, b) S and c(ā, c) R} S(x,y) R(x,z)

20 Yannakakis algorithm Input: (A, ϕ), a tree decomposition T - Take a leaf t V T, let R( x, z) the associated atom. - Take its father associated to S( x, ȳ) ({ȳ} { z} = ) Filter relation S in A by relation R : S := {(ā, b) S and c(ā, c) R} S(x,y) Continue bottom up with new data and drop R( x, z) from the list of atoms

21 Enumeration of ACQ Enumeration Can we enumerate the results efficiently? Easy but not that fast! let ϕ (x 1 ) x 2... x k ȳϕ( x, ȳ) For a ENUM(ϕ, A) let ϕa ϕ(a, x 2,..., x k, ȳ) For b ENUM(ϕ a, A) : output (a, b) Linear O( ϕ A ) delay. Similarities with the SAT enumeration in easy cases.

22 Enumeration of ACQ Easy and fast if all variables are free (i.e. participate to the result). Compute a tree decomposition Filter each parent with its children so that only tuples that can be extended to a solution remain ( local consistency) run through the tree and output the solutions Linear O( ϕ A ) precomputation and constant O( ϕ ) delay. Works also with disequalities (but delay exponential in ϕ )

23 What s the point with enumeration Tree decomposition T for ϕ - Blue boxes : quantified variables only - Yellow boxes : free variables only - In real life : green boxes also... Good situation

24 What s the point with enumeration Tree decomposition T for ϕ - Blue boxes : quantified variables only - Yellow boxes : free variables only - In real life : green boxes also... Bad situation

25 Further question Can we do better than linear delay (with linear precomputation)? Can we find other fragments with constant delay? Can we fully characterize the enumeration complexity of acyclic conjunctive queries?

26 Free-connex acyclic formulas Let H = (V, E) be an acyclic hypergraph and S V. H is S-connex acyclic if there is an acyclic hypergraph H = (V, E ) and a tree-structure T of H such that E E e E e E : e e (H inclusive extension of H) there is a connex subset A of vertices of T such that t A λ(t) = S A formula ϕ is free-connex acyclic or CCQ if its hypergraph is free(ϕ)-connex acyclic.

27 Example of S-connex acyclic hypergraph Let H = (V, E) with V = {a, b, c, d, e, f } and E = {{a, b, c}, {c, d, e}, {c, d, f }} and S = {b, c, d} a, b, c b, c c, d, e c, d c, d, f

28 Other characterisation of free-connex acyclic formulas Let H = (V, E) be a hypergraph and S V. An S-path is a path (x, y 1,... y n, z) of size at least 2 such that x S, z S for any i, yi / S there is no hyperedge e E such that x, z e Lemma H is S-connex acyclic iff H is acyclic and doesn t admit any S-path. This property can be checked in polynomial time. Free-connex acyclicity: being grouped up to hypergraph padding

29 Matrix Multiplication Matrix Product Enumeration Given two matrices A and B (with coefficients in some space), - enumerate all C i,j or - enumerate the indices (i, j) of C = A B such that C i,j 0. Boolean case: solutions of Φ(x, z) y E(x, y) E(y, z).

30 Dichotomy result (Bagan-D.-Grandjean 07) Theorem: Let ϕ be a simple ACQ (resp. ACQ ) formula and assume that the boolean matrix product cannot be done in linear time. Then one of the two following cases hold: or ϕ is free-connex acyclic Enum(ϕ) Constant-Delay lin Eval(ϕ) can be evaluated in time O( A + ϕ(a) ) ϕ is not free-connex acyclic Enum(ϕ) / Constant-Delay lin Eval(ϕ) cannot be evaluated in time O( A + ϕ(a) )

31 Proof of hardness ϕ ACQ CCQ i.e., acyclic but not free(ϕ)-connex. Main steps : Find a S-path (recall : S = free(ϕ)) From two boolean matrices, A and B construct a structure A, in linear time, such that: A encodes A and B. Data for A and B are on each side of the S-path indices of non zero coefficients of A B are (pairs of) vertices related in the path. Some problems to solve : the path may be arbitrary, there are other parts in the query,... Skip rest of proof

32 Proof of hardness ϕ ACQ CCQ i.e., acyclic but not free-connex. H φ admits a chordless S-path P = (x, z 1,..., z k, y) with k 1, so that P is a path: there are k + 1 hyperedges e 0, e 1,..., e k 1, e k E that contain e 0 = {x, z 1}, e 1 = {z 1, z 2 },..., e k 1 = {z k 1, z k }, e k = {z k, y} P is an S-path: x, y S and z 1,..., z k 1 / S P is chordless: for each e E, e P 1 or e P = e i for some i, (0 i k) Skip rest of proof

33 Proof of hardness ϕ simple formula ϕ of the form: ϕ(x, y, t) z 1... z k ūψ(x, y, z, t, ū) with ψ conjunction of atoms A e, e E of the following form ( v { t, ū}): 1. R e (x, z 1, v) 2. R e (z k, y, v) 3. R e (z i, z i+1, v) where 1 i < k 4. R e (w, v) where w {x, y, z 1,..., z k } 5. R e ( v)

34 Proof of hardness Transformation r of the structure: to each σ AB -structure A = (D, A, B) associates the following A : A = (D, (R e ) e E ) D = D { } : here is a new special padding symbol For each e E define the relation of arity p, R e according to the form of its (unique) occurrence in ϕ 1. R e = A { } p 2 2. R e = B { } p 2 3. R e = I { } p 2 where I is the identity (equality) relation of D (I = {(a, a) : a D}) 4. R e = D { } p 1 5. R e = { } p

35 Proof of hardness Π(A) = A B Fact 1: The map r : A A is computable in time O( A ) Fact 2: ϕ (A ) = Π(A) { } m Fact 3: The projection (a, b, c) (a, b) is a one-one mapping from ϕ(a ) onto Π(A)

36 Conclusion for enumeration Preceeding result shows some dichotomy in the complexity of enumeration (not in the same sense as usual dichotomy results in complexity). Dichotomy distinguishes tractable and very tractable cases Dichotomy based on positions of free variables in the formula

37 #ACQ Here, situation differs more drastically if quantified variables are allowed. Theorem (Pichler, Skritek 11) If only quantifier free formulas are authorized as inputs, then #ACQ is computable in polynomial time. #ACQ is #P-complete even for formulas with only one existentially quantified variable. Hardness result (interpretation) Given bipartite graph G, one construct a structure A G and an acyclic conjunctive formula ϕ G ( x) = yφ( x, y) such that : The number of perfect matching in G = ϕ G (A G )

38 #ACQ End of the story for #ACQ? What about weighted counting for ACQ? Hardness or tractability for counting the disjunction (or conjunction) of, say, two ACQ? One quantifier is enough to design hard instance but is that all we can say? Can we isolate island of tractability for #ACQ with quantified variables? or better chart the tractability frontier for quantified #ACQ?

39 Weighted counting F: ring with operations + and S: finite structure of domain D F-weight function for S: mapping w : D F If ā D k, the weight of ā is # F CQ (resp. # F ACQ) w(ā) = k w(a i ). Input: A conjunctive query (resp. acyclic) Φ = (S, φ) and an F-weighted function w Output: ā φ(s) w(ā). When w is the constant function 1, this value is equal to φ(s). i=1

40 Weighted counting What is the complexity of # F ACQ for quantifier free formulas? Either in terms of number of symbolic operation or in number of bits (for spaces where iterated multiplication and addition is polynomial time) Strategy Consider query instances as polynomials Construct efficiently arithmetic circuits that recognize these polynomials Evaluate the polynomial to solve the weighted counting problem

41 Arithmetic circuits Arithmetic circuit over F Labeled directed acyclic graph (DAG) with vertices (gates) with indegree (fanin) 0 or 2. Input gates have fanin 0 and are labeled with constants from F or variables X 1, X 2,..., X n. Computation gates have fanin 2 and are labeled with or +. One gate with fanout 0: the output gate The size of the circuit is the number of gates The depth is the length of the longest path form an input gate to the output gate

42 Arithmetic circuit: example x 1 x 2 P(X 1, X 2 ) = 2X 1 X 2 + (X 1 + X 2 )X 2 = 3X 1 X 2 + X

43 Multiplicatively disjoint circuits x 1 x 2 x 2 A circuit is multiplicatively disjoint if, for each -gate, its two input subcircuits are disjoint

44 Arithmetic circuits Valiant s setting for computation of families of polynomials by families of circuits. Same computational power polynomial size circuits of polynomial degree multiplicatively disjoint circuits logarithmic depth semi-unbounded circuits. Algebraic equivalent of LOGCFL... See: Valiant, Burgisser, Koiran, Malod,...

45 Polynomials representing queries Q-Polynomials Φ = (S, φ) : conjunctive query with domain D. The following polynomial Q(Φ) in the variables {X d d D} is assigned to Φ: Q(Φ) := a φ(s) x var(φ) X a(x) = a φ(s) d D X µ d (a) d, where µ d (a) = {x var(φ) a(x) = d} is the number of variables mapped to d by a. Example Φ = (S, φ) such that φ(s) = {(1, 3, 2, 5), (1, 2, 1, 3), (5, 2, 3, 1), (1, 1, 2, 1), (4, 2, 1, 2)}. Then: Q(Φ) := 2X 1 X 2 X 3 X 5 + X 2 1 X 2 X 3 + X 3 1 X 2 + X 2 2 X 1 X 4.

46 Polynomials representing queries The number of variables in Q(Φ) is D, the size of the domain of S Q(Φ) is homogeneous of degree free(φ) No bijective correspondence between solutions of the query and monomials Existential quantification in formulas does not correspond to projection on some polynomial variable.

47 # F ACQ for quantifier free acyclic formulas Here and after: joint work with Stefan Mengel. Φ = S + φ Theorem Given an acyclic quantifier free conjunctive query Φ = (S, φ), we can in time polynomial in Φ compute a multiplicatively disjoint arithmetic circuit C that computes Q(Φ). Corollary The problem # F ACQ is computable in polynomial time Skip proof

48 Computation of Q(Φ) for Φ acyclic: proof By induction, adapting Yannakakis algorithms for ACQ Φ = (S, φ): the input (T, λ): the join tree associated with φ For t V T, φ t : conjunction of constraints corresponding to the subtree T t rooted at t Set e t = var(φ t ) = t T t var(λ(t )) Skip rest of proof

49 Computation of Q(Φ) for Φ acyclic: proof Compute the more general polynomial: f t,ā,c = ᾱ φ t(s) ᾱ ā X α(x). Where c λ(t), ā is an assignment of some variable of φ and ᾱ ā means ᾱ agrees with ā on common variables. Strategy and Problems Compute inductively from some f ti,ā i,c i where t i is a child of t. If two children share a variable there is a risk of overcounting so... x c Partition the variables in λ(t) and assign parts to children Skip rest of proof

50 Computation of Q(Φ) for Φ acyclic: proof The case of a leaf t V T is immediate. Let t V T and t 1,..., t k its children in V T c 0, c 1,..., c k : partition of c into disjoint sets such that c i e i c, for i = 1,..., k and c 0 c\ k i=1 e t i f t,ā,c = = ᾱ φ t(s) x c ᾱ ā ᾱ φ t(s) ᾱ ā X α(x) Xᾱ(x) x c 1 x c k Xᾱ(x) x c 0 Xᾱ(x)

51 Computation of Q(Φ) for Φ acyclic: proof Last remark Let A t = ((λ t (S) φ t1 (S)) φ t2 (S))... φ tk (S). Each solution ᾱ φ t (S) can be uniquely expressed as the natural join of a β A t with some ᾱ i φ ti (S), i = 1,..., k, compatible with β (converse also true) f t,ā,c = ᾱ φ t(s) ᾱ ā = β A t β ā = β A t β ā Xᾱ(x) x c 1 ᾱ 1 φ t1 (S) ᾱ 1 β x c k Xᾱ(x) ᾱ k φ tk (S) ᾱ k β f t1,β,c 1 f tk,β,c k x c 0 Xᾱ(x) Xᾱ1 (x) x c 1 x c 0 X β(x) Xᾱk (x) X β(x) x c k x c 0

52 Union and intersection of acyclic queries Theorem Computing the size of the union and the intersection of query results to two quantifier free #ACQ-instances are both #P-complete. This result remains true for #ACQ on boolean domain and arity at most 3. Proof by chain of reductions #circuitsat #( - -grid)-circuitsat: circuit sat with and gate on a grid. #CQ on a grid

53 Pause to ponder Bad news The conjunction (or disjunction) of two ACQ makes counting hard Idem for ACQ for one existentially quantified variable. But... formula in Pichler and Skritek s hardness proof looks like that: 9 Is it a sign of hardness?

54 S-components A hypergraph H = (V, E) and S V. Let E S = {e E : e S}. S-component The S-component of e E S is the hypergraph H[E ] where E is the set of all edges e E S such that there is a path from e S to e S in H[V S]. A subhypergraph H of H is an S-component if there is an edge e E S such that H is the S-component of e.

55 Decomposition into S-components: example S vertices in red

56 Decomposition into S-components: example S vertices in red

57 S-star size Definition (S-k-star, S-star size) Let H = (V, E) be a hypergraph, S V and k N. The subhypergraph H = (V, E ) of H is a S-k-star if: H is an S-component of H. there exist y 1,..., y k V S such that there is no edge e E that contains more than one of the y i. y 1,..., y k are independant and form the S-k-star. The S-star size of H is the maximum k such that there is a S-k-star in H.

58 S-star size : example S-star size is 4

59 quantified-star size Quantified star size The quantified star size of an acyclic conjunctive formula φ( x) is the S-star size of the hypergraph H associated to φ( x), where S is the set of free variables in φ( x).

60 quantified-star size: example Formula φ(x, y) t zr(x, y, t) S(x, z, t) Quantified star size = 1 Path formulas (of arbitrary length), e.g. φ(x, y, z) t 1 t 2 R(x, t 1 ) R(t 1, z) R(z, t 2 ) R(t 2, y) Quantified star size = 2. Star formulas, e.g. φ(x, y, z, t) ur(u, x) R(u, y) R(u, z) R(u, t) Quantified star size = degree of the center of the star (here 4).

61 S-star size: main results I Query evaluation is easy Theorem There is an algorithm that given an acyclic conjunctive query Φ computes an arithmetic circuit C that computes Q(Φ). The runtime of the algorithm is Φ O(k) where k is the quantified star size of Φ. Corollary There is an algorithm for the problem #ACQ that runs in time Φ O(k) where k is the quantified star size of the input query Φ.

62 Some remarks on the proof Star size expresses how pieces of the result are spread Computation of the result is made component by component For each component, if quantified-star size is k and R 1 ( z 1 ),..., R k ( z k ) atoms of φ containing all free variables of φ, one needs to pre-compute all k-tuples ā 1 R 1,..., ā k R k and check if they lead to a solution of φ(s) (by the method for Q(Φ) when Φ acyclic and quantified free)

63 S-star size: main results II Computing S-star is easy Theorem There is a polynomial time algorithm that, given a hypergraph H = (V, E) and S V, computes the S-star size of H. Proof Equivalent to finding a maximal independant set (and a minimal edge cover) in an acyclic hypergraph. Ad hoc algorithm. Conclusion: Classes of #ACQ-instances of bounded quantified star size are efficiently decidable. Go to: star size needed

64 Parametrizations of #ACQ p-star-#acq: counting parameterized by the quantified star size, p-var-#acq: counting parameterized by the number of free variables, p-#acq: counting parameterized by the size of the conjunctive formula. Lemma p-star-#acq, p-var-#acq and p-#acq are all #W[1]-hard.

65 Bounded quantified star size is necessary S-hypergraph: pair (H, S) where H = (V, E) is a hypergraph and S V. Definition #ACQ is tractable for a class G of S-hypergraphs if for all #ACQ instances Φ with the associated hypergraph H of Φ and the set S of free variables of Φ with (H, S) G we can solve #ACQ in polynomial time

66 Bounded quantified star size is necessary Theorem Assume FPT #W[1], and let G be a recursively enumerable class of acyclic S-hypergraphs. Then #ACQ is polynomial time solvable for G if and only if G is of bounded S-star size.

67 Proof sketch First prove that #ACQ is hard on G S the class of k-stars (in the graph sense) Consider an instance Φ = (A, ϕ( x)) with ϕ( x) = y k i=1 R i(y, x i ) Suppose there is a class G of unbounded S-star size which is tractable. Embed efficiently Φ into a suitable instance (with big enough star) Ψ whose associated hypergraph is in G. Deduce that #ACQ is not hard on G S.

68 Conclusion Complete characterization of tractability frontier for #ACQ Easy evaluation for counting on bounded S-star size extend to generalized hypertree width S-k-star size recognition seem to depend on k for some decomposition

Structural Tractability of Counting of Solutions to Conjunctive Queries

Structural Tractability of Counting of Solutions to Conjunctive Queries Structural Tractability of Counting of Solutions to Conjunctive Queries Arnaud Durand 1 1 University Paris Diderot Journées DAG, june 2013 Joint work with Stefan Mengel (JCSS (to appear) + ICDT 2013) 1

More information

Enumeration: logical and algebraic approach

Enumeration: logical and algebraic approach Enumeration: logical and algebraic approach Yann Strozecki Université Paris Sud - Paris 11 Novembre 2011, séminaire ALGO/LIX Introduction to Enumeration Enumeration and logic Enumeration and polynomials

More information

Tractable Counting of the Answers to Conjunctive Queries

Tractable Counting of the Answers to Conjunctive Queries Tractable Counting of the Answers to Conjunctive Queries Reinhard Pichler and Sebastian Skritek Technische Universität Wien, {pichler, skritek}@dbai.tuwien.ac.at Abstract. Conjunctive queries (CQs) are

More information

FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE

FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE INRIA and ENS Cachan e-mail address: kazana@lsv.ens-cachan.fr WOJCIECH KAZANA AND LUC SEGOUFIN INRIA and ENS Cachan e-mail address: see http://pages.saclay.inria.fr/luc.segoufin/

More information

Enumeration Complexity of Conjunctive Queries with Functional Dependencies

Enumeration Complexity of Conjunctive Queries with Functional Dependencies Enumeration Complexity of Conjunctive Queries with Functional Dependencies Nofar Carmeli Technion, Haifa, Israel snofca@cs.technion.ac.il Markus Kröll TU Wien, Vienna, Austria kroell@dbai.tuwien.ac.at

More information

arxiv: v1 [cs.db] 21 Feb 2017

arxiv: v1 [cs.db] 21 Feb 2017 Answering Conjunctive Queries under Updates Christoph Berkholz, Jens Keppeler, Nicole Schweikardt Humboldt-Universität zu Berlin {berkholz,keppelej,schweika}@informatik.hu-berlin.de February 22, 207 arxiv:702.06370v

More information

A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries

A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries Hubie Chen Stefan Mengel August 5, 2014 Conjunctive queries are basic and heavily studied database queries; in relational algebra,

More information

Enumerating Homomorphisms

Enumerating Homomorphisms Enumerating Homomorphisms Andrei A. Bulatov School of Computing Science, Simon Fraser University, Burnaby, Canada Víctor Dalmau 1, Department of Information and Communication Technologies, Universitat

More information

First-Order Queries over One Unary Function

First-Order Queries over One Unary Function First-Order Queries over One Unary Function Arnaud Durand 1 and Frédéric Olive 2 1 Equipe de Logique Mathématique, CNRS UMR 7056 - Université Denis Diderot, 2 place Jussieu, 75251 Paris Cedex 05, France

More information

The complexity of acyclic subhypergraph problems

The complexity of acyclic subhypergraph problems The complexity of acyclic subhypergraph problems David Duris and Yann Strozecki Équipe de Logique Mathématique (FRE 3233) - Université Paris Diderot-Paris 7 {duris,strozecki}@logique.jussieu.fr Abstract.

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

Finite and Algorithmic Model Theory II: Automata-Based Methods

Finite and Algorithmic Model Theory II: Automata-Based Methods Finite and Algorithmic Model Theory II: Automata-Based Methods Anuj Dawar University of Cambridge Computer Laboratory Simons Institute, 30 August 2016 Review We aim to develop tools for studying the expressive

More information

Tractable Lineages on Treelike Instances: Limits and Extensions

Tractable Lineages on Treelike Instances: Limits and Extensions Tractable Lineages on Treelike Instances: Limits and Extensions Antoine Amarilli 1, Pierre Bourhis 2, Pierre enellart 1,3 June 29th, 2016 1 Télécom ParisTech 2 CNR CRItAL 3 National University of ingapore

More information

Factorised Representations of Query Results: Size Bounds and Readability

Factorised Representations of Query Results: Size Bounds and Readability Factorised Representations of Query Results: Size Bounds and Readability Dan Olteanu and Jakub Závodný Department of Computer Science University of Oxford {dan.olteanu,jakub.zavodny}@cs.ox.ac.uk ABSTRACT

More information

Polynomial kernels for constant-factor approximable problems

Polynomial kernels for constant-factor approximable problems 1 Polynomial kernels for constant-factor approximable problems Stefan Kratsch November 11, 2010 2 What do these problems have in common? Cluster Edge Deletion, Cluster Edge Editing, Edge Dominating Set,

More information

Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy

Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy Electronic Colloquium on Computational Complexity, Report No. 143 (2014) Compendium of Parameterized Problems at Higher Levels of the Polynomial Hierarchy Ronald de Haan, Stefan Szeider Institute of Information

More information

The parameterized complexity of counting problems

The parameterized complexity of counting problems The parameterized complexity of counting problems Jörg Flum Martin Grohe January 22, 2004 Abstract We develop a parameterized complexity theory for counting problems. As the basis of this theory, we introduce

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Cleaning Interval Graphs

Cleaning Interval Graphs Cleaning Interval Graphs Dániel Marx and Ildikó Schlotter Department of Computer Science and Information Theory, Budapest University of Technology and Economics, H-1521 Budapest, Hungary. {dmarx,ildi}@cs.bme.hu

More information

Approximating fractional hypertree width

Approximating fractional hypertree width Approximating fractional hypertree width Dániel Marx Abstract Fractional hypertree width is a hypergraph measure similar to tree width and hypertree width. Its algorithmic importance comes from the fact

More information

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010

Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/21/2010 Stanford University CS254: Computational Complexity Handout 8 Luca Trevisan 4/2/200 Counting Problems Today we describe counting problems and the class #P that they define, and we show that every counting

More information

DRAFT. Algebraic computation models. Chapter 14

DRAFT. Algebraic computation models. Chapter 14 Chapter 14 Algebraic computation models Somewhat rough We think of numerical algorithms root-finding, gaussian elimination etc. as operating over R or C, even though the underlying representation of the

More information

Generating Models of a Matched Formula With a Polynomial Delay (Extended Abstract)

Generating Models of a Matched Formula With a Polynomial Delay (Extended Abstract) Generating Models of a Matched Formula With a Polynomial Delay (Extended Abstract) Petr Savický Institute of Computer Science The Czech Academy of Sciences Czech Republic savicky@cs.cas.cz Abstract A matched

More information

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization Department of Computer Science Series of Publications C Report C-2004-2 The Complexity of Maximum Matroid-Greedoid Intersection and Weighted Greedoid Maximization Taneli Mielikäinen Esko Ukkonen University

More information

Parameterized Complexity of Weighted Satisfiability Problems

Parameterized Complexity of Weighted Satisfiability Problems Parameterized Complexity of Weighted Satisfiability Problems Nadia Creignou 1 and Heribert Vollmer 2 1 Laboratoire d Informatique Fondamentale de Marseille, CNRS UMR 7279, Aix-Marseille Université, 163

More information

arxiv: v1 [cs.dm] 22 Jan 2008

arxiv: v1 [cs.dm] 22 Jan 2008 On the expressive power of permanents and perfect matchings of matrices of bounded pathwidth/cliquewidth Uffe Flarup 1, Laurent Lyaudet 2 arxiv:0801.3408v1 [cs.dm] 22 Jan 2008 1 Department of Mathematics

More information

Tractable structures for constraint satisfaction with truth tables

Tractable structures for constraint satisfaction with truth tables Tractable structures for constraint satisfaction with truth tables Dániel Marx September 22, 2009 Abstract The way the graph structure of the constraints influences the complexity of constraint satisfaction

More information

1 Fixed-Parameter Tractability

1 Fixed-Parameter Tractability 1 Fixed-Parameter Tractability In this chapter, we introduce parameterized problems and the notion of fixed-parameter tractability. We start with an informal discussion that highlights the main issues

More information

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation Dichotomy for Non-Repeating Queries with Negation Queries with Negation in in Probabilistic Databases Robert Dan Olteanu Fink and Dan Olteanu Joint work with Robert Fink Uncertainty in Computation Simons

More information

A Lower Bound for the Size of Syntactically Multilinear Arithmetic Circuits

A Lower Bound for the Size of Syntactically Multilinear Arithmetic Circuits A Lower Bound for the Size of Syntactically Multilinear Arithmetic Circuits Ran Raz Amir Shpilka Amir Yehudayoff Abstract We construct an explicit polynomial f(x 1,..., x n ), with coefficients in {0,

More information

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits Chris Calabro January 13, 2016 1 RAM model There are many possible, roughly equivalent RAM models. Below we will define one in the fashion

More information

Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 27 & July 2/4, 2012

Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 27 & July 2/4, 2012 Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 27 & July 2/4, 2012 vs. complexity For some restricted constraint languages we know some polynomial time algorithms

More information

R E P O R T. Generalized Hypertree Decompositions: NP-Hardness and Tractable Variants INSTITUT FÜR INFORMATIONSSYSTEME DBAI-TR

R E P O R T. Generalized Hypertree Decompositions: NP-Hardness and Tractable Variants INSTITUT FÜR INFORMATIONSSYSTEME DBAI-TR TECHNICAL R E P O R T INSTITUT FÜR INFORMATIONSSYSTEME ABTEILUNG DATENBANKEN UND ARTIFICIAL INTELLIGENCE Generalized Hypertree Decompositions: NP-Hardness and Tractable Variants DBAI-TR-2007-55 Georg Gottlob

More information

Introduction to Complexity Theory

Introduction to Complexity Theory Introduction to Complexity Theory Read K & S Chapter 6. Most computational problems you will face your life are solvable (decidable). We have yet to address whether a problem is easy or hard. Complexity

More information

Efficient Reasoning about Data Trees via Integer Linear Programming

Efficient Reasoning about Data Trees via Integer Linear Programming Efficient Reasoning about Data Trees via Integer Linear Programming Claire David Université Paris-Est Claire.David@univ-mlv.fr Leonid Libkin University of Edinburgh libkin@inf.ed.ac.uk Tony Tan University

More information

Dynamic Programming on Trees. Example: Independent Set on T = (V, E) rooted at r V.

Dynamic Programming on Trees. Example: Independent Set on T = (V, E) rooted at r V. Dynamic Programming on Trees Example: Independent Set on T = (V, E) rooted at r V. For v V let T v denote the subtree rooted at v. Let f + (v) be the size of a maximum independent set for T v that contains

More information

Chapter 4: Computation tree logic

Chapter 4: Computation tree logic INFOF412 Formal verification of computer systems Chapter 4: Computation tree logic Mickael Randour Formal Methods and Verification group Computer Science Department, ULB March 2017 1 CTL: a specification

More information

Bounded Treewidth Graphs A Survey German Russian Winter School St. Petersburg, Russia

Bounded Treewidth Graphs A Survey German Russian Winter School St. Petersburg, Russia Bounded Treewidth Graphs A Survey German Russian Winter School St. Petersburg, Russia Andreas Krause krausea@cs.tum.edu Technical University of Munich February 12, 2003 This survey gives an introduction

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems

Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems Classical Complexity and Fixed-Parameter Tractability of Simultaneous Consecutive Ones Submatrix & Editing Problems Rani M. R, Mohith Jagalmohanan, R. Subashini Binary matrices having simultaneous consecutive

More information

On improving matchings in trees, via bounded-length augmentations 1

On improving matchings in trees, via bounded-length augmentations 1 On improving matchings in trees, via bounded-length augmentations 1 Julien Bensmail a, Valentin Garnero a, Nicolas Nisse a a Université Côte d Azur, CNRS, Inria, I3S, France Abstract Due to a classical

More information

Determinant versus permanent

Determinant versus permanent Determinant versus permanent Markus Bläser, Saarland University Draft August 24, 20:13 1 Chapter 1 Valiant s framework Throughout this lecture, F will denote some field, the underlying ground field. Let

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

More Model Theory Notes

More Model Theory Notes More Model Theory Notes Miscellaneous information, loosely organized. 1. Kinds of Models A countable homogeneous model M is one such that, for any partial elementary map f : A M with A M finite, and any

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

Model theory and algebraic geometry in groups, non-standard actions and algorithms

Model theory and algebraic geometry in groups, non-standard actions and algorithms Model theory and algebraic geometry in groups, non-standard actions and algorithms Olga Kharlampovich and Alexei Miasnikov ICM 2014 1 / 32 Outline Tarski s problems Malcev s problems Open problems 2 /

More information

1 PSPACE-Completeness

1 PSPACE-Completeness CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the

More information

Datalog and Constraint Satisfaction with Infinite Templates

Datalog and Constraint Satisfaction with Infinite Templates Datalog and Constraint Satisfaction with Infinite Templates Manuel Bodirsky 1 and Víctor Dalmau 2 1 CNRS/LIX, École Polytechnique, bodirsky@lix.polytechnique.fr 2 Universitat Pompeu Fabra, victor.dalmau@upf.edu

More information

Solving #SAT and MaxSAT by dynamic programming

Solving #SAT and MaxSAT by dynamic programming Solving #SAT and MaxSAT by dynamic programming Sigve Hortemo Sæther, Jan Arne Telle, and Martin Vatshelle {sigve.sether,telle,martin.vatshelle}@ii.uib.no Department of Informatics, University of Bergen,

More information

Cylindrical Algebraic Decomposition in Coq

Cylindrical Algebraic Decomposition in Coq Cylindrical Algebraic Decomposition in Coq MAP 2010 - Logroño 13-16 November 2010 Assia Mahboubi INRIA Microsoft Research Joint Centre (France) INRIA Saclay Île-de-France École Polytechnique, Palaiseau

More information

A New 3-CNF Transformation by Parallel-Serial Graphs 1

A New 3-CNF Transformation by Parallel-Serial Graphs 1 A New 3-CNF Transformation by Parallel-Serial Graphs 1 Uwe Bubeck, Hans Kleine Büning University of Paderborn, Computer Science Institute, 33098 Paderborn, Germany Abstract For propositional formulas we

More information

Fixed-parameter tractable reductions to SAT. Vienna University of Technology

Fixed-parameter tractable reductions to SAT. Vienna University of Technology Fixed-parameter tractable reductions to SAT Ronald de Haan Stefan Szeider Vienna University of Technology Reductions to SAT Problems in NP can be encoded into SAT in poly-time. Problems at the second level

More information

Some hard families of parameterised counting problems

Some hard families of parameterised counting problems Some hard families of parameterised counting problems Mark Jerrum and Kitty Meeks School of Mathematical Sciences, Queen Mary University of London {m.jerrum,k.meeks}@qmul.ac.uk September 2014 Abstract

More information

The Mixed Chinese Postman Problem Parameterized by Pathwidth and Treedepth

The Mixed Chinese Postman Problem Parameterized by Pathwidth and Treedepth The Mixed Chinese Postman Problem Parameterized by Pathwidth and Treedepth Gregory Gutin, Mark Jones, and Magnus Wahlström Royal Holloway, University of London Egham, Surrey TW20 0EX, UK Abstract In the

More information

arxiv: v2 [cs.cc] 5 Oct 2017

arxiv: v2 [cs.cc] 5 Oct 2017 A Model-Theoretic Characterization of Constant-Depth Arithmetic Circuits Anselm Haak and Heribert Vollmer arxiv:1603.09531v2 [cs.cc] 5 Oct 2017 Theoretische Informatik, Leibniz Universität Hannover, Appelstraße,

More information

Abstract model theory for extensions of modal logic

Abstract model theory for extensions of modal logic Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for

More information

Quantified Boolean Formulas: Complexity and Expressiveness

Quantified Boolean Formulas: Complexity and Expressiveness Dagstuhl SAT Interactions 2012 Quantified Boolean Formulas: Complexity and Expressiveness Uwe Bubeck University of Paderborn 20.11.2012 Outline Introduction Free Variables and Equivalence Complexity Expressiveness

More information

Splitting the Computational Universe

Splitting the Computational Universe Splitting the Computational Universe s Theorem Definition Existential Second Order Logic (ESO) is the collection of all statements of the form: ( S )Φ(S, S ) s Theorem Definition Existential Second Order

More information

Algorithmic Meta-Theorems

Algorithmic Meta-Theorems Algorithmic Meta-Theorems Stephan Kreutzer Oxford University Computing Laboratory stephan.kreutzer@comlab.ox.ac.uk Abstract. Algorithmic meta-theorems are general algorithmic results applying to a whole

More information

Bounded-width QBF is PSPACE-complete

Bounded-width QBF is PSPACE-complete Bounded-width QBF is PSPACE-complete Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain atserias@lsi.upc.edu Sergi Oliva Universitat Politècnica de Catalunya Barcelona, Spain oliva@lsi.upc.edu

More information

Homomorphism Preservation Theorem. Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain

Homomorphism Preservation Theorem. Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain Homomorphism Preservation Theorem Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain Structure of the talk 1. Classical preservation theorems 2. Preservation theorems in finite model

More information

2 P vs. NP and Diagonalization

2 P vs. NP and Diagonalization 2 P vs NP and Diagonalization CS 6810 Theory of Computing, Fall 2012 Instructor: David Steurer (sc2392) Date: 08/28/2012 In this lecture, we cover the following topics: 1 3SAT is NP hard; 2 Time hierarchies;

More information

List H-Coloring a Graph by Removing Few Vertices

List H-Coloring a Graph by Removing Few Vertices List H-Coloring a Graph by Removing Few Vertices Rajesh Chitnis 1, László Egri 2, and Dániel Marx 2 1 Department of Computer Science, University of Maryland at College Park, USA, rchitnis@cs.umd.edu 2

More information

CSC 2429 Approaches to the P vs. NP Question and Related Complexity Questions Lecture 2: Switching Lemma, AC 0 Circuit Lower Bounds

CSC 2429 Approaches to the P vs. NP Question and Related Complexity Questions Lecture 2: Switching Lemma, AC 0 Circuit Lower Bounds CSC 2429 Approaches to the P vs. NP Question and Related Complexity Questions Lecture 2: Switching Lemma, AC 0 Circuit Lower Bounds Lecturer: Toniann Pitassi Scribe: Robert Robere Winter 2014 1 Switching

More information

On Variable-Weighted 2-SAT and Dual Problems

On Variable-Weighted 2-SAT and Dual Problems SAT 2007, Lissabon, Portugal, May 28-31, 2007 On Variable-Weighted 2-SAT and Dual Problems Stefan Porschen joint work with Ewald Speckenmeyer Institut für Informatik Universität zu Köln Germany Introduction

More information

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions CS 6743 Lecture 15 1 Fall 2007 1 Circuit Complexity 1.1 Definitions A Boolean circuit C on n inputs x 1,..., x n is a directed acyclic graph (DAG) with n nodes of in-degree 0 (the inputs x 1,..., x n ),

More information

α-acyclic Joins Jef Wijsen May 4, 2017

α-acyclic Joins Jef Wijsen May 4, 2017 α-acyclic Joins Jef Wijsen May 4, 2017 1 Motivation Joins in a Distributed Environment Assume the following relations. 1 M[NN, Field of Study, Year] stores data about students of UMONS. For example, (19950423158,

More information

Pattern Logics and Auxiliary Relations

Pattern Logics and Auxiliary Relations Pattern Logics and Auxiliary Relations Diego Figueira Leonid Libkin University of Edinburgh Abstract A common theme in the study of logics over finite structures is adding auxiliary predicates to enhance

More information

Computing Query Probability with Incidence Algebras Technical Report UW-CSE University of Washington

Computing Query Probability with Incidence Algebras Technical Report UW-CSE University of Washington Computing Query Probability with Incidence Algebras Technical Report UW-CSE-10-03-02 University of Washington Nilesh Dalvi, Karl Schnaitter and Dan Suciu Revised: August 24, 2010 Abstract We describe an

More information

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties

More information

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions

More information

Part V. Intractable Problems

Part V. Intractable Problems Part V Intractable Problems 507 Chapter 16 N P-Completeness Up to now, we have focused on developing efficient algorithms for solving problems. The word efficient is somewhat subjective, and the degree

More information

The Classification Program II: Tractable Classes and Hardness Proof

The Classification Program II: Tractable Classes and Hardness Proof The Classification Program II: Tractable Classes and Hardness Proof Jin-Yi Cai (University of Wisconsin-Madison) January 27, 2016 1 / 104 Kasteleyn s Algorithm and Matchgates Previously... By a Pfaffian

More information

Model Checking Lower Bounds for Simple Graphs. Michael Lampis KTH Royal Institute of Technology

Model Checking Lower Bounds for Simple Graphs. Michael Lampis KTH Royal Institute of Technology Model Checking Lower Bounds for Simple Graphs Michael Lampis KTH Royal Institute of Technology March 11, 2013 Algorithmic Meta-Theorems Positive results Problem X is tractable. Negative results Problem

More information

Definition: Alternating time and space Game Semantics: State of machine determines who

Definition: Alternating time and space Game Semantics: State of machine determines who CMPSCI 601: Recall From Last Time Lecture 3 Definition: Alternating time and space Game Semantics: State of machine determines who controls, White wants it to accept, Black wants it to reject. White wins

More information

Completeness for First-Order Properties on Sparse Structures with Algorithmic Applications

Completeness for First-Order Properties on Sparse Structures with Algorithmic Applications Completeness for First-Order Properties on Sparse Structures with Algorithmic Applications Jiawei Gao Russell Impagliazzo Antonina Kolokolova Ryan Williams Abstract Properties definable in first-order

More information

On Datalog vs. LFP. Anuj Dawar and Stephan Kreutzer

On Datalog vs. LFP. Anuj Dawar and Stephan Kreutzer On Datalog vs. LFP Anuj Dawar and Stephan Kreutzer 1 University of Cambridge Computer Lab, anuj.dawar@cl.cam.ac.uk 2 Oxford University Computing Laboratory, kreutzer@comlab.ox.ac.uk Abstract. We show that

More information

Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back

Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back Online Appendix to The Recovery of a Schema Mapping: Bringing Exchanged Data Back MARCELO ARENAS and JORGE PÉREZ Pontificia Universidad Católica de Chile and CRISTIAN RIVEROS R&M Tech Ingeniería y Servicios

More information

The Complexity of Evaluating Tuple Generating Dependencies

The Complexity of Evaluating Tuple Generating Dependencies The Complexity of Evaluating Tuple Generating Dependencies Reinhard Pichler Vienna University of Technology pichler@dbai.tuwien.ac.at Sebastian Skritek Vienna University of Technology skritek@dbai.tuwien.ac.at

More information

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170 UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, 2003 Notes 22 for CS 170 1 NP-completeness of Circuit-SAT We will prove that the circuit satisfiability

More information

Do Hard SAT-Related Reasoning Tasks Become Easier in the Krom Fragment?

Do Hard SAT-Related Reasoning Tasks Become Easier in the Krom Fragment? Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence Do Hard SAT-Related Reasoning Tasks Become Easier in the Krom Fragment? Nadia Creignou Aix-Marseille Université

More information

A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials

A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials A Polynomial Time Deterministic Algorithm for Identity Testing Read-Once Polynomials Daniel Minahan Ilya Volkovich August 15, 2016 Abstract The polynomial identity testing problem, or PIT, asks how we

More information

The Complexity of the Counting CSP

The Complexity of the Counting CSP The Complexity of the Counting CSP Víctor Dalmau Universitat Pompeu Fabra The Complexity of the Counting CSP p.1/23 (Non Uniform) Counting CSP Def: (Homomorphism formulation) Let B be a (finite) structure.

More information

The complexity of constraint satisfaction: an algebraic approach

The complexity of constraint satisfaction: an algebraic approach The complexity of constraint satisfaction: an algebraic approach Andrei KROKHIN Department of Computer Science University of Durham Durham, DH1 3LE UK Andrei BULATOV School of Computer Science Simon Fraser

More information

On enumerating monomials and other combinatorial structures by polynomial interpolation

On enumerating monomials and other combinatorial structures by polynomial interpolation Theory of Computing Systems manuscript No. (will be inserted by the editor) On enumerating monomials and other combinatorial structures by polynomial interpolation Yann Strozecki the date of receipt and

More information

Monadic Second Order Logic on Graphs with Local Cardinality Constraints

Monadic Second Order Logic on Graphs with Local Cardinality Constraints Monadic Second Order Logic on Graphs with Local Cardinality Constraints STEFAN SZEIDER Vienna University of Technology, Austria We introduce the class of MSO-LCC problems which are problems of the following

More information

k-distinct In- and Out-Branchings in Digraphs

k-distinct In- and Out-Branchings in Digraphs k-distinct In- and Out-Branchings in Digraphs Gregory Gutin 1, Felix Reidl 2, and Magnus Wahlström 1 arxiv:1612.03607v2 [cs.ds] 21 Apr 2017 1 Royal Holloway, University of London, UK 2 North Carolina State

More information

Friendly Logics, Fall 2015, Lecture Notes 5

Friendly Logics, Fall 2015, Lecture Notes 5 Friendly Logics, Fall 2015, Lecture Notes 5 Val Tannen 1 FO definability In these lecture notes we restrict attention to relational vocabularies i.e., vocabularies consisting only of relation symbols (or

More information

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees Karsten Lehmann a, Rafael Peñaloza b a Optimisation Research Group, NICTA Artificial Intelligence Group, Australian National

More information

Counting problems and clones of functions

Counting problems and clones of functions Counting problems and clones of functions Andrei A. Bulatov and Amir Hedayaty Simon Fraser University, abulatov@cs.sfu.ca, hedayaty@gmail.com Abstract. Counting solutions of various combinatorial problems

More information

Compiling Knowledge into Decomposable Negation Normal Form

Compiling Knowledge into Decomposable Negation Normal Form Compiling Knowledge into Decomposable Negation Normal Form Adnan Darwiche Cognitive Systems Laboratory Department of Computer Science University of California Los Angeles, CA 90024 darwiche@cs. ucla. edu

More information

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of

More information

Reduced Ordered Binary Decision Diagrams

Reduced Ordered Binary Decision Diagrams Reduced Ordered Binary Decision Diagrams Lecture #12 of Advanced Model Checking Joost-Pieter Katoen Lehrstuhl 2: Software Modeling & Verification E-mail: katoen@cs.rwth-aachen.de December 13, 2016 c JPK

More information

A note on monotone real circuits

A note on monotone real circuits A note on monotone real circuits Pavel Hrubeš and Pavel Pudlák March 14, 2017 Abstract We show that if a Boolean function f : {0, 1} n {0, 1} can be computed by a monotone real circuit of size s using

More information

Binary Decision Diagrams. Graphs. Boolean Functions

Binary Decision Diagrams. Graphs. Boolean Functions Binary Decision Diagrams Graphs Binary Decision Diagrams (BDDs) are a class of graphs that can be used as data structure for compactly representing boolean functions. BDDs were introduced by R. Bryant

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Notes on Computer Theory Last updated: November, Circuits

Notes on Computer Theory Last updated: November, Circuits Notes on Computer Theory Last updated: November, 2015 Circuits Notes by Jonathan Katz, lightly edited by Dov Gordon. 1 Circuits Boolean circuits offer an alternate model of computation: a non-uniform one

More information

The Complexity of Mining Maximal Frequent Subgraphs

The Complexity of Mining Maximal Frequent Subgraphs The Complexity of Mining Maximal Frequent Subgraphs Benny Kimelfeld IBM Research Almaden kimelfeld@us.ibm.com Phokion G. Kolaitis UC Santa Cruz & IBM Research Almaden kolaitis@cs.ucsc.edu ABSTRACT A frequent

More information