Finding Conjugate Orthogonal Diagonal Latin Squares Using Finite Model Generators Hantao Zhang Jian Zhang 2012-10-26.

Slides:



Advertisements
Similar presentations
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Advertisements

Chapter 2 Functions and Graphs
Matrices: Inverse Matrix
Chapter 2 Matrices Finite Mathematics & Its Applications, 11/e by Goldstein/Schneider/Siegel Copyright © 2014 Pearson Education, Inc.
Mathematics. Matrices and Determinants-1 Session.
Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
Interpolants [Craig 1957] G(y,z) F(x,y)
Methods for SAT- a Survey Robert Glaubius CSCE 976 May 6, 2002.
Goldstein/Schnieder/Lay: Finite Math & Its Applications, 9e 1 of 86 Chapter 2 Matrices.
1 2. Constraint Databases Next level of data abstraction: Constraint level – finitely represents by constraints the logical level.
Solving Partial Order Constraints for LPO termination.
Latin Squares Jerzy Wojdyło February 17, Jerzy Wojdylo, Latin Squares2 Definition and Examples A Latin square is a square array in which each row.
1 Section 10.1 Boolean Functions. 2 Computers & Boolean Algebra Circuits in computers have inputs whose values are either 0 or 1 Mathematician George.
Lattice and Boolean Algebra
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 86 Chapter 2 Matrices.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Lesson 9.8. Warm Up Evaluate for x = –2, y = 3, and z = – x 2 2. xyz 3. x 2 – yz4. y – xz 4 5. –x 6. z 2 – xy
Mathematics for Business (Finance)
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
Boolean Algebra Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 2 Review Important Terms, Symbols, Concepts 2.1. Functions Point-by-point plotting may be used to.
Systems and Matrices (Chapter5)
Math 3121 Abstract Algebra I Lecture 3 Sections 2-4: Binary Operations, Definition of Group.
Systems of Linear Equation and Matrices
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
April 10, 2002Applied Discrete Mathematics Week 10: Relations 1 Counting Relations Example: How many different reflexive relations can be defined on a.
Groups Definition A group  G,  is a set G, closed under a binary operation , such that the following axioms are satisfied: 1)Associativity of  :
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
9-1 Quadratic Equations and Functions 9-2 Characteristics of Quadratic Functions 9-3 Graphing Quadratic Functions 9-4 Solving Quadratic Equations by Graphing.
Heavy-Tailed Phenomena in Satisfiability and Constraint Satisfaction Problems by Carla P. Gomes, Bart Selman, Nuno Crato and henry Kautz Presented by Yunho.
+ 7.2 The Real nth Roots of a Number How many values in the domain of f are paired with the value in the range? That is, how many x values satisfy.
HW #1. Due Mar 22 Midnight Verify the following program using SAT solver 1. Translate the program into a SSA form 2. Create a Boolean formula from.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Chapter 3 Determinants Linear Algebra. Ch03_2 3.1 Introduction to Determinants Definition The determinant of a 2  2 matrix A is denoted |A| and is given.
Double Integrals Introduction.
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
Discrete Mathematics Relation.
HW #2. Due Mar 27 23:59 Do NOT forget to submit both a hardcopy solution to the HW box and a softcopy solution to TA (Youngjoo Kim):
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Functions and Their Representations
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems.
Latin squares Def: A Latin square of order n is a quadruple (R, C, S; L) where R, C and S are sets of cardinality n and L is a mapping L: R × C → S such.
NP-completeness Section 7.4 Giorgi Japaridze Theory of Computability.
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Matrices and Determinants
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
拉丁方陣 交大應數系 蔡奕正. Definition A Latin square of order n with entries from an n-set X is an n * n array L in which every cell contains an element of X such.
Copyright © Cengage Learning. All rights reserved. Graphs; Equations of Lines; Functions; Variation 3.
Combinatorial Designs and Their Applications ( 組合設計及其應用 ) 應用數學系 傅恆霖.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Mathematics-I J.Baskar Babujee Department of Mathematics
Chapter 7 Inner Product Spaces
Chapter 2 Functions and Graphs
Relations and Functions
Boolean Algebra.
EQUATION IN TWO VARIABLES:
Representing Relations
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Discrete Structure II: Introduction
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems
The Quadratic Formula.
Properties of Relations
HW #2. Due Apr 25 23:59 Do NOT forget to submit both a hardcopy solution to the HW box and a softcopy solution to TA.
Copyright © Cengage Learning. All rights reserved.
RELATIONS & FUNCTIONS CHAPTER 4.
Program correctness Axiomatic semantics
Copyright © Cengage Learning. All rights reserved.
Presentation transcript:

