IJRIT International Journal of Research in Information Technology, Volume 1, Issue 4, April 2013, Pg. 38-50

International Journal of Research in Information Technology (IJRIT)

www.ijrit.com

ISSN 2001-5569

An Algorithm to Construct Super-Symmetric Latin Squares of Order 2n M.A.P.Chamikara1, S.R.Kodituwakku2, A.A.C.A.Jayathilake3, A.A.I.Perera4 1

Postgraduate Institute of Science, University of Peradeniya, Peradeniya, Sri Lanka. 2

Department of Statistics and Computer Science, Faulty of Science, University of Peradeniya, Sri Lanka

3

Department of Mathematics, University of Peradeniya, Peradeniya, Sri Lanka

4

Department of Mathematics, University of Peradeniya, Peradeniya, Sri Lanka

[email protected], [email protected] 2, [email protected], [email protected] 4

Abstract Literature shows that there are several ways of generating Latin squares, but there is not enough implementation about Supersymmetric Latin squares. This paper proposes a mathematical algorithm to construct Super-symmetric Latin squares of order 2 by substituting blocks of order 2n which has the basic properties of a recursive algorithm. The proposed algorithm was tested for a large number of orders and the results proved that the algorithm could be generalized for any input order n where n is a positive integer.

Keywords: Combinatorics, Design theory, Graph theory, Latin Square, Super-symmetry

1. Introduction The Latin squares have several applications in Combinatorics [11], Design theory [8], Graph theory [9], Statistics [10], Computer Science [12] etc. In algebra, the Latin squares are used to generalize groups. In fact, Latin squares are characterized as being the multiplication tables of quasi-groups. Further, Latin squares are a special case of row-column designs of two blocking factors which are frequently used in Statistics [13]. Moreover, sets of Latin squares that are orthogonal to each other have found an application as error correcting codes in situations where the communication is disturbed by more types of noise than simple noise [14]. Also, the popular Sudoku puzzles are a special case of Latin squares; any solution to a Sudoku puzzle is a Latin square.

Definition 1: (Latin square) A Latin Square is an n  n array containing n different symbols such that each symbol appears exactly once in each row and once in each column. Moreover, a Latin square of order n is a n  n matrix M  m with entries from an n-set V, where every row and every column is a permutation of V [1]. An example of a Latin Square of order 5 is: 0 1 2 3 4

M.A.P Chamikara, IJRIT

38

1 2 3 4 0 2 3 4 0 1 3 4 0 1 2 4 0 1 2 3

Definition 2: (Super-symmetric Latin square) Latin square is called super-symmetric, if all the permutations of the elements are in the corresponding Latin square [2]. Following Latin squares can be considered as super symmetric. If two lines are drawn connecting the diagonals, it makes four symmetric triangles of indices. order 2:

1 2 2 1 Tab: 1

order 4 :

1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

Tab:2 order 8:

1 2 3 4 5 6 7 8

2 1 4 3 6 5 8 7

3 4 1 2

4 3 2 1

7 8 5 6

8 7 6 5

5 6 7 8 1 2 3 4

6 5 8 7 2 1 4 3

7 8 5 6 3 4 1 2

8 7 6 5 4 3 2 1

Tab: 3

1.1 Mathematical properties of Latin squares The classification of Latin squares up to isomorphism depends on the definition of isomorphism used [7]. We assume that the set of symbols is the same as the set of row and column indices, that is, {1,2, . . . , n}.Two Latin squares are said to be isotopic, if one can be obtained from the other by permuting rows, columns and symbols. The equivalence classes of this relation are called isotopy classes [6]. The number of Latin squares of order n is roughly cn n². This number is of a greater order of magnitude than the number of isomorphism’s, so the estimate is little affected by counting up to some notion of isomorphism [3]. 1.1.1 Automorphisms An automorphism is an isomorphism [5] from a Latin square to itself. The automorphisms of a Latin square form a group [3].

1.1.2 Partial Latin squares

M.A.P Chamikara, IJRIT

39

