Counting Matrix Partitions of Graphs

Size: px
Start display at page:

Download "Counting Matrix Partitions of Graphs"

Transcription

1 Counting Matrix Partitions of Graphs David Richerby University of Oxford Joint work with Martin Dyer, Andreas Göbel, Leslie Ann Goldberg, Colin McQuillan and Tomoyuki Yamakami David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

2 Graph homomorphisms A homomorphism from G to H is a partition of V (G) such that each part is labeled with a vertex of H; G has no edges between parts u and v if uv / E(H). G has no edges within part u if uu / E(H). G H David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

3 Graph homomorphisms A homomorphism from G to H is a partition of V (G) such that each part is labeled with a vertex of H; G has no edges between parts u and v if uv / E(H). G has no edges within part u if uu / E(H). G H David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

4 Graph homomorphisms A homomorphism from G to H is a partition of V (G) such that each part is labeled with a vertex of H; G has no edges between parts u and v if uv / E(H). G has no edges within part u if uu / E(H). G H David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

5 Complexity of counting homomorphisms Theorem (Dyer Greenhill) If every component of H is a clique with a self-loop on every vertex, or is a complete bipartite graph, counting homomorphisms to H is in FP; otherwise, it is #P-complete. Note: easy cases are near-trivial. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

6 Homomorphisms as CSPs For any target graph H, we can define a constraint language Γ H : domain is V (H); single binary relation R = E(H). A homomorphism G H is a satisfying assignment to the instance of CSP(Γ H ) with: variables V (G); constraints { R, u, v uv E(G)}. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

7 Matrix partitions Let M be a symmetric k k matrix over {0, 1, }. An M-partition of G is a partition V 1,..., V k of V (G) such that: G has no edges between V i and V j if M i,j = 0; G has every possible edge between V i and V j if M i,j = 1; if M i,j =, there is no constraint on the edges between V i and V j. V i is an independent set if M i,i = 0 and a clique if M i,i = 1. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

8 Matrix partitions Let M be a symmetric k k matrix over {0, 1, }. An M-partition of G is a partition V 1,..., V k of V (G) such that: G has no edges between V i and V j if M i,j = 0; G has every possible edge between V i and V j if M i,j = 1; if M i,j =, there is no constraint on the edges between V i and V j. V i is an independent set if M i,i = 0 and a clique if M i,i = 1. Homomorphism problems are M-partition problems where M is a {0, }-matrix. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

9 Examples 3-colouring David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

10 Examples 3-colouring David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

11 Examples 3-colouring David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

12 Examples 3-colouring Split graphs ( ) David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

13 Examples 3-colouring Split graphs ( 1 ) 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

14 Examples 3-colouring Split graphs ( 1 ) 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

15 Examples 3-colouring Split graphs Clique cutsets ( 1 ) 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

16 Examples 3-colouring Split graphs Clique cutsets ( 1 ) 0 1 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

17 Examples 3-colouring Split graphs Clique cutsets ( 1 ) 0 1 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

18 Examples 3-colouring Split graphs Clique cutsets ( 1 ) 0 1 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

19 Examples 3-colouring Split graphs Clique cutsets ( 1 ) David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

20 An encoding as a CSP For a k k symmetric {0, 1, }-matrix M, define Γ M : domain {1,..., k}; binary relation R + = { (i, j) M i,j {1, } } ; binary relation R = { (i, j) M i,j {0, } }. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

21 An encoding as a CSP For a k k symmetric {0, 1, }-matrix M, define Γ M : domain {1,..., k}; binary relation R + = { (i, j) M i,j {1, } } ; binary relation R = { (i, j) M i,j {0, } }. An M-partition of G is a satisfying assignment to the CSP(Γ M ) instance with variables V (G); constraints { R +, u, v uv E(G)} { R, u, v u v and uv / E(G)}. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

22 #CSP dichotomy Theorem (Bulatov, Dyer Richerby) For every constraint language Γ, #CSP(Γ) is either in FP or is #P-complete. Further, deciding which of the two cases holds is in NP. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

23 #CSP dichotomy Theorem (Bulatov, Dyer Richerby) For every constraint language Γ, #CSP(Γ) is either in FP or is #P-complete. Further, deciding which of the two cases holds is in NP. This doesn t resolve the complexity of counting M-partitions because there are instances of CSP(Γ M ) that don t correspond to M-partitions problems. Maybe these instances are the hard ones? David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

24 List M-partitions Most work has been on the list version of the problem. Instance: a graph G and a function λ: V (G) P({1,..., k}). Question: how many M-partitions σ of G, with σ(v) λ(v) for all v V (G)? (We say that such a partition σ respects the list function λ.) David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

25 Complexity of list M-partitions Theorem (Feder, Hell, 2006) For every fixed M, list-m-partitions is either in Time [ n O(log n)] or is NP-complete. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

26 Complexity of list M-partitions Theorem (Feder, Hell, 2006) For every fixed M, list-m-partitions is either in Time [ n O(log n)] or is NP-complete. Theorem (this talk) For every symmetric M {0, 1, } k k, if M has a derectangularizing sequence, then #list-m-partitions is #P-complete; otherwise, it is in FP. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

