Introduction to Symmetry Handbook of Constraint Programming, Chapter 10 Presentation by: Robert Woodward Advanced CP, Fall 2009 1.

Slides:



Advertisements
Similar presentations
Symmetry Definitions for Constraint Satisfaction Problems Dave Cohen, Peter Jeavons, Chris Jefferson, Karen Petrie and Barbara Smith.
Advertisements

Chapter 4 Euclidean Vector Spaces
Introduction The concept of transform appears often in the literature of image processing and data compression. Indeed a suitable discrete representation.
Lecture 15 Functions CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Mathematics of Cryptography Part II: Algebraic Structures
Exploiting Symmetry in Planning Maria Fox Durham Planning Group University of Durham, UK.
Cryptography and Network Security
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Math 3121 Abstract Algebra I
Mathematical Foundations of Crystallography Bill Stein Bill Stein Adam Cloues Adam Cloues David Bauer David Bauer Britt Wooldridge Britt Wooldridge Mang.
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.
3.III. Matrix Operations 3.III.1. Sums and Scalar Products 3.III.2. Matrix Multiplication 3.III.3. Mechanics of Matrix Multiplication 3.III.4. Inverses.
I. Homomorphisms & Isomorphisms II. Computing Linear Maps III. Matrix Operations VI. Change of Basis V. Projection Topics: Line of Best Fit Geometry of.
Preliminaries/ Chapter 1: Introduction. Definitions: from Abstract to Linear Algebra.
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
1 © 2012 Pearson Education, Inc. Matrix Algebra THE INVERSE OF A MATRIX.
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Constraint Systems Laboratory 11/22/2005Zheng – Comprehensive1 Survey of Techniques for Detecting and Exploiting Symmetry in Constraint Satisfaction Problems.
Linear Systems The definition of a linear equation given in Chapter 1 can be extended to more variables; any equation of the form for real numbers.
Appendix A of: Symmetry and Lattice Conditional Independence in a Multivariate Normal Distribution. by Andersson& Madsen. Presented by Shaun Deaton.
Relations Chapter 9.
Applied Discrete Mathematics Week 10: Equivalence Relations
Section 1.8: Functions A function is a mapping from one set to another that satisfies certain properties. We will first introduce the notion of a mapping.
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian.
 Let A and B be any sets A binary relation R from A to B is a subset of AxB Given an ordered pair (x, y), x is related to y by R iff (x, y) is in R. This.
4 4.4 © 2012 Pearson Education, Inc. Vector Spaces COORDINATE SYSTEMS.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
Multiway Trees. Trees with possibly more than two branches at each node are know as Multiway trees. 1. Orchards, Trees, and Binary Trees 2. Lexicographic.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
6.3 Permutation groups and cyclic groups  Example: Consider the equilateral triangle with vertices 1 , 2 , and 3. Let l 1, l 2, and l 3 be the angle bisectors.
Permutation Groups Part 1. Definition A permutation of a set A is a function from A to A that is both one to one and onto.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFunctions.
MATH4248 Weeks Topics: review of rigid body motion, Legendre transformations, derivation of Hamilton’s equations of motion, phase space and Liouville’s.
Math 3121 Abstract Algebra I Lecture 9 Finish Section 10 Section 11.
Great Theoretical Ideas in Computer Science.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
Chapter 5 – Relations and Functions. 5.1Cartesian Products and Relations Definition 5.1: For sets A, B  U, the Cartesian product, or cross product, of.
Functions Section 2.3. Section Summary Definition of a Function. – Domain, Cdomain – Image, Preimage Injection, Surjection, Bijection Inverse Function.
1 Constraint Symmetry and Solution Symmetry Presented by Beau M. Christ Symmetry in CSP’s Spring 2010 Presented by Beau M. Christ Symmetry in CSP’s Spring.
Math 3121 Abstract Algebra I Lecture 7: Finish Section 7 Sections 8.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
CP Summer School Modelling for Constraint Programming Barbara Smith 3. Symmetry, Viewpoints.
1 Symmetry Symmetry Chapter 14 from “Model Checking” by Edmund M. Clarke Jr., Orna Grumberg, and Doron A. Peled presented by Anastasia Braginsky March.
SECTION 9 Orbits, Cycles, and the Alternating Groups Given a set A, a relation in A is defined by : For a, b  A, let a  b if and only if b =  n (a)
Math 3121 Abstract Algebra I Lecture 14 Sections
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
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.
A function is a rule f that associates with each element in a set A one and only one element in a set B. If f associates the element b with the element.
10.3 Reformulation The Lex-Leader Method Shant Karakashian 1.
Process Algebra (2IF45) Basic Process Algebra Dr. Suzana Andova.
Introduction to Symmetry Analysis Brian Cantwell Department of Aeronautics and Astronautics Stanford University Chapter 1 - Introduction to Symmetry.
Chapter 2 1. Chapter Summary Sets The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions and sequences.
Prepared By Meri Dedania (AITS) Discrete Mathematics by Meri Dedania Assistant Professor MCA department Atmiya Institute of Technology & Science Yogidham.
Functions Goals Introduce the concept of function
Relations, Functions, and Matrices
7.7 Determinants. Cramer’s Rule
5 Systems of Linear Equations and Matrices
Groups and Applications
Chapter 2 Sets and Functions.
CS201: Data Structures and Discrete Mathematics I
CSE15 Discrete Mathematics 02/27/17
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Presentation transcript:

