Find MOLS of order k and fill the rest of the columns :
Before filling the columns, we must first understand MOLS and how to find them.
MOLS (Mutually Orthogonal Latin Squares) are used for selecting a subset of factor combinations from a complete set. A Latin square of order n is an n x n matrix where no element appears more than once in a row and column.
Example-1 :
If S = {X, Y}, then Latin squares of order 2 will be :
X Y
Y X
and
Y X
X Y
Example-2 :
If S = {1, 2, 3}, then Latin squares of order 3 will be :
1 2 3
2 3 1
3 1 2
and
2 3 1
1 2 3
3 1 2
and
2 1 3
3 2 1
1 3 2
To construct a Latin square, create the first row with n distinct elements and fill the additional rows by permuting the first row. For example,
If S = {1, 2, 3, 4}, then a Latin square could be :
1 2 3 4
2 3 4 1
3 4 1 2
4 1 2 3
To create MOLS, let M1 and M2 be two Latin squares, each of order n.
Let M1 ( i, j ) and M2 ( i, j ) denote element at the ith row and jth column in Latin squares M1 and M2 respectively. Now, we create an n x n matrix L from M1 and M2 such that L ( i, j ) is M1 ( i, j ) M2 ( i, j ), i.e. we juxtapose corresponding elements of M1 and M2.
If each element in L appears exactly once, i.e. it is unique, then M1 and M2 are said to be mutually orthogonal Latin squares of order n.
For example,
1 2 3 2 3 1
Consider M1 = 2 3 1 and, M2 = 1 2 3
3 1 2 3 1 2
So, L will be constructed as follows:
12 23 31
L = 21 32 13
33 11 22
Since elements in L are unique, so, M1 and M2 are MOLS of order 3.
Note :
When n is a prime number or a power of a prime number, then MOLS(n) contains n -1 MOLS.
Also, MOLS do not exist for n = 2 and n = 6, however, they do exist for all other values greater than 2.
Now, we can find MOLS of order k in order to fill remaining columns. Number these MOLS as M1, M2, and so on.
Here, s < k for k > 1, where s = number of MOLS of order k. Fill Block 1 of column F3 with elements from column 1 of M1, Block 2 with elements from column 2 of M1, and so on.
If b > k, then reuse columns of M1 to fill rows in remaining (b-k) blocks. This process is repeated for columns F4 through Fn using MOLS M2 through Ms. If s < n – 2, then we can fill remaining columns by randomly selecting values of the factors.
For example,
If n = k = 3
Then MOLS of order 3 are :
1 2 3 1 2 3
M1 = 2 3 1 and, M2 = 3 1 2
3 1 2 2 3 1
We can fill remaining columns of the table using these MOLS. Refer to table shown below for a better understanding.