27 Complexity of list M-partitions Theorem (Feder, Hell, 2006) For every fixed M, list-m-partitions is either in Time [ n O(log n)] or is NP-complete. Theorem (this talk) For every symmetric M {0, 1, } k k, if M has a derectangularizing sequence, then #list-m-partitions is #P-complete; otherwise, it is in FP. For the non-list version, we know what happens for small matrices: Feder, Hell, Klein, Motwani (decision); Hell, Hermann, Nevisi, and Dyer, Goldberg, Richerby (counting). David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

28 Parameterization For any subset-closed L P({1,..., k}), #L-M-partitions is #list-m-partitions but you re only allowed elements of L as lists. Allows recursive definition of algorithms. Take L = P({1,..., k}) to recover #list-m-partitions. From now on, write D = {1,..., k}. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

29 Purity A matrix M is pure if it has no 0s or no 1s. A set L P(D) is M-purifying if all submatrices M X Y (X, Y L) are pure. 0 M = 1 L = { {2}, {1, 3} } 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

30 Purity A matrix M is pure if it has no 0s or no 1s. A set L P(D) is M-purifying if all submatrices M X Y (X, Y L) are pure. 0 M = 1 L = { {2}, {1, 3} } 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

31 Purity A matrix M is pure if it has no 0s or no 1s. A set L P(D) is M-purifying if all submatrices M X Y (X, Y L) are pure. 0 M = 1 L = { {2}, {1, 3} } 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

32 Purity A matrix M is pure if it has no 0s or no 1s. A set L P(D) is M-purifying if all submatrices M X Y (X, Y L) are pure. 0 M = 1 L = { {2}, {1, 3} } 0 David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

33 Derectangularizing sequences For X, Y D, R X,Y = {(i, j) X Y M i,j = }. Definition D 1,..., D l with each D i D is a derectangularizing sequence for M if {D 1,..., D l } is M-purifying; R D1,D 2 R D2,D 3 R Dl 1,D l is not rectangular. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

34 Derectangularizing sequences For X, Y D, R X,Y = {(i, j) X Y M i,j = }. Definition D 1,..., D l with each D i D is a derectangularizing sequence for M if {D 1,..., D l } is M-purifying; R D1,D 2 R D2,D 3 R Dl 1,D l is not rectangular. A rectangular relation satisfies: (x 1, y 1 ) R (x 2, y 1 ) R (x 1, y 2 ) R David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

35 Derectangularizing sequences For X, Y D, R X,Y = {(i, j) X Y M i,j = }. Definition D 1,..., D l with each D i D is a derectangularizing sequence for M if {D 1,..., D l } is M-purifying; R D1,D 2 R D2,D 3 R Dl 1,D l is not rectangular. A rectangular relation satisfies: (x 1, y 1 ) R (x 2, y 1 ) R (x 1, y 2 ) R (x 2, y 2 ) R David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

36 Dichotomy for purifying lists (I) If L is subset-closed and M-purifying, then #L-M-partitions is polytime-equivalent to #CSP(Γ), where Γ = P(D) { R X,Y X, Y L }. Theorem For any symmetric matrix M {0, 1, } k k and any subset-closed, M-purifying set L, #L-M-partitions is #P-complete if L contains a derectangularizing sequence for M and in FP, otherwise. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

37 Dichotomy for purifying lists (II) A useful trick: let M be M with 0s and 1s switched and G be the complement of G. There s a one-to-one correspondence between M partitions of G and M-partitions of G. So all pure matrices are essentially homomorphism problems. Allows translation of #L-M-partitions instances to #CSP(Γ M ) instances. If there s no derectangularizing sequence, solve these using arc-consistency. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

38 Dichotomy for purifying lists (III) Existence of a derectangularizing sequence corresponds directly to #P-completeness of #CSP(Γ M ). By equivalence of #CSP(Γ M ) and #L-M-partitions, the partitions problem is hard, too. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

39 Dichotomy for purifying lists (III) Existence of a derectangularizing sequence corresponds directly to #P-completeness of #CSP(Γ M ). By equivalence of #CSP(Γ M ) and #L-M-partitions, the partitions problem is hard, too. But what if L isn t M-purifying? Especially, what if P(D) isn t M-purifying the most interesting case! David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

40 Purification For each L, M, we give a purification algorithm. Input: a graph G and an assignment of lists λ: V (G) L Output: a sequence λ 1,..., λ t : V (G) L David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

41 Purification For each L, M, we give a purification algorithm. Input: a graph G and an assignment of lists λ: V (G) L Output: a sequence λ 1,..., λ t : V (G) L such that 1 for each i, img (λ i ) is M-purifying; David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

42 Purification For each L, M, we give a purification algorithm. Input: a graph G and an assignment of lists λ: V (G) L Output: a sequence λ 1,..., λ t : V (G) L such that 1 for each i, img (λ i ) is M-purifying; 2 for each i and each v G, λ i (v) λ(v); David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

43 Purification For each L, M, we give a purification algorithm. Input: a graph G and an assignment of lists λ: V (G) L Output: a sequence λ 1,..., λ t : V (G) L such that 1 for each i, img (λ i ) is M-purifying; 2 for each i and each v G, λ i (v) λ(v); 3 every M-partition of G that respects λ respects exactly one of the λ i. David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

