CSP, Algebras, Varieties Andrei A. Bulatov Simon Fraser University.

Slides:



Advertisements
Similar presentations
Presented by: Ms. Maria Estrellita D. Hechanova, ECE
Advertisements

Probability for a First-Order Language Ken Presting University of North Carolina at Chapel Hill.
Introduction The concept of transform appears often in the literature of image processing and data compression. Indeed a suitable discrete representation.
2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
Copyright © Cengage Learning. All rights reserved.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
Great Theoretical Ideas in Computer Science for Some.
Lecture 6 Hyperreal Numbers (Nonstandard Analysis)
Groups TS.Nguyễn Viết Đông.
Algebraic Structures: Group Theory II
Algebraic Structures DEFINITIONS: PROPERTIES OF BINARY OPERATIONS Let S be a set and let  denote a binary operation on S. (Here  does not necessarily.
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
CS21 Decidability and Tractability
I. Homomorphisms & Isomorphisms II. Computing Linear Maps III. Matrix Operations VI. Change of Basis V. Projection Topics: Line of Best Fit Geometry of.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
Systems of equations over finite semigroups and the #CSP dichotomy Ondřej Klíma Masaryk University, Brno, Czech Republic Benoît Larose Concordia University,
1 Finite Model Theory Lecture 13 FO k, L k 1, ,L  1, , and Pebble Games.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
NP-Complete Problems Problems in Computer Science are classified into
CSP, Algebras, Varieties Andrei A. Bulatov Simon Fraser University.
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
Lattice and Boolean Algebra
Computability and Complexity 17-1 Computability and Complexity Andrei Bulatov Strong NP-Completeness.
An Investigation of the Multimorphisms of Tractable and Intractable Classes of Valued Constraints Mathematics of Constraint Satisfaction: Algebra, Logic.
App III. Group Algebra & Reduction of Regular Representations 1. Group Algebra 2. Left Ideals, Projection Operators 3. Idempotents 4. Complete Reduction.
Partially Ordered Sets (POSets)
Relations Chapter 9.
Composition and Substitution: Learning about Language from Algebra Ken Presting University of North Carolina at Chapel Hill.
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
Linear Algebra Chapter 4 Vector Spaces.
1 On one-generated projective BL-algebras Antonio Di Nola and Revaz Grigolia University of Salerno Tbilisi State University Department of Mathematics Institute.
Solving Systems of Equations over Finite Semigroups: a Case Study for CSPs Pascal Tesson Université Laval (Quebec City)
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
Rendezvous of Logic, Complexity and Algebra by Hubie Chen SIGACT News Logic Column 17.
Computably Enumerable Semigroups, Algebras, and Groups Bakhadyr Khoussainov The University of Auckland New Zealand Research is partially supported by Marsden.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
Valued Constraints Islands of Tractability. Agenda The soft constraint formalism (5 minutes) Valued Constraint Languages (5 minutes) Hard and Easy Languages.
Math 3121 Abstract Algebra I Lecture 5 Finish Sections 6 + Review: Cyclic Groups, Review.
Locally constrained graph homomorphisms Jan Kratochvíl Jan Kratochvíl Charles University, Prague.
CSP: Algorithms and Dichotomy Conjecture Andrei A. Bulatov Simon Fraser University.
1.1 Chapter 3: Proving NP-completeness Results Six Basic NP-Complete Problems Some Techniques for Proving NP-Completeness Some Suggested Exercises.
NP-completeness Section 7.4 Giorgi Japaridze Theory of Computability.
Math 3121 Abstract Algebra I Lecture 14 Sections
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
Chapter 6- LINEAR MAPPINGS LECTURE 8 Prof. Dr. Zafer ASLAN.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
Group A set G is called a group if it satisfies the following axioms. G 1 G is closed under a binary operation. G 2 The operation is associative. G 3 There.
Prepared By Meri Dedania (AITS) Discrete Mathematics by Meri Dedania Assistant Professor MCA department Atmiya Institute of Technology & Science Yogidham.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Relation Induced by a Partition
Computability and Complexity
Reflexivity, Symmetry, and Transitivity
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
CS201: Data Structures and Discrete Mathematics I
Implications of the ETH
Complexity 6-1 The Class P Complexity Andrei Bulatov.
Testing Assignments of Boolean CSP’s
Homomorphisms (11/20) Definition. If G and G’ are groups, a function  from G to G’ is called a homomorphism if it is operation preserving, i.e., for all.
Dichotomies in CSP Karl Lieberherr inspired by the paper:
Presentation transcript:

CSP, Algebras, Varieties Andrei A. Bulatov Simon Fraser University

CSP Reminder An instance of CSP is defined to be a pair of relational structures A and B over the same vocabulary . Does there exist a homomorphism  : A  B ? Given a sentence and a model for decide whether or not the sentence is true Example: Graph Homomorphism, H-Coloring Example: SAT CSP( B ), CSP( B )

Polymorphisms Reminder Definition A relation (predicate) R is invariant with respect to an n -ary operation f (or f is a polymorphism of R ) if, for any tuples the tuple obtained by applying f coordinate-wise is a member of R Pol(  ) denotes the set of all polymorphisms of relations from  Pol( A ) denotes the set of all polymorphisms of relations of A Inv( C ) denotes the set of all relations invariant under operations from C

© From constraint languages to algebras © From algebras to varieties © Dichotomy conjecture, identities and meta-problem © Datalog and variety © Algebras and varieties in other constraint problems Outline

Languages/polymorphisms vs. structures/algebras Constraint languageSet of operations Relational structure Algebra Inv( C ) = Inv( A ) Pol(  ) = Pol( A ) Str ( A ) = ( A ; Inv( A )) Alg ( A ) = ( A ; Pol( A )) CSP ( A ) = CSP ( A )

Algebras - Examples semilattice operation  semilattice (A;  ) x  x = x, x  y = y  x, (x  y)  z = x  (y  z) affine operation f(x,y,z) affine algebra (A; f) f(x,y,z) = x – y + z group operation  group (A; ,, 1) permutationsG-set

Expressive power and term operations Expressive power Term operations Primitive positive definability Substitutions Clones of relations Clones of operations

Good and Bad Theorem (Jeavons) Relational structure is good if all relations in its expressive power are good Relational structure is bad if some relation in its expressive power is bad Algebra is good if it has some good term operation Algebra is bad if all its term operation are bad

Subalgebras A set B  A is a subalgebra of algebra if every operation of A preserves B In other words It can be made an algebra {0,2}, {1,3} are subalgebras {0,1} is not any subset is a subalgebra

Subalgebras - Graphs G = (V,E) What subalgebras of Alg(G) are? G  Alg(G)  Inv (Alg(G))  InvPol (G)

Subalgebras - Reduction Theorem (B,Jeavons,Krokhin) Let B be a subalgebra of A. Then CSP ( B )  CSP ( A ) Every relation R  Inv( B ) belongs to Inv( A ) Take operation f of A and  R R Since is an operation of B

Homomorphisms Algebras and are similar if and have the same arity A homomorphism of A to B is a mapping  : A  B such that

Homomorphisms - Examples Affine algebras Semilattices

Homomorphisms - Congruences Let B is a homomorphic image of under homomorphism . Then the kernel of  : (a,b)  ker (  )   (a) =  (b) is a congruence of A Congruences are equivalence relations from Inv (A)   

Homomorphisms - Graphs G = (V,E) congruences of Alg(G)

Homomorphisms - Reduction Theorem Let B be a homomorphic image of A. Then for every finite   Inv (B) there is a finite   Inv (A) such that CSP (  ) is poly-time reducible to CSP (  ) Instance of CSP (  ) Instance of CSP (  )

Direct Power The n th direct power of an algebra is the algebra where the act component-wise Observation An n -ary relation from Inv( A ) is a subalgebra of

Direct Product - Reduction Theorem CSP ( ) is poly-time reducible to CSP ( A )

Transformations and Complexity Theorem Every subalgebra, every homomorphic image and every power of a tractable algebra are tractable Corollary If an algebra has an NP-complete subalgebra or homomorphic image then it is NP-complete itself

H-Coloring Dichotomy Using G-sets we can prove NP-completeness of the k -Coloring problem (or -Coloring) Take a non-bipartite graph H - Replace it with a subalgebra of all nodes in triangles - Take homomorphic image modulo the transitive closure of the following x y  (x,y) =

H-Coloring Dichotomy (Cntd) - What we get has a subalgebra isomorphic to a power of a triangle 2 = - It has a homomorphic image which is a triangle This is a hom. image of an algebra, not a graph!!!

Varieties Variety is a class of algebras closed under taking subalgebras, homomorphic images and direct products Take an algebra A and built a class by including all possible direct powers (infinite as well), subalgebras, and homomorphic images. We get the variety var( A ) generated by A Theorem If A is tractable then any finite algebra from var( A ) is tractable If var( A ) contains an NP-complete algebra then A is NP-complete

Meta-Problem - Identities Meta-Problem Given a relational structure (algebra), decide if it is tractable HSP Theorem A variety can be characterized by identities Semilattice x  x = x, x  y = y  x, (x  y)  z = x  (y  z) Affine  Mal’tsev f(x,y,y) = f(y,y,x) = x Near-unanimity Constant

Dichotomy Conjecture - Identities Dichotomy Conjecture A finite algebra A is tractable if and only if var( A ) has a Taylor term: Otherwise it is NP-complete

Idempotent algebras An algebra is called surjective if every its term operation is surjective If a relational structure A is a core then Alg ( A ) is surjective Theorem It suffices to study surjective algebras Theorem It suffices to study idempotent algebras: f(x,…,x) = x If A is idempotent then a G-set belongs to var( A ) iff it is a divisor of A, that is a hom. image of a subalgebra

Dichotomy Conjecture A finite idempotent algebra A is tractable if and only if var( A ) does not contain a finite G-set. Otherwise it is NP-complete This conjecture is true if - A is a 2-element algebra (Schaefer) - A is a 3-element algebra (B.) - A is a conservative algebra, (B.) i.e. every subset of its universe is a subalgebra

Complexity of Meta-Problem Theorem (B.,Jeavons) - The problem, given a finite relational structure A, decide if Alg ( A ) generates a variety with a G-set, is NP-complete - For any k, the problem, given a finite relational structure A of size at most k, decide if Alg ( A ) generates a variety with a G-set, is poly-time - The problem, given a finite algebra A, decide if it generates a variety with a G-set, is poly-time

Definability in Datalog Theorem (Feder,Vardi) If a relational structure A is such that Pol( A ) contains a near-unanimity operation then is definable in Datalog If a relational structure A is such that Pol( A ) contains a semilattice operation then is definable in Datalog

Datalog and Algebras Theorem (Larose, Zadori) Let A, A ’ be finite relational structures with the same universe and such that Pol( A )  Pol( A ’). Then if is definable in Datalog then so is It makes sense to talk about algebras with definable in Datalog Theorem If is definable in Datalog then so is for any algebra B from var( A )

Linear Equations Linear Equation: Is a system of linear equations over a finite field consistent? CSP form: Linear Equation is equivalent to CSP ( A ) where A = (A; x – y + z) Fact is not definable in Datalog

Conjecture and Meta-Problem for Datalog Theorem If var( A ) contains a G-set or an affine algebra then is not definable in Datalog Conjecture is definable in Datalog iff var( A ) does not contain a G-set or an affine algebra The Conjecture is true for 2-, 3-element and conservative algebras

Complexity of Meta-Problem for Datalog Theorem - The problem, given a finite relational structure A, decide if Alg ( A ) generates a variety with a G-set, or an affine algebra is NP-complete - For any k, the problem, given a finite relational structure A of size at most k, decide if Alg ( A ) generates a variety with a G-set or an affine algebra, is poly-time - The problem, given a finite algebra A, decide if it generates a variety with a G-set or an affine algebra, is poly-time

Localization - Types A G-set affine algebra Possible local structure: 1 G-set 2 linear space 3 2-element Boolean algebra 4 2-element lattice 5 2-element semilattice

Omitting Types Conjectures A is tractable iff var( A ) omits type 1 is definable in Datalog iff var( A ) omits types 1 and 2

Other Problems: Counting In a #CSP, given structures A and B, we are asked how many homomorphisms from A to B are there. Can be parametrized by relational structures in the usual way Can be parametrized by algebras AND varieties For #CSP( A ) a classification is also known (B.,Dalmau,Grohe): #CSP( A ) is solvable in poly-time iff var( A ) has a Mal’tsev term f(x,y,y) = f(y,y,x) = x and every finite algebra from var( A ) satisfies a certain condition on congruences

Other Problems: QCSP In a QCSP we need decide if a positive conjunctive sentence is true in a given model Can be parametrized by relational structures in the usual way Complexity classification is almost known for 3-element structures (Chen), and known for conservative structures (Feder/Chen) QCSP s can be parametrized by algebras, but not varieties! No feasible di/trichotomy conjecture known