Lecture 1: Latin Squares!

Similar documents
Ma/CS 6a Class 28: Latin Squares

Ma/CS 6a Class 28: Latin Squares

Lecture 3: Latin Squares and Groups

1 I A Q E B A I E Q 1 A ; E Q A I A (2) A : (3) A : (4)

Part 23. Latin Squares. Contents. 1 Latin Squares. Printed version of the lecture Discrete Mathematics on 4. December 2012

3360 LECTURES. R. Craigen. October 15, 2016

A Latin Square of order n is an n n array of n symbols where each symbol occurs once in each row and column. For example,

Lecture 2: Mutually Orthogonal Latin Squares and Finite Fields

MUTUALLY ORTHOGONAL FAMILIES OF LINEAR SUDOKU SOLUTIONS. 1. Introduction

Even Famous Mathematicians Make Mistakes!

Class-r hypercubes and related arrays

Mutually orthogonal latin squares (MOLS) and Orthogonal arrays (OA)

Square 2-designs/1. 1 Definition

Lecture 5: Latin Squares and Magic

Planes and MOLS. Ian Wanless. Monash University

Definition 2.3. We define addition and multiplication of matrices as follows.

Group divisible designs in MOLS of order ten

Latin squares: Equivalents and equivalence

Finite Mathematics. Nik Ruškuc and Colva M. Roney-Dougal

An introduction to SDR s and Latin squares 1

A three-factor product construction for mutually orthogonal latin squares

cerin Delisle, 2010 University of Victoria

Latin Squares and Orthogonal Arrays

arxiv: v2 [math.co] 24 May 2018

Construction of latin squares of prime order

FRACTIONAL FACTORIAL DESIGNS OF STRENGTH 3 AND SMALL RUN SIZES

Student Activity: Finding Factors and Prime Factors

Math 31 Lesson Plan. Day 22: Tying Up Loose Ends. Elizabeth Gillaspy. October 31, Supplies needed: Colored chalk.

COMPLETION OF PARTIAL LATIN SQUARES

The upper bound of general Maximum Distance Separable codes

Row and Column Distributions of Letter Matrices

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ).

MA 1125 Lecture 15 - The Standard Normal Distribution. Friday, October 6, Objectives: Introduce the standard normal distribution and table.

On completing partial Latin squares with two filled rows and at least two filled columns

The Pennsylvania State University The Graduate School ORTHOGONALITY AND EXTENDABILITY OF LATIN SQUARES AND RELATED STRUCTURES

Lecture 2: Eigenvalues and their Uses

Lecture 2: Linear regression

HW2 Solutions Problem 1: 2.22 Find the sign and inverse of the permutation shown in the book (and below).

Lecture 7 Cyclic groups and subgroups

The candidates are advised that they must always show their working, otherwise they will not be awarded full marks for their answers.

MATH 54 - WORKSHEET 1 MONDAY 6/22

Edge colored complete bipartite graphs with trivial automorphism groups

Lecture 6: Finite Fields

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

What can you prove by induction?

Constructing Critical Indecomposable Codes

Some results on the existence of t-all-or-nothing transforms over arbitrary alphabets

ORTHOGONAL ARRAYS OF STRENGTH 3 AND SMALL RUN SIZES

Linear Algebra II. 2 Matrices. Notes 2 21st October Matrix algebra

Lecture 2: Change of Basis

Computing autotopism groups of partial Latin rectangles: a pilot study

Problem 1.1. Classify all groups of order 385 up to isomorphism.

High-dimensional permutations and discrepancy

Sets of MOLSs generated from a single Latin square

Mutually Orthogonal Latin Squares: Covering and Packing Analogues

Transversals in Latin Squares

Lecture 19: The Determinant

Lecture 2: Exchangeable networks and the Aldous-Hoover representation theorem

Chapter 10 Combinatorial Designs

Symmetry of Mutually Orthogonal Latin Squares

7.2 Applications of Euler s and Fermat s Theorem.

High-dimensional permutations

Lecture 8: A Crash Course in Linear Algebra

G. Appa, R. Euler, A. Kouvela, D. Magos and I. Mourtos On the completability of incomplete orthogonal Latin rectangles

Before we show how languages can be proven not regular, first, how would we show a language is regular?

Coloring Vertices and Edges of a Path by Nonempty Subsets of a Set

Recitation 9: Probability Matrices and Real Symmetric Matrices. 3 Probability Matrices: Definitions and Examples

Graph Theory. Thomas Bloom. February 6, 2015

