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.
1 Decomposing Hypergraphs with Hypertrees Raphael Yuster University of Haifa - Oranim.
2005conjunctive-ii1 Query languages II: equivalence & containment (Motivation: rewriting queries using views)  conjunctive queries – CQ’s  Extensions.
Relations Relations on a Set. Properties of Relations.
NP-Completeness: Reductions
Edge-Coloring of Graphs On the left we see a 1- factorization of  5, the five-sided prism. Each factor is respresented by its own color. No edges of the.
The Structure of Polyhedra Gabriel Indik March 2006 CAS 746 – Advanced Topics in Combinatorial Optimization.
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.
1.  Detailed Study of groups is a fundamental concept in the study of abstract algebra. To define the notion of groups,we require the concept of binary.
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 52 Database Systems I Relational Algebra.
CS21 Decidability and Tractability
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
3.II. Homomorphisms 3.II.1. Definition 3.II.2. Range Space and Nullspace.
Validating Streaming XML Documents Luc Segoufin & Victor Vianu Presented by Harel Paz.
NP-Complete Problems Problems in Computer Science are classified into
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.
Computability and Complexity 17-1 Computability and Complexity Andrei Bulatov Strong NP-Completeness.
CSP, Algebras, Varieties Andrei A. Bulatov Simon Fraser University.
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)
MA5209 Algebraic Topology Wayne Lawton Department of Mathematics National University of Singapore S ,
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
1 On one-generated projective BL-algebras Antonio Di Nola and Revaz Grigolia University of Salerno Tbilisi State University Department of Mathematics Institute.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
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.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
Mathematical Induction
Language: Set of Strings
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
1 Finite Model Theory Lecture 3 Ehrenfeucht-Fraisse Games.
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.
NP-completeness Section 7.4 Giorgi Japaridze Theory of Computability.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
Math 3121 Abstract Algebra I Lecture 14 Sections
 Example: [Z m ;+,*] is a field iff m is a prime number  [a] -1 =?  If GCD(a,n)=1,then there exist k and s, s.t. ak+ns=1, where k, s  Z.  ns=1-ak.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Chap. 7 Relations: The Second Time Around
Divisibility and Modular Arithmetic
Chapter 6- LINEAR MAPPINGS LECTURE 8 Prof. Dr. Zafer ASLAN.
Properties of Groups Proposition 1: Let (G,  ) be a group. i.The inverse element of any element of G is unique. Remark: In view of i., we may use the.
Prepared By Meri Dedania (AITS) Discrete Mathematics by Meri Dedania Assistant Professor MCA department Atmiya Institute of Technology & Science Yogidham.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Unit-III Algebraic Structures
Computability and Complexity
Reflexivity, Symmetry, and Transitivity
CS201: Data Structures and Discrete Mathematics I
Implications of the ETH
ICS 353: Design and Analysis of Algorithms
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.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
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 )

? G K k Graph k -Colorability Does there exist a homomorphism from a given graph G to the complete graph? H-Coloring Does there exist a homomorphism from a given graph G to H? Example (Graph Colorability)

Cores A retraction of a relational structure A is a homomorphism onto its substructure B such that it maps each element of B to itself A core of a structure is a minimal image of a retraction A structure is a core if it has no proper retractions A structure and its core are homomorphically equivalent  it is sufficient to consider cores

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 © Local structure of algebras 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 H-Coloring problem 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

Conservative Algebras An algebra is said to be conservative if every its subset is a subalgebra Theorem (B.) A conservative algebra A is tractable if and only if, for any 2-element subset C  A, there is a term operation f such that f  is one of the following operations:  semilattice operation (that is conjunction or disjunction)  majority operation ( that is )  affine operation (that is ) C

Graph of an Algebra If algebra A is conservative and is tractable, then an edge-colored graph Gr( A ) can be defined on elements of A semilattice majority affine (Mal’tsev)

GMM operations An ( n -ary) operation f on a set A is called a generalized majority-minority operation if for any a,b  A operation f on {a,b} satisfies either `Mal’tsev’ identities f(y,x,x,…,x) = f(x,…,x,y) = y or the near-unanimity identities f(y,x,x,…,x) = f(x,y,x,…,x) =…= f(x,…,x,y) = x Theorem (Dalmau) If an algebra has a GMM term then it is tractable We again have two types of pairs of elements, but this time they are not necessarily subalgebras

Operations on Divisors a b B B/B/  B is the subalgebra generated by a,b B/ is the quotient algebra modulo    is a maximal congruence of B separating a and b For an operation f of A the corresponding operation on B/ is denoted by 

Graph of a general algebra a b B B/  We connect elements a,b with a red edge if there are a maximal congruence  of B and a term operation f such that is a semilattice operation on yellow edge if they are not connected with a red edge and there are a maximal congruence  of B and a term operation f such that is a majority operation on blue edge if they are not connected with a red or yellow edge and there are a maximal congruence  of B and a term operation f such that is an affine operation on

Graph of an Algebra An edge-colored graph Gr( A ) can be defined on elements of any algebra A semilattice majority affine If A is tractable then for any subalgebra B of A Gr (B) is connected

Dichotomy Conjecture A finite idempotent algebra A is tractable if and only if for any its subalgebra B graph Gr (B) is connected. Otherwise it is NP-complete Dichotomy Conjecture in Colours The conjecture above is equivalent to the dichotomy conjecture we already have, and it is equivalent to the condition on omitting type 1

Particular cases Observe that red edges are directed, because a semilattice operation  on can act as and the this edge is directed from a to b. Or it can act as and in this case the edge is directed from b to a. Let denote the graph obtained from Gr( A ) by removing yellow and blue edges

Particular cases II Theorem (B.) If for any subalgebra B of algebra A graph is connected and has a unique maximal strongly connected component, then A is tractable -commutative conservative grouppoids a  b = b  a, a  b  {a,b} -2-semilattices a  a = a, a  b = b  a, a  (a  b) = (a  a)  b

Thank you!