Introduction to Symmetry Handbook of Constraint Programming, Chapter 10 Presentation by: Robert Woodward Advanced CP, Fall

Overview Introduction Group Theory – Cauchy form, Cyclic form – Composition, inverse, associativity, group, order of group – Generators Conclusion 2

Introduction Why is it important? – Reduce search space – Sometimes the act of modeling can introduce symmetries Example: 4-queens on 4x4 board versus 4-queens with one queen per row Domain: {1,0} Domain: {1,2,3,4} Possible Symmetry: Rotate it Possible Symmetry: Harder to rotate

Overview Introduction Group Theory – Cauchy form, Cyclic form – Composition, inverse, associativity, group, order of group – Generators Conclusion 4

Group Theory Study of symmetry in mathematics Explained through permutations – Meaning a bijective mapping from a set onto itself – Represented as: Group action – How symmetries transform search states Is this a permutation? 5

Group Theory Chessboard Symmetries id: r90:r180:r270: x:y:d1:d2:

Group Theory Symmetries & permutations – Permutation is a one-to-one correspondence (i.e., bijection) between a set and itself – Each symmetry defines a permutation of the set elements – Permutations can be written in Cauchy form Cauchy form has two rows of numbers – Top row is a complete set of numbers (ascending) – Second row is what number the top row maps to 7

Group Theory Chessboard Symmetries id: r90:r180:r270: ?????????

Group Theory Chessboard Symmetries id: r90:r180:r270: The r90 symmetry has a cycle ( ) Cyclic Form Represent symmetries as cycles

Cauchy Form Chessboard Symmetries id: r90:r180:r270: x:y:d1:d2:

Group Theory Chessboard Symmetries id: r90:r180:r270: ()( ) + More??

Group Theory Chessboard Symmetries id: r90:r180:r270: ()( ) ( )(1 9) (2 8) (3 7) (4 8)( ) ( )

Cauchy vs. Cyclic Forms 13 Advantage of the Cyclic form: Concise Disadvantage of cyclic form Does not define the set of points on which the permutation is acting Example: 5 is not listed Cycles can appear in any order r90: ( ) ( ) r90:

Cyclic & Cauchy Forms Both forms make it easy to see how a permutation acts on a position – p is a position (in book: point) – g is a permutation – p g is what is moved to position p after g 1 r90 = 7 4 r90 = ? {1,4} r90 ={7,8} 14 r90:

Composition of Permutations Given a point p and two permutations f,g – (f◦g)(p)=(p f ) g – Not like normal function composition Function composition ( f◦g)(x)=f(g(x)) Example r90: x: r90◦x: also d2 15

Inverse of Permutations f◦f -1 =id Example r90: swap rows = r r90 -1 : 16

Associativity of Permutations f◦(g◦h) = (f◦g)◦h Works because of the definition of (permutation) composition – Both will apply f to the first element, g to the result, and h to the result 17

Group Axioms Given a non-empty set G 1.G is closed under ◦ 2.id ϵ G 3.Every element has an inverse 4.◦ is associative Order of a group – Number of elements in the set G – |G| Example: chessboard 1.G = {id, x, y, d1, d2, r90, r180, r270} 3.Every element has an inverse r90 -1 = r270, r =r90 Everything else is inverse of self 4.◦ is associative +|G| = 8 +Not commutative

Obtaining Closure To show that we have a group we need to show closure One way to show closure is to generate all permutations – Result is from composing them arbitrarily – Use a generator for a group!

Generator of a Group Generator – Let S be a set of elements with ◦ – The set S generates G if every element of G can be written as a product of elements in S – And vise-versa – S is a set of generators for G – Denoted G = Example: Chessboard – All symmetries can be generated by {r90, d1} – We can obtain all of {id, r90, r180, r270, d1, y, d2, x} by applying some sequence of compositions of {r90, d1} 20

Generators of a Group id: r90: d1: ◦= r90 r90◦r ◦ r = r90 ◦r90◦r ◦ r = r90 ◦r90◦r90◦r90 21

Generators of a Group x: ◦ = r90d1r90◦d1 > 22 r90: d1:

Subgroup A subset of G that is itself a group – G is always subgroup of itself – {id} is always a subgroup of G Example: – {id, r90, r180, r270} – Every element can be generated As seen two slides ago Example 2: – {id, x, y} – Is it a subgroup? xy 23

Orbit and Stabiliser Orbit – All the points to which a point is mapped under G – Example, orbit of 1 is {1,3,7,9} 1 id =1, 1 r90 =7, 1 r180 =9, r r270 =3 1 x =3, 1 y =7, 1 d1 =1, 1 d2 =9 Stabiliser – Is a set of the elements of the group that do not change the value of a point when they are applied to the point – Example: stabiliser of 1 is {id, d1} – In CP, a stabilitizer shows what symmetries are left unbroken after an assignment during search 24