44 Purification For each L, M, we give a purification algorithm. Input: a graph G and an assignment of lists λ: V (G) L Output: a sequence λ 1,..., λ t : V (G) L such that 1 for each i, img (λ i ) is M-purifying; 2 for each i and each v G, λ i (v) λ(v); 3 every M-partition of G that respects λ respects exactly one of the λ i. Purification runs in polynomial time if there s no derectangularizing sequence D 1, D 2 img (λ). David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

45 Dichotomy Theorem For any symmetric matrix M {0, 1, } k k and any subset-closed set of allowable lists L P({1,..., k}), the problem #L-M-partitions is #P-complete if L contains a derectangularizing sequence for M and is in FP, otherwise. For #list-m-partitions, take L = P({1,..., k}). David Richerby (Oxford) Counting Matrix Partitions of Graphs 29th March / 18

COUNTING LIST MATRIX PARTITIONS OF GRAPHS

COUNTING LIST MATRIX PARTITIONS OF GRAPHS COUNTING LIST MATRIX PARTITIONS OF GRAPHS ANDREAS GÖBEL, LESLIE ANN GOLDBERG, COLIN MCQUILLAN, DAVID RICHERBY, AND TOMOYUKI YAMAKAMI Abstract. Given a symmetric D D matrix M over {0,1, }, a list M-partition

More information

The Complexity of Approximating Small Degree Boolean #CSP

The Complexity of Approximating Small Degree Boolean #CSP The Complexity of Approximating Small Degree Boolean #CSP Pinyan Lu, ITCS@SUFE Institute for Theoretical Computer Science Shanghai University of Finance and Economics Counting CSP F (Γ) is a family of

More information

arxiv: v3 [cs.cc] 17 Apr 2015

arxiv: v3 [cs.cc] 17 Apr 2015 Counting list matrix partitions of graphs Andreas Göbel Leslie Ann Goldberg Colin McQuillan David Richerby Tomoyuki Yamakami arxiv:1306.5176v3 [cs.cc] 17 Apr 2015 Abstract Given a symmetricd D matrixm

More information

The complexity of approximate counting Part 1

The complexity of approximate counting Part 1 The complexity of approximate counting Part 1 Leslie Ann Goldberg, University of Oxford Counting Complexity and Phase Transitions Boot Camp Simons Institute for the Theory of Computing January 2016 The

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

A Decidable Dichotomy Theorem on Directed Graph Homomorphisms with Non-negative Weights

A Decidable Dichotomy Theorem on Directed Graph Homomorphisms with Non-negative Weights A Decidable Dichotomy Theorem on Directed Graph Homomorphisms with Non-negative Weights Jin-Yi Cai Xi Chen April 7, 2010 Abstract The compleity of graph homomorphism problems has been the subject of intense

More information

The Complexity of Computing the Sign of the Tutte Polynomial