A partial Latin square of order n is an n  n array in which each cell either contains a symbol from the set {1,2, . . . , n} or is blank, so that each symbol occurs at most once in each row or column. It can be completed to a Latin square if it is possible to place symbols in the blank cells so as to produce a Latin square [2]. 1.1.3 Transversals A transversal to a Latin square of order n is a set of n cells with the property that one cell lies in each row, one in each column, and one contains each symbol. A Latin square has an orthogonal mate if and only if it possesses a set of n transversals which partition the n cells of the square [4]. This paper proposes a mathematical algorithm to construct Super-symmetric Latin squares of order 2 by substituting blocks of order 2n for all positive integers greater than or equal 1.

2. Methodology The methodology of generating super-symmetric Latin squares of order 2n which is explained under this paper involves a set of significant steps that works as a recursive algorithm. This section explains the construction of those steps together in to one composite algorithm which ultimately provide the capability of generating super-symmetric Latin squares of order 2n.

2.1 Steps of the Proposed Algorithm Step 01 Construct the first row of the Latin square by placing the integers in increasing order. For an example, the first row of the Latin square of order 8 is the array of numbers given by 1 2 3 4 5 6 7 8 .

Step 02 Separate the pairs of integers and interchange the arranging order of each pair (21) to form the 2nd row of the Latin square. In the above example, the second row can be formed as 2 1 4 3 6 5 8 7. This completes two rows of the Latin square as follows: 1 2

2 1

3 4

4 3

5 6

6 5

7 8

8 7

Step 03 By considering both rows, separate these rows into 4 (22) blocks as follows.

1 2

2 1

3 4

4 3

5

6

Tab:64 5

7 8

8 7

Then apply the cross multiplication or interchange method as depicted below.

1 2

2 1

3 4

4 3

5 6

6 5

7 8

8 7

3 4

4 3

1 2

2 1

7 8

8 7

5 6

6 5

Tab: 5 This concludes four rows of the corresponding Latin square.

M.A.P Chamikara, IJRIT

40

Step 04 In the similar manner separate these rows in to blocks of matrices of order 4 as given below. 1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

5 6 7 8

6 5 8 7

7 8 5 6

8 7 6 5

Tab: 6 Using the cross multiplication method, the Latin square of order 8 (23) can be constructed as follows.

1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

5 6 7 8

6 5 8 7

7 8 5 6

8 7 6 5

5 6 7 8

6 5 8 7

7 8 5 6

8 7 6 5

1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

Tab: 7 Thus, in general, the super symmetric Latin square of order 2 can be constructed by the method of cross multiplication of blocks of 2 where k  1,2,3, … , n. Following diagram depicts the way of executing the proposed algorithm on the order 25(=32) Latin square.

1 2 2 1

3 4 4 3

5 6 6 5

7 8 8 7

3 4 4 3

1 2 2 1

7 8 8 7

5 6 6 5

11 12

12 11

9 10

4 3 2 1

13 14 15 16

14 13 16 15

15 16 13 14

5 6 7 8

9 10 11 12 13 14 15 16

6 5 8 7

10 9 12 11 14 13 16 15

7 8 5 6

11 12 9 10 15 16 13 14

1 2 3 4

8 7 6 5

12 11 10 9 16 15 14 13

13 14 15 16 9 10 11 12

2 1 4 3

14 13 16 15 10 9 12 11

3 4 1 2

15 16 13 14 11 12 9 10

9 10 11 12 10 9 12 11

1 2 3 4 5 6 7 8

16 15 14 13 12 11 10 9

2 1 4 3 6 5 8 7

3 4 1 2 7 8 5 6

13 14

14 13

15 16

16 15

10 9

15 16

16 15

13 14

14 13

16 15 14 13

9 10 11 10 9 12 11 12 9 12 11 10

4 3 2 1 8 7 6 5

5 6 7 8 1 2 3 4

6 5 8 7 2 1 4 3

7 8 5 6 3 4 1 2

12 11 10 9

8 7 6 5 4 3 2 1

Tab: 8

M.A.P Chamikara, IJRIT

41

