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.

Slides:



Advertisements
Similar presentations
Rules of Matrix Arithmetic
Advertisements

Elementary Linear Algebra Anton & Rorres, 9th Edition
CSNB143 – Discrete Structure
Chapter Matrices Matrix Arithmetic
4.3 Matrix Approach to Solving Linear Systems 1 Linear systems were solved using substitution and elimination in the two previous section. This section.
Walks, Paths and Circuits Walks, Paths and Circuits Sanjay Jain, Lecturer, School of Computing.
(0,1)-Matrices If the row-sums of a matrix A are r 1, …,r k, then we shall call the vector r:=(r 1,r 2, …,r k ) the row-sum of A, and similarly for the.
GOLOMB RULERS AND GRACEFUL GRAPHS
1.5 Elementary Matrices and a Method for Finding
Mathematics. Matrices and Determinants-1 Session.
12.1 Systems of Linear Equations: Substitution and Elimination.
Chapter 2 Basic Linear Algebra
Matrices and Systems of Equations
Matrices MSU CSE 260.
INDR 262 INTRODUCTION TO OPTIMIZATION METHODS LINEAR ALGEBRA INDR 262 Metin Türkay 1.
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
MATRICES. Matrices A matrix is a rectangular array of objects (usually numbers) arranged in m horizontal rows and n vertical columns. A matrix with m.
3.8 Matrices.
A matrix having a single row is called a row matrix. e.g.,
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
SYSTEMS OF LINEAR EQUATIONS
Systems and Matrices (Chapter5)
1 資訊科學數學 14 : Determinants & Inverses 陳光琦助理教授 (Kuang-Chi Chen)
1 資訊科學數學 13 : Solutions of Linear Systems 陳光琦助理教授 (Kuang-Chi Chen)
 Row and Reduced Row Echelon  Elementary Matrices.
Chapter 2 Determinants. The Determinant Function –The 2  2 matrix is invertible if ad-bc  0. The expression ad- bc occurs so frequently that it has.
Systems of Linear Equation and Matrices
Chap. 2 Matrices 2.1 Operations with Matrices
Slide Chapter 7 Systems and Matrices 7.1 Solving Systems of Two Equations.
Presentation by: H. Sarper
Matrices & Determinants Chapter: 1 Matrices & Determinants.
1 © 2010 Pearson Education, Inc. All rights reserved © 2010 Pearson Education, Inc. All rights reserved Chapter 9 Matrices and Determinants.
WEEK 8 SYSTEMS OF EQUATIONS DETERMINANTS AND CRAMER’S RULE.
Groups Definition A group  G,  is a set G, closed under a binary operation , such that the following axioms are satisfied: 1)Associativity of  :
8.1 Matrices & Systems of Equations
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
1 C ollege A lgebra Systems and Matrices (Chapter5) 1.
Matrices CHAPTER 8.1 ~ 8.8. Ch _2 Contents  8.1 Matrix Algebra 8.1 Matrix Algebra  8.2 Systems of Linear Algebra Equations 8.2 Systems of Linear.
Chapter 4 – Matrix CSNB 143 Discrete Mathematical Structures.
Matrices Matrices For grade 1, undergraduate students For grade 1, undergraduate students Made by Department of Math.,Anqing Teachers college.
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
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.
Addressing and hashing Question: For a network of computers it is desirable to be able to send a message from A to B without B knowing that a message is.
Slide Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Word : Let F be a field then the expression of the form a 1, a 2, …, a n where a i  F  i is called a word of length n over the field F. We denote the.
Chapter 6 Systems of Linear Equations and Matrices Sections 6.3 – 6.5.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
2 2.1 © 2012 Pearson Education, Inc. Matrix Algebra MATRIX OPERATIONS.
Matrices Section 2.6. Section Summary Definition of a Matrix Matrix Arithmetic Transposes and Powers of Arithmetic Zero-One matrices.
Copyright © 2009 Pearson Education, Inc. CHAPTER 9: Systems of Equations and Matrices 9.1 Systems of Equations in Two Variables 9.2 Systems of Equations.
 SOLVE SYSTEMS OF EQUATIONS USING MATRICES. Copyright © 2012 Pearson Education, Inc. Publishing as Addison Wesley 9.3 Matrices and Systems of Equations.