Week 15-16: Combinatorial Design

Math 291-2: Lecture Notes Northwestern University, Winter 2016

Ordering and Reordering: Using Heffter Arrays to Biembed Complete Graphs

Lecture 8: Conditional probability I: definition, independence, the tree method, sampling, chain rule for independent events

ERROR-CORRECTING CODES AND LATIN SQUARES

Strongly Regular Graphs, part 1

New quasi-symmetric designs constructed using mutually orthogonal Latin squares and Hadamard matrices

RESEARCH ARTICLE. Linear Magic Rectangles

Mutually Pseudo-orthogonal Latin squares, difference matrices and LDPC codes

22A-2 SUMMER 2014 LECTURE 5

On Construction of a Class of. Orthogonal Arrays

1 Last time: determinants

Strongly Regular Decompositions of the Complete Graph

CS264: Beyond Worst-Case Analysis Lecture #15: Topic Modeling and Nonnegative Matrix Factorization

Figure 9.1: A Latin square of order 4, used to construct four types of design

Dot Products, Transposes, and Orthogonal Projections

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

Every SOMA(n 2, n) is Trojan

Lecture 8 : Structural Induction DRAFT

Chapter 1. Latin Squares. 1.1 Latin Squares

Linear Algebra, Summer 2011, pt. 2

The Quantum Query Complexity of the Determinant

DOMINO TILING. Contents 1. Introduction 1 2. Rectangular Grids 2 Acknowledgments 10 References 10

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

Transposition as a permutation: a tale of group actions and modular arithmetic

Algebraic Methods in Combinatorics

M. Matrices and Linear Algebra

Week 2: Defining Computation

The Problem of the 36 Officers Kalei Titcomb. June 12, 2009

What this shows is that an a + b by c + d rectangle can be partitioned into four rectangular regions with areas ac, bc, ad and bd, thus proving that

Topological Data Analysis - Spring 2018

CSE 160 Lecture 13. Numerical Linear Algebra

Transcription:

Latin Squares Instructor: Paddy Lecture : Latin Squares! Week of Mathcamp 00 Introduction Definition. A latin square of order n is a n n array, filled with symbols {,... n}, such that no symbol is repeated twice in any row or column. Example. Here are all of the latin squares of order : [ ] [ ] How many are there of order? Well, look at the following matrix: It s pretty easy to see that permuting rows and columns can get us to distinct latin squares; conversely, by doing so we can achieve any possible arrangment of the first row and column, which uniquely forces the remaining square s values. Enumerating all of the latin squares of order is a much more arduous task, as there are 576 distinct such latin squares. (HW) Using symmetry arguments similar to the above, can you find (not explicitly!) all of these latin squares? In our example above, we used a number of symmetry arguments to find the latin squares of order ; consequently, we can kind-of regard these latin squares as all being the same, up to various permutations of their rows. This motivates the following definition: Definition. Two latin squares A and B are called equivalent iff a sequence of permutations of the form. R ij, the permutation that swaps rows i and j,. C ij, the permutation that swaps columns i and j,. S ij, the permutation that swaps symbols i and j,. RC the three permutations that swaps all of the rows for all of the columns, 5. RS the three permutations that swaps all of the rows for all of the symbols, 6. CS the three permutations that swaps all of the columns for all of the symbols, can transform A into B.

Example. Under our equivalence relation above, we have that the by swapping the third and fourth rows. Conversely, take this matrix M and write it as a array, where the first, second, and third rows correspond to the rows, columns, and symbols, and the columns correspond to the -distinct row-column-symbol pairings in M. R C S Call such a matrix an orthogonal array OA(n, ) for any n. It is hopefully clear that these correspond uniquely with latin squares. Why do we mention these objects? Because they give us an excellent way to visualize swapping the rows and columns of our latin square: just permute the corresponding rows of our above matrix! R C S The corresponding matrix to this orthogonal array is then given by, which is another matrix equivalent to M. It bears noting that there are inequivalent matrices: for example, consider the following pair of matrices: It is not too hard to show (HW!) that these are inequivalent under our above relations. Proposition Latin squares exist for all n. Proof. Behold!... n n... n....... n... n n