Group Theory in CP Illustration: Chessboard Variables – n 2 variables: squares of the chessboard Values – 5 values (white queen, black queen, white king, black king, empty) Set S n is all permutations of n forms a group called the symmetric group over n elements – It’s size is n! Direct product = ??? [HELP!] 25

Computational Group Theory Schier Sims algorithm – Construct a stabiliser chain – G 0 = G – G i = G i-1 – G i = {σ ϵ G: 0 σ = 0 ^ … ^ (i-1) σ = i-1} – G n subset G n-1 subset G 1 subset G 0 Also computes coset representatives U i – Orbits of i in G i U i set of values which i is mapped to by symmetries in G 26

Overview Introduction Group Theory – Cauchy form, Cyclic form – Composition, inverse, associativity, group, order of group – Generators Conclusion 27

Definitions Overview fully interchangeable neighbourhood interchangeable local interchangeability semantic symmetries syntactic symmetries symmetricial constraint intensional permutability solution symmetry problem symmetry 28

Definitions Lots of different ones – Symmetry as a property of the solution set – Symmetry as a property that can be identified in the problem statement Brown, Finkelstein & Purdom: “A symmetry is a permutation that leaves invariant the set of solutions sequences to a problem” – Solution Symmetry Backofen and Will: “A symmetry S for a constraint program C Pr, where a set of solutions for a given problem is denoted ||C Pr ||, is a bijective function such that S||C Pr ||→||C Pr ||.” – > – Problem symmetry???? 29

More Definitions Freuder: “Two values a, b for a variable v are fully interchangeable iff every solution to the CSP containing the assignment remains a solution when b is substituted for a, and vice versa.” “Two values a, b for a value v are neighbourhood interchangeable iff for every constraint C on the variable v, the set of variable-value pairs that satisfies the constraint with the pair is the same as the set of variable-value pairs that satisfies the constraints with the pair ” Choueiry and Noubir extended interchangeability to local interchangeability 30

More Definitions Benhamou extends the ideas of value interchangeability to distinguish between: – Semantic symmetries are solution symmetries Type1: two values a i and b i are symmetric for satisfiability iff the existence of a solution with a i guarantees the existence of a solution with b i and vice versa Type2: two values a i and b i are symmetric for all solutions iff every solution with a i can be transformed into solution with with b i and vice versa (Type2 implies Type1) Both may require finding all solutions to the CSP – Syntactic symmetries are problem (constraint) symmetries Permutations leave the constraint relations unchanged Value interchangeability as a kind of value symmetry – Which is a subset of problem counting 31

Symmetrical Constraint [Puget 93] Constraint is not affected by the order of variables. Examples: – ≠ is symmetrical – x+y=z is not symmetrical Symmetry of a CSP as a permutation of variables which maps constraints into a symmetrically equivalent set S:{C i }  {C j }. Either the constraint – Is unchanged by permutation Or – Is an instance of a symmetrical constraint and mapped onto a constraint on the same set of variables 32

Intensional Permutability [Roy & Pachet 98] Variables – Have the same domains – Are subject to the same constraints – Are interchangeable in each of these constraints Example: Algebraic, linear constraint – If two variables have the same coefficients, same domains – Then they are intensionally permutable with respect to that constraint 33

Variable & Value Permutation [Torras & Meseguer01] Symmetrical Constraints & Intensional Permutability Permute variables of the problem Torras & Meseguer introduce variable & value permutation Example: Chessboard –

More Definitions McDonald and Smith: Symmetry is a bijective function σ: A  A – A is some representation of a state in search – The follow two holds 1) If A satisfies the constraints, then so does the function 2) If A is a nogood then so is σ(A) – Allows symmetries to operate on variables and values 35

Definitions Summary How they agree: – symmetries map solutions to solutions How they differ: – If the map is: any bijective mapping that preserves the solutions must be symmetry or consequence of leaving constraints unchanged – What aspect of the CSP they act on variables, values, vvp, etc. 36

Definition From Book Solution Symmetry – Permutation of the set of vvp’s which preserves the set of solutions Problem Symmetry – Permutation of the set of vvp’s which perserves the set of constraints 37

Overview Introduction Group Theory – Cauchy form, Cyclic form – Composition, inverse, associativity, group, order of group – Generators Conclusion 38

Conclusion Symmetry limits the search space Symmetry is group theory – Represented as permutations Past / Current research has a lot of different definitions regarding symmetry – Most of it is either solution symmetry or problem symmetry 39

Thank you! Any questions? PS: Symmetry is cool 40

Typos Page 334 – Paragraph after Example 10.7 – Second, a group element g operates by the composition operator to permute the values oF other elements in the group. Page 336 – Example – Values: white queen, black queen, white king, black queen king Page 338 – Second paragraph after Definition – “Two values a i and b i are symmetric for all solutions if…” 41