The Complexity of Computing the Sign of the Tutte Polynomial The Complexity of Computing the Sign of the Tutte Polynomial Leslie Ann Goldberg (based on joint work with Mark Jerrum) Oxford Algorithms Workshop, October 2012 The Tutte polynomial of a graph G = (V,

More information

arxiv: v3 [cs.cc] 20 Apr 2016

arxiv: v3 [cs.cc] 20 Apr 2016 A COMPLEXITY TRICHOTOMY FOR APPROXIMATELY COUNTING LIST H-COLOURINGS ANDREAS GALANIS, LESLIE ANN GOLDBERG, AND MARK JERRUM arxiv:1602.03985v3 [cs.cc] 20 Apr 2016 Abstract. We examine the computational

More information

On counting homomorphisms to directed acyclic graphs

On counting homomorphisms to directed acyclic graphs On counting homomorphisms to directed acyclic graphs Martin Dyer Leslie Ann Goldberg Mike Paterson October 13, 2006 Abstract It is known that if P and NP are different then there is an infinite hierarchy

More information

Corrigendum: The complexity of counting graph homomorphisms

Corrigendum: The complexity of counting graph homomorphisms Corrigendum: The complexity of counting graph homomorphisms Martin Dyer School of Computing University of Leeds Leeds, U.K. LS2 9JT dyer@comp.leeds.ac.uk Catherine Greenhill School of Mathematics The University

More information

Dichotomy Theorems in Counting Complexity and Holographic Algorithms. Jin-Yi Cai University of Wisconsin, Madison. Supported by NSF CCF

Dichotomy Theorems in Counting Complexity and Holographic Algorithms. Jin-Yi Cai University of Wisconsin, Madison. Supported by NSF CCF Dichotomy Theorems in Counting Complexity and Holographic Algorithms Jin-Yi Cai University of Wisconsin, Madison September 7th, 204 Supported by NSF CCF-27549. The P vs. NP Question It is generally conjectured

More information

Dichotomy Theorems for Counting Problems. Jin-Yi Cai University of Wisconsin, Madison. Xi Chen Columbia University. Pinyan Lu Microsoft Research Asia

Dichotomy Theorems for Counting Problems. Jin-Yi Cai University of Wisconsin, Madison. Xi Chen Columbia University. Pinyan Lu Microsoft Research Asia Dichotomy Theorems for Counting Problems Jin-Yi Cai University of Wisconsin, Madison Xi Chen Columbia University Pinyan Lu Microsoft Research Asia 1 Counting Problems Valiant defined the class #P, and

More information

On counting homomorphisms to directed acyclic graphs

On counting homomorphisms to directed acyclic graphs Electronic Colloquium on Computational Complexity, Report No. 121 (2005) On counting homomorphisms to directed acyclic graphs Martin Dyer Leslie Ann Goldberg Mike Paterson October 17, 2005 Abstract We

More information

The Tutte polynomial: sign and approximability

The Tutte polynomial: sign and approximability : sign and approximability Mark Jerrum School of Mathematical Sciences Queen Mary, University of London Joint work with Leslie Goldberg, Department of Computer Science, University of Oxford Durham 23rd

More information

The restrictive H-coloring problem

The restrictive H-coloring problem Discrete Applied Mathematics 145 (2005) 297 305 www.elsevier.com/locate/dam The restrictive H-coloring problem Josep Díaz 1, Maria Serna 2, Dimitrios M. Thilikos 2 Departament de Llenguatges i Sistemes

More information

NP-Completeness. A language B is NP-complete iff B NP. This property means B is NP hard

NP-Completeness. A language B is NP-complete iff B NP. This property means B is NP hard NP-Completeness A language B is NP-complete iff B NP A NP A P B This property means B is NP hard 1 3SAT is NP-complete 2 Result Idea: B is known to be NP complete Use it to prove NP-Completeness of C IF

More information

CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS

CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS CLASSIFYING THE COMPLEXITY OF CONSTRAINTS USING FINITE ALGEBRAS ANDREI BULATOV, PETER JEAVONS, AND ANDREI KROKHIN Abstract. Many natural combinatorial problems can be expressed as constraint satisfaction

More information

CSI 4105 MIDTERM SOLUTION

CSI 4105 MIDTERM SOLUTION University of Ottawa CSI 4105 MIDTERM SOLUTION Instructor: Lucia Moura Feb 6, 2010 10:00 am Duration: 1:50 hs Closed book Last name: First name: Student number: There are 4 questions and 100 marks total.

More information

Complexity of conservative Constraint Satisfaction Problems

Complexity of conservative Constraint Satisfaction Problems Complexity of conservative Constraint Satisfaction Problems ANDREI A. BULATOV Simon Fraser University In a constraint satisfaction problem (CSP) the aim is to find an assignment of values to a given set

More information

Lecture 18: More NP-Complete Problems

Lecture 18: More NP-Complete Problems 6.045 Lecture 18: More NP-Complete Problems 1 The Clique Problem a d f c b e g Given a graph G and positive k, does G contain a complete subgraph on k nodes? CLIQUE = { (G,k) G is an undirected graph with

More information

The complexity of Sur-Hom(C 4 )

The complexity of Sur-Hom(C 4 ) The complexity of Sur-Hom(C 4 ) Barnaby Martin and Danïel Paulusma Algorithms and Complexity in Durham, 7th Slovenian International Conference on Graph Theory Bled 11 25th June, 2011 My introduction to

More information

Lecture 17. In this lecture, we will continue our discussion on randomization.

Lecture 17. In this lecture, we will continue our discussion on randomization. ITCS:CCT09 : Computational Complexity Theory May 11, 2009 Lecturer: Jayalal Sarma M.N. Lecture 17 Scribe: Hao Song In this lecture, we will continue our discussion on randomization. 1 BPP and the Polynomial

More information

Extremal Graphs Having No Stable Cutsets

Extremal Graphs Having No Stable Cutsets Extremal Graphs Having No Stable Cutsets Van Bang Le Institut für Informatik Universität Rostock Rostock, Germany le@informatik.uni-rostock.de Florian Pfender Department of Mathematics and Statistics University

More information

The Chromatic Symmetric Function: Hypergraphs and Beyond

The Chromatic Symmetric Function: Hypergraphs and Beyond The : Hypergraphs and Beyond arxiv:6.0969 Department of Mathematics Michigan State University Graduate Student Combinatorics Conference, April 07 Outline Introducing the chromatic symmetric function Definition

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

Preliminaries and Complexity Theory

Preliminaries and Complexity Theory Preliminaries and Complexity Theory Oleksandr Romanko CAS 746 - Advanced Topics in Combinatorial Optimization McMaster University, January 16, 2006 Introduction Book structure: 2 Part I Linear Algebra

More information

Reading group: proof of the PCP theorem

Reading group: proof of the PCP theorem Reading group: proof of the PCP theorem 1 The PCP Theorem The usual formulation of the PCP theorem is equivalent to: Theorem 1. There exists a finite constraint language A such that the following problem

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

Chapter 2 : Time complexity

Chapter 2 : Time complexity Dr. Abhijit Das, Chapter 2 : Time complexity In this chapter we study some basic results on the time complexities of computational problems. concentrate our attention mostly on polynomial time complexities,

More information

On Counting Homomorphisms to Directed Acyclic Graphs

On Counting Homomorphisms to Directed Acyclic Graphs 27 On Counting Homomorphisms to Directed Acyclic Graphs MARTIN DYER University of Leeds, Leeds, United Kingdom LESLIE ANN GOLDBERG University of Liverpool, Liverpool, United Kingdom AND MIKE PATERSON University

More information

SPIN SYSTEMS: HARDNESS OF APPROXIMATE COUNTING VIA PHASE TRANSITIONS

SPIN SYSTEMS: HARDNESS OF APPROXIMATE COUNTING VIA PHASE TRANSITIONS SPIN SYSTEMS: HARDNESS OF APPROXIMATE COUNTING VIA PHASE TRANSITIONS Andreas Galanis Joint work with: Jin-Yi Cai Leslie Ann Goldberg Heng Guo Mark Jerrum Daniel Štefankovič Eric Vigoda The Power of Randomness

More information

Complexity Theory: The P vs NP question

Complexity Theory: The P vs NP question The $1M question Complexity Theory: The P vs NP question Lecture 28 (December 1, 2009) The Clay Mathematics Institute Millenium Prize Problems 1. Birch and Swinnerton-Dyer Conjecture 2. Hodge Conjecture

More information

Lecture 16: Constraint Satisfaction Problems

Lecture 16: Constraint Satisfaction Problems A Theorist s Toolkit (CMU 18-859T, Fall 2013) Lecture 16: Constraint Satisfaction Problems 10/30/2013 Lecturer: Ryan O Donnell Scribe: Neal Barcelo 1 Max-Cut SDP Approximation Recall the Max-Cut problem

More information

ICALP g Mingji Xia

ICALP g Mingji Xia : : ICALP 2010 g Institute of Software Chinese Academy of Sciences 2010.7.6 : 1 2 3 Matrix multiplication : Product of vectors and matrices. AC = e [n] a ec e A = (a e), C = (c e). ABC = e,e [n] a eb ee

More information

The Complexity of the List Partition Problem for Graphs

The Complexity of the List Partition Problem for Graphs Wilfrid Laurier University Scholars Commons @ Laurier Physics and Computer Science Faculty Publications Physics and Computer Science 2007 The Complexity of the List Partition Problem for Graphs Kathie

More information

Hybrid tractability of valued constraint problems

Hybrid tractability of valued constraint problems Hybrid tractability of valued constraint problems Martin C. Cooper a, Stanislav Živný,b,c a IRIT, University of Toulouse III, 31062 Toulouse, France b University College, University of Oxford, OX1 4BH

More information

Chapter 9: Relations Relations

Chapter 9: Relations Relations Chapter 9: Relations 9.1 - Relations Definition 1 (Relation). Let A and B be sets. A binary relation from A to B is a subset R A B, i.e., R is a set of ordered pairs where the first element from each pair

More information

Classification for Counting Problems

Classification for Counting Problems Classification for Counting Problems Jin-Yi Cai (University of Wisconsin-Madison) Thanks to many collaborators: Xi Chen, Zhiguo Fu, Kurt Girstmair, Heng Guo, Mike Kowalczyk, Pinyan Lu, Tyson Williams...

More information

On Injective Colourings of Chordal Graphs

On Injective Colourings of Chordal Graphs On Injective Colourings of Chordal Graphs Pavol Hell 1,, André Raspaud 2, and Juraj Stacho 1 1 School of Computing Science, Simon Fraser University 8888 University Drive, Burnaby, B.C., Canada V5A 1S6

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 the efficient approximability of constraint satisfaction problems

On the efficient approximability of constraint satisfaction problems On the efficient approximability of constraint satisfaction problems July 13, 2007 My world Max-CSP Efficient computation. P Polynomial time BPP Probabilistic Polynomial time (still efficient) NP Non-deterministic

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

arxiv: v1 [cs.ds] 2 Oct 2018

arxiv: v1 [cs.ds] 2 Oct 2018 Contracting to a Longest Path in H-Free Graphs Walter Kern 1 and Daniël Paulusma 2 1 Department of Applied Mathematics, University of Twente, The Netherlands w.kern@twente.nl 2 Department of Computer Science,

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

Fine Grained Counting Complexity I

Fine Grained Counting Complexity I Fine Grained Counting Complexity I Holger Dell Saarland University and Cluster of Excellence (MMCI) & Simons Institute for the Theory of Computing 1 50 Shades of Fine-Grained #W[1] W[1] fixed-parameter

More information

The complexity of approximating conservative counting CSPs

The complexity of approximating conservative counting CSPs The complexity of approximating conservative counting CSPs Xi Chen 1, Martin Dyer 2, Leslie Ann Goldberg 3, Mark Jerrum 4, Pinyan Lu 5, Colin McQuillan 3, and David Richerby 3 1 Dept. of Comp. Sci., Columbia

More information

Advanced topic: Space complexity

Advanced topic: Space complexity Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to

More information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 18 February 16, 2018 February 16, 2018 CS21 Lecture 18 1 Outline the complexity class NP 3-SAT is NP-complete NP-complete problems: independent set, vertex cover,

More information

Approximating MAX-E3LIN is NP-Hard

Approximating MAX-E3LIN is NP-Hard Approximating MAX-E3LIN is NP-Hard Evan Chen May 4, 2016 This lecture focuses on the MAX-E3LIN problem. We prove that approximating it is NP-hard by a reduction from LABEL-COVER. 1 Introducing MAX-E3LIN

More information

Lecture 8: Complete Problems for Other Complexity Classes

Lecture 8: Complete Problems for Other Complexity Classes IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 8: Complete Problems for Other Complexity Classes David Mix Barrington and Alexis Maciel

More information

NP-Complete Reductions 2

NP-Complete Reductions 2 x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 12 22 32 CS 447 11 13 21 23 31 33 Algorithms NP-Complete Reductions 2 Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline NP-Complete

More information

Complexity of Generalised Colourings of Chordal Graphs

Complexity of Generalised Colourings of Chordal Graphs Complexity of Generalised Colourings of Chordal Graphs A depth examination report submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy in the School of Computing

More information

Flexible satisfaction

Flexible satisfaction Flexible satisfaction LCC 2016, Aix-Marseille Université Marcel Jackson A problem and overview A problem in semigroup theory The semigroup B 1 2 ( ) ( ) 1 0 1 0, 0 1 0 0, ( ) 0 1, 0 0 ( ) 0 0, 1 0 ( )

More information

Clique is hard on average for regular resolution

Clique is hard on average for regular resolution Clique is hard on average for regular resolution Ilario Bonacina, UPC Barcelona Tech July 27, 2018 Oxford Complexity Day Talk based on a joint work with: A. Atserias S. de Rezende J. Nordstro m M. Lauria

More information

Lecture 10. Semidefinite Programs and the Max-Cut Problem Max Cut

Lecture 10. Semidefinite Programs and the Max-Cut Problem Max Cut Lecture 10 Semidefinite Programs and the Max-Cut Problem In this class we will finally introduce the content from the second half of the course title, Semidefinite Programs We will first motivate the discussion

More information

Automata Theory CS Complexity Theory I: Polynomial Time

Automata Theory CS Complexity Theory I: Polynomial Time Automata Theory CS411-2015-17 Complexity Theory I: Polynomial Time David Galles Department of Computer Science University of San Francisco 17-0: Tractable vs. Intractable If a problem is recursive, then

More information

Inapproximability After Uniqueness Phase Transition in Two-Spin Systems

Inapproximability After Uniqueness Phase Transition in Two-Spin Systems Inapproximability After Uniqueness Phase Transition in Two-Spin Systems Jin-Yi Cai Xi Chen Heng Guo Pinyan Lu Abstract A two-state spin system is specified by a matrix [ A0,0 A A = 0,1 = A 1,0 A 1,1 [

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

arxiv: v4 [cs.cc] 26 Aug 2015

arxiv: v4 [cs.cc] 26 Aug 2015 Counting Homomorphisms to Square-Free Graphs, Modulo 2 Andreas Göbel Leslie Ann Goldberg David Richerby August 27, 2015 arxiv:1501.07539v4 [cs.cc] 26 Aug 2015 Abstract We study the problem HomsToH of counting,

More information

Approximate Counting CSPs Hunt for Galois Connection

Approximate Counting CSPs Hunt for Galois Connection Approximate Counting CSPs Hunt for Galois Connection Andrei A. Bulatov Simon Fraser University La Trobe University 203 2/36 Constraint Satisfaction Problem Decision: Given a conjunctive formula R decide

More information

Algorithms and Theory of Computation. Lecture 19: Class P and NP, Reduction

Algorithms and Theory of Computation. Lecture 19: Class P and NP, Reduction Algorithms and Theory of Computation Lecture 19: Class P and NP, Reduction Xiaohui Bei MAS 714 October 29, 2018 Nanyang Technological University MAS 714 October 29, 2018 1 / 26 Decision Problems Revisited

More information

1 Reductions and Expressiveness

1 Reductions and Expressiveness 15-451/651: Design & Analysis of Algorithms November 3, 2015 Lecture #17 last changed: October 30, 2015 In the past few lectures we have looked at increasingly more expressive problems solvable using efficient

More information

Constraint Satisfaction

Constraint Satisfaction Constraint Satisfaction and Graph Theory Plan How much is lost by focusing on graphs How graphs help intuition How graph theory gets used Graph Colouring Graph Colouring One of the most common illustrations

More information

{Symmetry, Logic, CSP}

{Symmetry, Logic, CSP} {Symmetry, Logic, CSP} Libor Barto Charles University in Prague {Symmetry, Logic, Computation} Simons Institute, Berkeley, 9 Nov 2016 Message Topic: Constraint Satisfaction Problem (CSP) over a fixed finite

More information

ONE-THREE JOIN: A GRAPH OPERATION AND ITS CONSEQUENCES

ONE-THREE JOIN: A GRAPH OPERATION AND ITS CONSEQUENCES Discussiones Mathematicae Graph Theory 37 (2017) 633 647 doi:10.7151/dmgt.1948 ONE-THREE JOIN: A GRAPH OPERATION AND ITS CONSEQUENCES M.A. Shalu and S. Devi Yamini IIITD & M, Kancheepuram, Chennai-600127,

More information

1 Notation. 2 Sergey Norin OPEN PROBLEMS

1 Notation. 2 Sergey Norin OPEN PROBLEMS OPEN PROBLEMS 1 Notation Throughout, v(g) and e(g) mean the number of vertices and edges of a graph G, and ω(g) and χ(g) denote the maximum cardinality of a clique of G and the chromatic number of G. 2

More information

Acknowledgments 2. Part 0: Overview 17

Acknowledgments 2. Part 0: Overview 17 Contents Acknowledgments 2 Preface for instructors 11 Which theory course are we talking about?.... 12 The features that might make this book appealing. 13 What s in and what s out............... 14 Possible

More information

Formalizing Randomized Matching Algorithms

Formalizing Randomized Matching Algorithms Formalizing Randomized Matching Algorithms Stephen Cook Joint work with Dai Tri Man Lê Department of Computer Science University of Toronto Canada The Banff Workshop on Proof Complexity 2011 1 / 15 Feasible

More information

A reverse Sidorenko inequality Independent sets, colorings, and graph homomorphisms

A reverse Sidorenko inequality Independent sets, colorings, and graph homomorphisms A reverse Sidorenko inequality Independent sets, colorings, and graph homomorphisms Yufei Zhao (MIT) Joint work with Ashwin Sah (MIT) Mehtaab Sawhney (MIT) David Stoner (Harvard) Question Fix d. Which

More information

Physical Mapping. Restriction Mapping. Lecture 12. A physical map of a DNA tells the location of precisely defined sequences along the molecule.

Physical Mapping. Restriction Mapping. Lecture 12. A physical map of a DNA tells the location of precisely defined sequences along the molecule. Computat onal iology Lecture 12 Physical Mapping physical map of a DN tells the location of precisely defined sequences along the molecule. Restriction mapping: mapping of restriction sites of a cutting

More information

CSC 373: Algorithm Design and Analysis Lecture 15

CSC 373: Algorithm Design and Analysis Lecture 15 CSC 373: Algorithm Design and Analysis Lecture 15 Allan Borodin February 13, 2013 Some materials are from Stephen Cook s IIT talk and Keven Wayne s slides. 1 / 21 Announcements and Outline Announcements

More information

From Holant To #CSP And Back: Dichotomy For Holant c Problems

From Holant To #CSP And Back: Dichotomy For Holant c Problems From Holant To #CSP And Back: Dichotomy For Holant c Problems Jin-Yi Cai Sangxia Huang Pinyan Lu Abstract We explore the intricate interdependent relationship among counting problems considered from three

More information

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1 NP CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu 320 NP 1 NP Complete A class of problems where: No polynomial time algorithm has been discovered No proof that one doesn t exist 320

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

NP-Completeness and Boolean Satisfiability

NP-Completeness and Boolean Satisfiability NP-Completeness and Boolean Satisfiability Mridul Aanjaneya Stanford University August 14, 2012 Mridul Aanjaneya Automata Theory 1/ 49 Time-Bounded Turing Machines A Turing Machine that, given an input

More information

1 Computational Problems

1 Computational Problems Stanford University CS254: Computational Complexity Handout 2 Luca Trevisan March 31, 2010 Last revised 4/29/2010 In this lecture we define NP, we state the P versus NP problem, we prove that its formulation

More information

Polynomial-time reductions. We have seen several reductions:

Polynomial-time reductions. We have seen several reductions: Polynomial-time reductions We have seen several reductions: Polynomial-time reductions Informal explanation of reductions: We have two problems, X and Y. Suppose we have a black-box solving problem X in

More information

Week 3: Reductions and Completeness

Week 3: Reductions and Completeness Computational Complexity Theory Summer HSSP 2018 Week 3: Reductions and Completeness Dylan Hendrickson MIT Educational Studies Program 3.1 Reductions Suppose I know how to solve some problem quickly. How

More information

Minimum Cost Homomorphisms to Semicomplete Multipartite Digraphs

Minimum Cost Homomorphisms to Semicomplete Multipartite Digraphs Minimum Cost Homomorphisms to Semicomplete Multipartite Digraphs Gregory Gutin Arash Rafiey Anders Yeo Abstract For digraphs D and H, a mapping f : V (D) V (H) is a homomorphism of D to H if uv A(D) implies

More information

Admin NP-COMPLETE PROBLEMS. Run-time analysis. Tractable vs. intractable problems 5/2/13. What is a tractable problem?

Admin NP-COMPLETE PROBLEMS. Run-time analysis. Tractable vs. intractable problems 5/2/13. What is a tractable problem? Admin Two more assignments No office hours on tomorrow NP-COMPLETE PROBLEMS Run-time analysis Tractable vs. intractable problems We ve spent a lot of time in this class putting algorithms into specific

More information

Parameterised Subgraph Counting Problems

Parameterised Subgraph Counting Problems Parameterised Subgraph Counting Problems Kitty Meeks University of Glasgow University of Strathclyde, 27th May 2015 Joint work with Mark Jerrum (QMUL) What is a counting problem? Decision problems Given

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation CISC 4090 Theory of Computation Complexity Professor Daniel Leeds dleeds@fordham.edu JMH 332 Computability Are we guaranteed to get an answer? Complexity How long do we have to wait for an answer? (Ch7)

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

More information

PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions. My T. Thai

PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions. My T. Thai PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions My T. Thai 1 1 Hardness of Approximation Consider a maximization problem Π such as MAX-E3SAT. To show that it is NP-hard to approximation

More information

The Complexity of Change

The Complexity of Change The Complexity of Change JAN VAN DEN HEUVEL UQ, Brisbane, 26 July 2016 Department of Mathematics London School of Economics and Political Science A classical puzzle: the 15-Puzzle 13 2 3 12 1 2 3 4 9 11

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

Lecture 3. 1 Polynomial-time algorithms for the maximum flow problem

Lecture 3. 1 Polynomial-time algorithms for the maximum flow problem ORIE 633 Network Flows August 30, 2007 Lecturer: David P. Williamson Lecture 3 Scribe: Gema Plaza-Martínez 1 Polynomial-time algorithms for the maximum flow problem 1.1 Introduction Let s turn now to considering

More information

ON THE NP-COMPLETENESS OF SOME GRAPH CLUSTER MEASURES

ON THE NP-COMPLETENESS OF SOME GRAPH CLUSTER MEASURES ON THE NP-COMPLETENESS OF SOME GRAPH CLUSTER MEASURES JIŘÍ ŠÍMA AND SATU ELISA SCHAEFFER Academy of Sciences of the Czech Republic Helsinki University of Technology, Finland elisa.schaeffer@tkk.fi SOFSEM

More information

MAL TSEV CONSTRAINTS MADE SIMPLE

MAL TSEV CONSTRAINTS MADE SIMPLE Electronic Colloquium on Computational Complexity, Report No. 97 (2004) MAL TSEV CONSTRAINTS MADE SIMPLE Departament de Tecnologia, Universitat Pompeu Fabra Estació de França, Passeig de la circumval.lació,

More information

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006.

More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. More Completeness, conp, FNP,etc. CS254 Chris Pollett Oct 30, 2006. Outline A last complete problem for NP conp, conp NP Function problems MAX-CUT A cut in a graph G=(V,E) is a set of nodes S used to partition

More information

Announcements. Solution to Assignment 3 is posted Assignment 4 is available. c D. Poole and A. Mackworth 2017 CPSC 322 Lecture 8 1 / 25

Announcements. Solution to Assignment 3 is posted Assignment 4 is available. c D. Poole and A. Mackworth 2017 CPSC 322 Lecture 8 1 / 25 Announcements Solution to Assignment 3 is posted Assignment 4 is available c D. Poole and A. Mackworth 2017 CPSC 322 Lecture 8 1 / 25 Review: So far... Constraint satisfaction problems defined in terms

More information

Chapter 34: NP-Completeness

Chapter 34: NP-Completeness Graph Algorithms - Spring 2011 Set 17. Lecturer: Huilan Chang Reference: Cormen, Leiserson, Rivest, and Stein, Introduction to Algorithms, 2nd Edition, The MIT Press. Chapter 34: NP-Completeness 2. Polynomial-time

More information

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem. 1 More on NP In this set of lecture notes, we examine the class NP in more detail. We give a characterization of NP which justifies the guess and verify paradigm, and study the complexity of solving search

More information

Theory Bridge Exam Example Questions

Theory Bridge Exam Example Questions Theory Bridge Exam Example Questions Annotated version with some (sometimes rather sketchy) answers and notes. This is a collection of sample theory bridge exam questions. This is just to get some idea

More information

MTAT Complexity Theory October 13th-14th, Lecture 6

MTAT Complexity Theory October 13th-14th, Lecture 6 MTAT.07.004 Complexity Theory October 13th-14th, 2011 Lecturer: Peeter Laud Lecture 6 Scribe(s): Riivo Talviste 1 Logarithmic memory Turing machines working in logarithmic space become interesting when

More information

Theory of Computation Chapter 9

Theory of Computation Chapter 9 0-0 Theory of Computation Chapter 9 Guan-Shieng Huang May 12, 2003 NP-completeness Problems NP: the class of languages decided by nondeterministic Turing machine in polynomial time NP-completeness: Cook

More information

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions Summary of the previous lecture Recall that we mentioned the following topics: P: is the set of decision problems (or languages) that are solvable in polynomial time. NP: is the set of decision problems

More information

The Complexity of Constraint Satisfaction Games and QCSP

The Complexity of Constraint Satisfaction Games and QCSP The Complexity of Constraint Satisfaction Games and QCSP Ferdinand Börner Institut für Informatik University of Potsdam Potsdam, D-14482, Germany fboerner@rz.uni-potsdam.de Hubie Chen Department of Technology

More information

A.Antonopoulos 18/1/2010

A.Antonopoulos 18/1/2010 Class DP Basic orems 18/1/2010 Class DP Basic orems 1 Class DP 2 Basic orems Class DP Basic orems TSP Versions 1 TSP (D) 2 EXACT TSP 3 TSP COST 4 TSP (1) P (2) P (3) P (4) DP Class Class DP Basic orems

More information