2.2 Pseudo code of the implemented proposed algorithm. var N,noOflev,p,power,count,count2,r:integer; //Declaring the variable N, which is the order of the Latin square var L:Array[N][N]; //Defining a 2D array for the Latin square (2D array named L with the order N) Const SIZE:=N; //Taking a constant variable named SIZE with the same size of N begin noOflev:=1; //Initializing the noOflev (number of levels) variable with value 1. writeln(' Enter the order of the Latin square:'); read(N); for ii:=2 to N //Calculating the number of phases needed or finding the 2's exponent of the given order ex: if N is 8 the 2's exponent is 3 begin ii=ii*2; noOflev=noOflev+1; end for m0:=0 to N //Phase 0=> Filling the first raw of L[N][N] with numbers in the ascending order starting from 1 ex: 1 2 3 4 5 6 7 8. begin L[0][m0]=m0+1; end for n:=0 to noOflev //Main loop that loops for the number of levels begin for k:=0 to 2n //Loop for no of levels (ex: level one only 1, level 2 only 2,3, level 3, only 4,5,6,7, etc...) begin count2:=count2+1; power=2n; if(count2==1)then //limiting the calculation only to the first iteration p:=power; //Calculating the number of additions and subtractions from the index, needed. for j:=0 to N begin if (j%p==0) then count=count+1; //Increment the count variable only in the first iteration of one phase if (count%2!=0) then L[k+power][j]=L[k][j+p]; //Selecting the increment to add or deduct using the phase else L[k+power][j]=L[k][j-p]; end count=0; end

M.A.P Chamikara, IJRIT

42

count2=0; end end;

2.3. C++ Implementation of the proposed algorithm #include #include #include #include #include int main() { int N=0; cout<<"Enter the order of the Latin square: "; cin>>N; const int SIZE=N; int noOflev=1; int p=0; int power=0; int count=0; int count2=0; int r=0; long int** L = (long int**)malloc(SIZE*sizeof(*L)); for(int m=0;m
M.A.P Chamikara, IJRIT