Finding Conjugate Orthogonal Diagonal Latin Squares Using Finite Model Generators Hantao Zhang Jian Zhang

Outline Introduction (Latin squares, SAT, finite models) Concepts and Definitions -- Conjugate Orthogonal Diagonal Latin Squares Solution of an Open Case -- formalization in first-order logic Conclusion

Introduction

Latin square problems Latin squares (quasigroups) Challenging problems in mathematics –Counting problem –Existence of Latin squares with certain properties, e.g., Mutually orthogonal Latin squares (MOLS)

Orthogonal Latin squares A pair of latin squares A=(a ij ) and B=(b ij ) are orthogonal ( A ┴ B) iff the ordered pairs (a ij,b ij ) are distinct for all i and j A ┴ A T The pairs (a ij,a t ij ) are (0,0) (2,3) (3,1) (1,2) (3,2) (1,1) (0,3) (2,0) (1,3) (3,0) (2,2) (0,1) (2,1) (0,2) (1,0) (3,3)

Solving Latin square problems with computers Computer-aided research in combinatorics –existence of small Latin squares – crucial ! Clement Lam and other mathematicians AI researchers (using CSP / SAT / …) –Jian Zhang (1990/1991) –M. Fujita, J. Slaney, M. Stickel (IJCAI-1993, 1995) –Hantao Zhang, W. McCune, … –C. Gomes, O. Dubois and G. Dequen, …

SAT Given a formula in the propositional logic, decide whether it is satisfiable or not. (p ∨ ┐q) ∧ (q ∨ ┐p) satisfiable: p = TRUE, q = TRUE. Many problems can be transformed into SAT. Tools (SAT solvers): SATO (1997), zChaff (2001), minisat (2005), …

Finite model generation/searching Given a formula in the first-order logic, decide whether it is satisfiable or not in a fixed finite domain ([0, 1, …, n-1]). forall x,y,z: y≠z  f(x,y) ≠f(x,z) forall x,y,z: x≠z  f(x,y) ≠f(z,y) Tools (finite model generators): Finder (~1994), SEM (1995), Mace4 (~2003), …

SEM input: 3. y = z | f(x,y) != f(x,z). x = z | f(x,y) != f(z,y). SEM output: f | | 0 | | | 2 0 1

Mace4 Input for qg5.8 assign(domain_size, 8). % clear(negprop). set(verbose). clauses(theory). x * z != y * z | x = y. x * y != x * z | y = z. x * x = x. (((y * x) * y) * y) = x. end_of_list.

Mace4 Output for qg5.8 interpretation( 8, [number=1, seconds=0], [ function(*(_,_), [ 0, 2, 6, 5, 1, 4, 7, 3, 7, 1, 5, 6, 2, 3, 0, 4, 3, 6, 2, 1, 5, 7, 4, 0, 1, 7, 4, 3, 0, 6, 2, 5, 6, 3, 0, 7, 4, 1, 5, 2, 2, 0, 3, 4, 7, 5, 1, 6, 5, 4, 7, 0, 3, 2, 6, 1, 4, 5, 1, 2, 6, 0, 3, 7 ]) ]).

Concepts and Definitions

transversal in a Latin square: a set of positions, one per row and one per column, among which the elements {0, 1, …, n-1} occur exactly once each. diagonal Latin square -- main diagonal is a transversal; back diagonal is also a transversal. The following is a DLS:

Conjugates Given a Latin square defined by f(x,y), we may obtain its conjugates in the following way: f123(x,y) = z; f132(x,z) = y; f213(y,x) = z; f231(y,z) = x; f312(z,x) = y; f321(z,y) = x.

LS (2;1;3)-cjg (3;2;1)-cjg (2;3;1)-cjg (1;3;2)-cjg (3;1;2)-cjg