Alternately: take any group of order n, and look at its multiplication table. It s not too difficult to show (HW!) that this will always create a latin square. Are there latin squares that don t arise in this way? Two Themes: MOLS and PLS In this class, we are going to explore a pair of questions about latin squares, which we describe in this section:. Mutually Orthogonal Latin Squares Definition. Take a pair of n n latin squares M, M, and look at all of the ordered pairs { (x, y) x is the (i, j)-th entry in M, and y is the (i, j)-th entry in M.} If all of these pairs are distinct, then we say that M and M are mutually orthogonal. Example. Consider the following pair of latin squares: A K Q J Q J A K J Q K A K A J Q If we superimpose these two squares, we get the square A K Q J Q J A K J Q K A ; K A J Q as all of the cards represented here are distinct, we can see that M and M are mutually orthogonal. Question (Euler s Thirty-Six Office Problem) Suppose that we have 6 officers, and split them into 6 regiments all of size 6. Suppose furthermore that within each regiment we give each office a rank from (cadet) to 6 (brigadier). Is there a way to arrange these 6 officers into a 6 by 6 latin square, so that in every row and every column, every rank and regiment is represented? In the language of orthogonal latin squares, Euler s question becomes the following: Question Are there a pair of mutually orthogonal 6 6 latin squares? As it turns out, there aren t! Motivated by this result, Euler made the following conjecture: Conjecture If n mod, then there are no pairs of n n mutually orthogonal latin squares.

This conjecture stood until 959-960, when Bose, Shrikhande, and Parker (rather surprisingly!) disproved Euler s conjecture for every case of n > 6: Theorem 5 There are mutually orthogonal latin squares for every n, 6. In this class, we ll do some partial work on this theorem, and construct mutually orthogonal n n latin squares for many values of n.. Partial Latin Squares Definition. A partial latin square of order n is a n n array, filled with either blanks or symbols {,... n}, such that no symbol is repeated twice in any row or column. Example. Here are a pair of partial latin squares: One natural question we can ask about partial latin squares is the following: when can we complete them into filled-in latin squares? There are trivially cases wherein we cannot complete a partial latin square: the second square above, for example, can t be completed to a full latin square. However, there are many conditions under which we can complete latin squares, as we ll show throughout this class (and, in particular, now:) Theorem 6 Let M be a partial n n latin square in which the first k rows are completely filled and the rest of M is blank. Then M can be completed to a n n latin square. Proof. Recall Hall s marriage theorem (week, graph theory), which says the following: Theorem 7 Suppose that G = (A, B) is a bipartite graph that satisfies Hall s property: Then G has a -factor. (HW: if you haven t proven this, do so!) Create a graph (A, B) as follows: A = {... n}, B = {B... B n }, ( ) : H A or H B, N(H) H. B j = the collection of elements that don t occur in column j, and draw an edge from i A to B j B iff i B j.

By construction, the degree of any B j is just the number of elements that don t occur in a given column i.e. n-k. As well, the degree of any i A is just the number of columns that i doesn t show up, which is *also* n-k; so this is a n k regular bipartite graph! As any such graph satisfies Hall s property, by Hall s marriage theorem, there is a -factor: i.e. a bijection between elements in {,... n} and columns where they do not occur. Use this -factor to add a row to M, and repeat to complete M. Theorem 8 (Ryser s theorem:) Suppose that M is a n n partial latin square with the elements m ij filled in iff i r, j s. Then M can be completed. Proof. So: first consider the following useful lemma, which you re encouraged to prove: Lemma 9 If A is a n n integral matrix, then for any d there are matrices B,... B d such that A = B +... + B d, where the matrices B i are all integral n n matrices that have the same entries, row and column sums, and sum over all entries as da, up to rounding up or down. Given this lemma, our proof is in fact rather easy: let B be the 0 matrix defined by letting b ij = iff the element j isn t in the i-th row in A. Then, the sum of the i-th row of B is just the number of elements the i-th row is missing i.e. n s. Similarly, the sum of the j-th column of B is just the number of times that j goes missing in A, which is also bounded above by n s (as there are at most s copies of j in our matrix, as at most one j can live in any row.) Apply the lemma to write B = L (s) +... + L (n), where the L i are 0- matrices with the same row/column sums as n sb in other words, matrices where there is exactly one in every row and at most in every column. What have we done? Well: the matrix B s entries were a way of keeping track of which rows we could put certain elements in, and the splitting apart of B into the L j s then gives us a way of dividing this data up into possible columns! Motivated by this, fill in all of the cells (i, j) M, i {... n}, j s +... n}, by setting (i, j) = k iff l (j) ik =. Because l (j) ik = iff the element k doesn t show up in row i, this will always work; thus, we can complete M to a latin rectangle! By our earlier result, we can complete this to a latin square. 5