43

} count2=0; } for(int kk=0;kk
3.

Results

A considerable amount of super symmetric Latin squares of order 2 were constructed using the proposed algorithm. 3.1 Figure 01 shows some of the resulting super-symmetric Latin squares which were generated using the computerized version of the proposed algorithm.

Fig.01-Computer generated super-symmetric Latin square of order 2 2

3.2 When the order 2 super symmetric Latin square is plotted using the MATLAB plots function, it generates a plot which is depicted in Figure 02.

Fig. 02-plot of the super-symmetric Latin square of order 2 2

M.A.P Chamikara, IJRIT

44

3.3 Figure 03 displays the super-symmetric Latin square of order 4 2 which was generated by the computerized version of the proposed algorithm.

Fig.03- Computer generated super-symmetric Latin square of order 4 2 3.4 Figure 04 shows the plotted graph of the super-symmetric Latin square of order 4.

Fig. 04-The diagram of the plotted graph of the super-symmetric Latin square of order 4 2 3.5 Figure 05 displays the super-symmetric Latin square of order 8 2! which was generated by the computerized version of the proposed algorithm.

Fig.05-Computer generated super-symmetric Latin square of order 8 2!

M.A.P Chamikara, IJRIT

45

3.6 Figure 06 shows the plotted graph of the super-symmetric Latin square of order 8.

Fig. 06-The plotted graph of the super-symmetric Latin square of order 8 2! Observe that, in Figure 06, there is a specific pattern in the Latin square of order 6. There are four similar patterns appeared in the Figure 06.They are the similar structure of the super-symmetric Latin square of order 4. According to the construction mentioned in the methodology, the super symmetric Latin square of order 8 was constructed using four blocks,

1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

5 6 7 8

6 5 8 7

7 8 5 6

8 7 6 5

5 6 7 8

6 5 8 7

7 8 5 6

8 7 6 5

1 2 3 4

2 1 4 3

3 4 1 2

4 3 2 1

Tab: 9 and they were constructed using only two blocks. Thus, in the entire plotted graph in Figure 06, it contains two similar graphs of Figure 04.

M.A.P Chamikara, IJRIT

46

3.7 The Figure 07 shows the super-symmetric Latin square of order 16,which was obtained from the supersymmetric Latin square of order 4. There are four blocks of super-symmetric Latin square of order 4 and the cross multiplication of the Latin square of order 4 give the Latin square of order 16.

Fig.07-The diagram of the super-symmetric Latin square of order 16 2"

3.8 Further, Figure 08 clearly shows the arrangement of the Latin square of order 4 in the structure of the Latin square of order16. There are 16 blocks appeared in the graph below. They are the same graph showed in the Figure 04.

Fig.08-The plotted graph of the super-symmetric Latin square of order 16 2"

M.A.P Chamikara, IJRIT

47

3.9 Figure 09 also shows the super-symmetric Latin square of order 32, which was obtained by cross multiplying 8 super-symmetric Latin squares of order 4. The plotted graph of this Latin square is also give in Figure 10.

Fig.09-The Super-symmetric Latin square of order 32 2#

Figure 10-The plotted graph of the super-symmetric Latin square of order 32 2# Thus, in the similar manner, the super-symmetric Latin squares of order 2 for all n $ 1 can be obtained using the above mentioned method.

M.A.P Chamikara, IJRIT

48

4.

Conclusion

A new mathematical method for generating super symmetric Latin squares was introduced. The proposed method has also been adapted to a computer program with a simple set of steps. Test cases also proved that the proposed algorithm can be generalized. Further, this method can be extended to construct the Latin square of order m  2 where m is a prime number and n $ 1.

5. [1] [2] [3] [4] [5] [6] [7] [8] [9]

[10]

[11] [12] [13] [14]

References Morales, L. M. (2010, September). Some properties of Latin squares - Study of maximal sets of Latin squares. Mullen, C. L. (1998). Discrete Mathematics Using Latin Squares. Wiley Inter-science . J. Dénes, A. K. Latin Squares: New Developments in the Theory and Applications (Annals of Discrete Mathematics). Wolfe, A. (2005). 5-sparse Steiner Triple Systems of Order n Exist for almost all admissible n. The Electronic journal of combinatorics , 12 . Jeranfer Bermudez, L. M. (2009). Some properties of Latin squares - Study of mutually orthogonal Latin squares. Tang, J. (2009). Latin Squares and Their Applications. A. Cayley, On Latin squares, Oxford Camb. Dublin Messenger of Math., 19 (1890) 135–137. E. J. Williams, Experimental designs which are balanced for the estimation of residual effects of treatments, Australian J. Sci. Res. 2, 149 - 164, 1949. A. A. C. A. Jayathilake, A. A. I. Perera, M. A. P. Chamikara, Generation of Strongly Regular Graphs from Normalized Hadamard Matrices, international journal of scientific & technology research volume 2, issue 2, february 2013 issn 2277-8616,210-215. Sorana D. Bolboacă, Lorentz Jäntschi, Radu E. Sestraş, Statistical Approaches in Analysis of Variance: from RandomArrangements to Latin Square Experimental Design, Leonardo Journal of Sciences,ISSN 1583-0233,Issue 15, July-December 2009,p. 71-82 C. D. Godsil and B. D. McKay, Asymptotic enumeration of Latin rectangles, J. Combinatorial Theory, Ser. B, 48 (1990) 19–44. M. B. Wells, Elements of combinatorial computing. Pergamon Press (Oxford-New York-Toronto, 1971). Hinkelmann, Klaus and Kempthorne, Oscar (2008). Design and Analysis of Experiments. I and II (Second ed.). Wiley. ISBN 978-0-470-38551-7. C.J. Colbourn, T. Kløve, and A.C.H. Ling, Permutation arrays for powerline communication, IEEE Trans. Inform. Theory, vol. 50, pp. 1289–1291, 2004. M.A.P. Chamikara is working as a research assistant at the Post Graduate Institute of Science (PGIS), University of Peradeniya, Sri Lanka. He received his BSc (Special) degree in Computer Science from University of Peradeniya, Sri Lanka in 2010. His research interests include Crime analysis, GIS (Geographic Information Systems), image processing, computational mathematics, computer vision and artificial intelligence

S. R. Kodituwakku is a professor at the Department of Statistics and Computer Science, University of Peradeniya, Sri Lanka. His research interests include database systems, distributed computing, Role based Access Control systems, and software engineering.

M.A.P Chamikara, IJRIT

49

An Algorithm to Construct Super-Symmetric Latin Squares of Order 2

M.A.P Chamikara, IJRIT. 38 ... Order 2 n. M.A.P.Chamikara. 1 ..... research interests include Crime analysis, GIS (Geographic Information Systems), image.

2MB Sizes 2 Downloads 152 Views

Recommend Documents

An Algorithm to Construct Super-Symmetric Latin Squares of Order 2
Moreover, a Latin square of order n is a n n matrix M m with ... first row of the Latin square of order 8 is the array of numbers given by 1 2 3 4 5 6 7 8 . Step 02.

An Algorithm to Construct Super-Symmetric Latin ...
Abstract. Literature shows that there are several ways of generating Latin squares, but there is not enough implementation about Super-symmetric Latin squares.

Using genetic algorithm to select the presentation order of training ...
Mar 18, 2008 - i ¼ 1 ہ ai. (1). F1 layer nodes are connected to output layer F2 nodes through a ..... http://www.ics.edu/mlearn/MLRespository.html (1994).

An Approach to Construct Dynamic Service Mashups ...
new Web applications atop of these services in a more agile way. ... services, whereas annotation-based approaches (e.g. SAWSDL [19], hRESTS [7]).

Construct. Trades_COS.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Construct. Trades_COS.pdf. Construct. Trades_COS.pdf. Open. Extract. Open with. Sign In. Main menu.

NON-SUPERSYMMETRIC FOUR-DIMENSIONAL ...
partner S k, while the periodic S 4 is the partner of the periodic space-time co- ordinates X ". ..... where a 0, a 1, c o, c I = 0,1, and will be analyzed next. Any other ...

Difference of two squares - presentations.pdf
Page 1 of 9. Page 1 of 9. Page 2 of 9. Page 2 of 9. Page 3 of 9. Page 3 of 9. Page 4 of 9. Page 4 of 9. Difference of two squares - presentations.pdf. Difference of two squares - presentations.pdf. Open. Extract. Open with. Sign In. Main menu. Displa

COLLECTION SHT_25 squares
Fill up this sheet with 25 BOX TOPS. (no campbells labels or “bonus box tops”, please!) & you'll be donating this much cash without even opening your wallet! +.

Difference of two squares - presentations.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Difference of two ...

COLLECTION SHT_25 squares
Thank You! TEACHER________________________ STUDENT'S NAME: Fill up this sheet with 25 BOX TOPS. (no campbells labels or “bonus box tops”, please!) & you'll be donating this much cash without even opening your wallet! +. +. +. +. = $.50. +. +. +.

NON-SUPERSYMMETRIC FOUR-DIMENSIONAL ...
supersymmetry is not necessary in order to have a tachyon-free theory: an example .... In order to discuss the boundary conditions, we start by considering the ten- ..... where integration is extended over a fundamental domain of the complex ...

An algorithm portfolio based solution methodology to ...
9. Subassem bly. 10. CD Drive. 11. Laptop A. Assembly. 13. Laptop B. Assembly. 14 ... Supply chain for laptop family manufactured through PSC. S.R. Yadav et ...

pdf-1418\nerudas-garden-an-anthology-of-odes-discoveries-latin ...
... apps below to open or edit this item. pdf-1418\nerudas-garden-an-anthology-of-odes-discove ... w-pr-english-and-spanish-edition-by-pablo-neruda.pdf.

MRR: an Unsupervised Algorithm to Rank Reviews by ... - GitHub
Next steps: Others clustering techniques for graph;. Methods to select the most relevant reviews;. Segmented Bushy Path widely explored in text summarization;. Vinicius Woloszyn, Henrique D. P. dos Santos, et al. (UFRGS). MRR: an Unsupervised Algorit

An Efficient Geometric Algorithm to Compute Time ... - IEEE Xplore
An Efficient Geometric Algorithm to Compute Time-optimal trajectories for a Car-like Robot. Huifang Wang, Yangzhou Chen and Philippe Sou`eres.

The Magic of Magic Squares
third order magic square is similar to the nine points of inflection on an ... Some mathematicians call this formula “the most remarkable formula in mathemat-.