Chapter 8 Matrices and Determinants Matrix Solutions to Linear Systems.
Hello Mr. Anderson… We’ve been waiting for you.. Hello Mr. Anderson… We’ve been waiting for you.
Copyright © Cengage Learning. All rights reserved. 2 SYSTEMS OF LINEAR EQUATIONS AND MATRICES.
Matrices and Determinants
Linear Algebra Chapter 2 Matrices.
Matrices and Matrix Operations. Matrices An m×n matrix A is a rectangular array of mn real numbers arranged in m horizontal rows and n vertical columns.
Partitions Define pk(n) as the number of solutions of n=x1+…+xk, x1 ≥ x2 ≥ …≥ xk ≥ 1, n is a positive integer. pk(n) = 0,
Mathematics Medicine What is meant by a matrix A matrix is a set of numbers arranged in the form of a rectangle and enclosed in curved brackets.
拉丁方陣 交大應數系 蔡奕正. 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.
2 - 1 Chapter 2A Matrices 2A.1 Definition, and Operations of Matrices: 1 Sums and Scalar Products; 2 Matrix Multiplication 2A.2 Properties of Matrix Operations;
A very brief introduction to Matrix (Section 2.7) Definitions Some properties Basic matrix operations Zero-One (Boolean) matrices.
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
MAT 322: LINEAR ALGEBRA.
Lecture 2 Matrices Lat Time - Course Overview
Chapter 2 Determinants by Cofactor Expansion
Systems of distinct representations
DETERMINANT MATH 80 - Linear Algebra.
Chapter 2 Determinants.
Presentation transcript:

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 that for any i ∈ R and x ∈ S, the equation L(i, j) = x has a unique solution j ∈ C, and for any j ∈ C, x ∈ S, the same equation has a unique solution i ∈ R. R: rows, C: columns, S: symbols. Permuting R, C, S of a Latin square gets an equivalent Latin square. Eg. abcde baecd cdbea deabc ecdab

Two Latin square are called conjugate, if they have the same three rows of OA (may in different order). Def: An orthogonal array OA(n, 3) of order n and depth 3 is a 3 by n 2 array with the integers 1 to n as entries, such that for any 2 rows of the array, the n 2 vertical pairs occurring in these rows are different. rows Columns symbols Columns rows

Two Latin squares for which the corresponding orthogonal arrays have the same three rows (possibly in different order) are called conjugates. Def: An n  n array A with cells empty and no symbol occurs more than once in any row or column is called a partial Latin square. When and how can we complete a partial Latin square to a Latin square of order n? Eg. Can the following partial Latin squares be completed? Conjugate?

Thm 1: A k  n Latin rectangle, k<n, can be extended to a (k+1)  n Latin rectangle. Pf: Let B j denote the set of positive integers that do not occur in column j of A. Each of 1, …, n occurs k times in A and therefore n-k times in B j ’ s. Any ℓ of B j ’ s contains ℓ(n-k) elements and thus at least ℓ different ones. (why?) B j ’s have the property H, and therefore have an SDR. This SDR can be adjoined as the (k+1)-st row. ▧

Def: L(n): the total number of different Latin squares of L(n) is known for only n=1, …,9. Thm 2: L(n) ≥ (n!) 2n /n n 2. Pf: The first row of a Latin square can be any permutation of 1,…,n. Suppose we have a Latin rectangle with k rows. By Thm 1, the number of choices for the next row is per B, where b ij =1 if i ∈ B j. By Thm 12.8, per J n = n!/n n, per A > per J n for any A≠J n. Thus per B ≥ (n-k) n n!/n n So we have ▧

Thm 4: Let A be a partial Latin square of order n in which cell (i, j) is filled iff i ≤ r and j ≤ s. Then A can be completed iff N(i) ≥ r+s-n for i=1, …,n, where N(i) denotes the number of elements of A that are equal to i. Pf: “ ⇒ ” s r A Latin square. For any i, it must appear r times in the first r rows and at most n-s of which appear in the last n-s columns. Thus N(i) ≥ r-(n-s) = r+s-n.

“ ⇐ ” Let B be the (0,1)-matrix of size r  n with b ij =1 iff the element j does not occur in row i of A. Every row of B has sum n-s. The j-th column of B has sum r-N(j) ≤ n-s. By Thm 7.5 (d=n-s) If A is an integral matrix and d any positive integer, then A=B 1 +B 2 + … +B d where each B i is an integral matrix whose entries, row-sums, col-sums, and sum of all entries are those of (1/d)·A, rounded up or down. s r n-s r j