Latin square with a hole Given a symbol set S and a subset H of S. If a Latin square L satisfies the following equations forall x,y,z: y≠z  f(x,y) ≠f(x,z) forall x,y,z: y≠z  f(y,x) ≠f(z,x) other than (x,y), (x,z), (y,x), (z,x) in H 2 we say L is a Latin square with the hole H. Example: S = { 0, 1, …, 7 } H = { 3, 4}

An Open Problem Given integers v and n, let ICODLS(v, n) denote a pair of orthogonal Latin squares (A, B) of order v with a hole of size n, where B is the (3,2,1)-conjugate of A; both A and B are diagonal. We knew the existence of ICODLS(v, n) for all possible feasible values, except possibly (n, v) = (11, 3) Example: ICODLS(8, 2) A B

Solution of an Open Case

First Order Logic Formulas Latin Square Constraints: A(x,y) = A(x,z) → y = z A(x,y) = A(z,y) → x = z A┴B: A(x 1,y 1 )=A(x 2,y 2 ) ∧ B(x 1,y 1 )=B(x 2,y 2 ) → x 1 =x 2 ∧ y 1 =y 2 Latin Square Constraints with a hole: (A(x,y) = A(x,z) → y = z) \/ h(x,y) \/ h(x,z) (A(x,y) = A(z,y) → x = z) \/ h(x,y) \/ h(z,y) A┴B: (A(x 1,y 1 )=A(x 2,y 2 ) ∧ B(x 1,y 1 )=B(x 2,y 2 ) → x 1 =x 2 ∧ y 1 =y 2 ) \/ h(x 1,y 1 ) \/ h(x 2,y 2 )

Finding the ICODLS with SAT solvers Generating propositional formulas: Introduce boolean variables V ijk (i,j,k ∈ [0, n-1]) V ijk = 1 iff A(i,j) = k V ijk = 0 iff A(i,j) ≠ k Using SAT solvers (minisat, Glucose)  not completed (> two weeks)

Mace4 input set(arithmetic). assign(domain_size, 11). assign(selection_order, 2). op(400, infix, formulas(theory). % define hole h(4,4). h(4,5). h(4,6). h(5,5). h(5,6). h(6,6). -h(y,x) | h(x,y). -h(x,y) | x = 4 | x = 5 | x = 6. -h(y,x) | x = 4 | x = 5 | x = 6. y != z | -h(x,z). y != z | -h(y,z).

Mace4 input (cont.) % define main and back diagonals x = y | x) != y) | h(x,x) | h(y,y). x = y | SUB(10, x)) != SUB(10, y)) | h(x,SUB(10,x)) | h(y, SUB(10, y)). x = y | x != x | y != y | h(z,x) | h(z,y). x = y | SUB(10, x) != x | SUB(10, y) != y | h(x,SUB(10,x)) | h(y, SUB(10, y)). % quasigroup axioms (equational) (x g y) = y | h(x,y). x g y) = y | h(x,y). (x f y = x | h(x,y). y) f y = x | h(x,y). % Orthogonal to its (3,2,1)-conjugate y != w | y = w | h(u,y) | h(u,w) | h(w,y). end_of_list.

Mace4 Output ======== DOMAIN SIZE 11============ ======== MODEL =================== interpretation( 11, [number=1, seconds= ], [ [ 3, 9, 2, 5, 7, 8, 0,10, 6, 4, 1, 0, 2, 9, 6, 8, 7, 1, 3, 4,10, 5, 8, 4, 7, 3,10, 1, 2, 5, 9, 6, 0, 4, 6, 5,10, 9, 0, 3, 2, 8, 1, 7, 9, 0,10, 8, 0, 0, 0, 1, 7, 3, 2, 1,10, 0, 2, 0, 0, 0, 9, 3, 7, 8, 2, 7, 1, 9, 0, 0, 0, 0,10, 8, 3, 5, 3, 4, 0, 1,10, 7, 8, 2, 9, 6, 6, 5, 3, 7, 0, 9, 8, 4, 1, 2,10, 10, 8, 6, 1, 2, 3, 9, 7, 5, 0, 4, 7, 1, 8, 4, 3, 2,10, 6, 0, 5, 9 ]), …

Conclusion  We solved an open case: existence of (3, 2, 1)-ICODLS(11, 3).  We presented the formalization of the problem in FOL.  Other cases remain open: e.g., the existence of (3, 2, 1)-CODLS(10), …  Challenging benchmarks for constraint solving, SAT solving and finite model generation.

Thank you!