We have B=L (s+1) + … +L (n), where each L (t) is an r  n (0,1)-matrix with one 1 in each row and at most one 1 in each col. Eg. Let r=s=4, n= A:

Say L (t) =. For i=1, …,r, j=s+1, …,n by k if The example will add in the last column. Then by Thm 1, A can be completed to a Latin square. ▧

Thm 5. Let A be a Latin square of order n. Let B be an (n+1)  (n+1) array whose (i, j)-entry is the (i, j)- entry of A for i, j ≥ 1, i+j ≤ n+1, which has a new symbol α on the back-diagonal; and whose cells below the back-diagonal are empty. Then B can be completed to a Latin square of order n+1. Eg A α 4351 α 251 α 51 α 3 α α B α 251α 51α 3α C

Pf: “ Strategy ” : Fill in the empty cells of C row by row. After the first r rows are filled in, we will have r  n a Latin rectangle in n+1 symbols 1, 2, …, n, α so that j-th column contains the same symbols, in some order, as they were in the first r rows of A; except the missing symbol α. Also we have that the r-1 missing symbols are all distinct. If is trivial for r=1 and 2. Assume it is done for some r, 2 ≤ r < n and that the missing symbols at this point are x n-r+2, x n-r+3, … x n.

To fill in the (r+1)-st row, we proceed as follows. Let the last removed r symbols in row r+1 of A be y n-r+1, y n-r+2, …, y n-1, y n. y n-r+1 is the symbol displaced by α and must be the new missing element in that column. If y n-r+1, x n-r+2, …, x n are distinct, we fill in row r+1 with y n-r+2, y n-r+3, …, y n. If not all distinct, consider y n-r+1 = x k 1 y k 1 = x k 2 y k m-1 = x k m so that y k m is not equal to any of the x j ’s. … y n-r+1, x n-r+2, …, x k 1,...,x k 2,...,x n y n-r+2, …, y k 1,..., y k 2,...,y n yk1xk1yk1xk1 yk2xk2yk2xk2

Then fill in row r+1 with y n-r+2, y n-r+3, …, y n except that y k 1, y k 2 …, y k m are omitted and replaced by x k 1, x k 2,…, x k m. Need to check that row r+1 contains distinct symbols. The new missing symbols will be y n-r+1 and x n-r+2, …, x n, except that x k 1, …, x k m are omitted and replaced by y k 1, …, y k m. Once all the cells of C are filled, the first n cells of the last row of B are to be the missing symbols x, thus an (n+1) x n Latin rectangle, and so obtain an Latin square of order n+1. ▧

Eg α 251α 51α 3α α 251α4 51α 3α α 251α4 51α23 3α 432 missing α 251α4 51α23 3α452 x y α 4351α 251α 4 51α 23 3α 452 α 4231 B: A:

Thm 6. A Latin square of order n with at most n-1 filled cells can be completed to a Latin square of order n. Eg

Proof: (By induction on n). Suppose it holds up to n. Let L be a partial Latin square of order n+1 with at most n filled cells. First suppose there is a symbol x appears only once in L. Then we can permute rows and columns to move the filled cells above the back-diagonal, except x will be on the back- diagonal. Let the rows with filled cells have f 1,..., f k filled cells and x is in the row with f 1 filled cells, where f f k ≤ n. x n+1- f 1 n+1- f 1 - f 2 If x is in column j, interchange with column f 1 +1.

By the induction hypothesis, the part above the back diagonal (with at most n-1 filled cells) can be completed to a Latin square A of order n based on symbols other than x. By Thm 5, it can be completed to a Latin square A of order n+1. If L has a row (or column) with exactly one filled cell, then the above also holds, because a conjugate of L will have the property that some symbol appears exactly once and a conjugate of L can be completed iff L can be completed. x R C S R C

If no row or column contains exactly one filled cell, then the filled cells are contained in at most m rows and m columns, where m = [n/2]. We may permute rows and columns so that filled cells lie in the upper left sub-array of order m. And it is easy fill every empty cell in the m  m, since m = [n/2] and we have n+1 symbols available. By Thm 4, every m  m Latin rectangle can be completed to a Latin square of order n m=4, n= 2 m+1= 9