Next Article in Journal
Dual-Word Embedding Model Considering Syntactic Information for Cross-Domain Sentiment Classification
Next Article in Special Issue
Personalized Movie Recommendations Based on a Multi-Feature Attention Mechanism with Neural Networks
Previous Article in Journal
Economic Dispatch for Smart Buildings with Load Demand of High Volatility Based on Quasi-Quadratic Online Adaptive Dynamic Programming
Previous Article in Special Issue
Subgraph Adaptive Structure-Aware Graph Contrastive Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Latin Matchings and Ordered Designs OD(n−1, n, 2n−1) †

1
School of Intelligent Systems Engineering, Shenzhen Campus of Sun Yat-sen University, Shenzhen 518107, China
2
School of Computer Science and Technology, Harbin Institute of Technology (Shenzhen), Shenzhen 518055, China
3
Institute of computing technology, Chinese Academy of Sciences, Beijing 100864, China
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 18th Conference in Autonomous Agents and Multiagent Systems (AAMAS’19).
Mathematics 2022, 10(24), 4703; https://doi.org/10.3390/math10244703
Submission received: 14 November 2022 / Revised: 7 December 2022 / Accepted: 7 December 2022 / Published: 11 December 2022

Abstract

:
This paper revisits a combinatorial structure called the large set of ordered design ( L O D ). Among others, we introduce a novel structure called Latin matching and prove that a Latin matching of order n leads to an L O D ( n 1 ,   n ,   2 n 1 ) ; thus, we obtain constructions for L O D ( 1 ,   2 ,   3 ) , L O D ( 2 ,   3 ,   5 ) , and L O D ( 4 ,   5 ,   9 ) . Moreover, we show that constructing a Latin matching of order n is at least as hard as constructing a Steiner system S ( n 2 ,   n 1 ,   2 n 2 ) ; therefore, the order of a Latin matching must be prime. We also show some applications in multiagent systems.

1. Introduction

Combinatorial designs have found applications in various fields, including experiment design, cryptography, and computer science. Some examples include the random pattern testing of VLSI chips, authentication code design, and the derandomization of algorithms [1,2,3]. Motivated by these applications, the theory of combinatorial designs has drawn much attention and has been rapidly developing for many years [4,5,6]. On the other hand, the study of combinatorial designs promotes the study of geometry, group theory, coding theory, and other related fields of mathematics. In this paper, we revisit a combinatorial structure called ordered design, and we provide new such designs and their new applications.
An ordered design with parameters t ,   n ,   v , written as O D ( t ,   n ,   v ) , is an n × v t t ! array with v entries, such that each column has n distinct entries, and any t rows contain each column tuple of t distinct entries exactly once [7,8,9]. A large set of ordered design  O D ( t ,   n ,   v ) , written as L O D ( t ,   n ,   v ) , is a collection of O D ( t ,   n ,   v ) , such that any n-permutation of [ v ] appears in exactly one OD (as one of its column) [7,10]. Throughout, [ v ] = { 1 ,   ,   v } .
This paper mainly focuses on O D ( t ,   n ,   v ) and L O D ( t ,   n ,   v ) where t = n 1 , and we abbreviate O D ( n 1 ,   n ,   v ) and L O D ( n 1 ,   n ,   v ) as O D ( n ,   v ) and L O D ( n ,   v ) , respectively.
Example 1. 
An O D ( 3 ,   5 ) is as follows.
1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5
2 3 4 5 1 3 4 5 1 2 4 5 1 2 3 5 1 2 3 4
3 5 2 4 4 1 5 3 5 4 1 2 3 5 2 1 2 1 4 3
The main agenda of this paper is investigating the existence of O D ( n ,   2 n 1 ) . Teirlinck [10] proved the existence of L O D ( n 1 ,   2 n 2 ) and hence O D ( n 1 ,   2 n 2 ) for prime n (see Section 3 for an introduction). However, the existence of O D ( n 1 ,   2 n 2 ) is necessary but insufficient for the existence of O D ( n ,   2 n 1 ) (Lemma 1).
A closely related problem is the existence of perpendicular array P A ( n ,   2 n 1 ) (see a definition in Section 2), which was settled affirmatively as early as the 1990s [7]. Recently, Jin [11] reported two explicit constructions of P A ( n ,   2 n 1 ) by utilizing the well-known lexicographic matching and modular matching between [ 2 n 1 ] n 1 and [ 2 n 1 ] n , i.e., the set of ( n 1 ) -element subsets of [ 2 n 1 ] and the set of n-element subsets of [ 2 n 1 ] .
The main contribution of this paper is as follows. First, we introduce a novel and interesting notion called Latin matching. The Latin matching of order n is a perfect matching between [ 2 n 1 ] n 1 and [ 2 n 1 ] n with several remarkable properties; see its definition in Section 2. We construct Latin matchings of orders 2 ,   3 ,   5 . Case n = 5 is the most nontrivial for which we apply the Hamming code Hamming ( 8 ,   4 ,   4 ) or, equivalently, the Steiner system S ( 3 ,   4 ,   8 ) . We then show that a Latin matching of order n leads to an L O D ( n ,   2 n 1 ) ; thus, we obtain L O D ( 2 ,   3 ) ,   L O D ( 3 ,   5 ) ,   L O D ( 5 ,   9 ) . In particular, L O D ( 5 ,   9 ) has not been reported in literature. In addition, we show that constructing a Latin matching of order n is at least as hard as constructing a Steiner system S ( n 2 ,   n 1 ,   2 n 2 ) (a notoriously difficult problem); as one corollary, the order of a Latin matching must be prime.
A byproduct of our work is a set of 4 mutually orthogonal Latin squares (MOLS) of order 5 (built from our L O D ( 3 ,   5 ) ). The existence of 4 MOLS of order 5 is known [8](p. 163), but our construction might be simpler (Remark 5). Another byproduct is an L O D 6 ( 3 ,   9 ,   9 ) (built from our L O D ( 5 ,   9 ) ; see Section 7.2). An O D λ ( t ,   n ,   v ) is an n × ( λ v t t ! ) array with v entries such each column has n distinct entries and any t rows contain each column tuple of t distinct entries exactly λ times [7,8]. An L O D λ ( t ,   n ,   v ) , is a collection of O D λ ( t ,   n ,   v ) , such that any n-permutation of [ v ] appears in exactly one OD (as one of its column) [7,10].
Applications of Latin matchings and related designs in multiagent systems (e.g., hat guessing games, scheduling tournaments, secret sharing schemes) are discussed in Section 7.
The Latin matching of order 5 is highly symmetric (e.g., cyclic and flipping-invariant; see Figure 1) and deserves more attention in the filed of combinatorial design in the future.

2. Preliminaries

Let G ( n ,   v ) be the graph whose vertices are the n-permutations of [ v ] , and two vertices are connected if their Hamming distance is 1. The Hamming distance of ( a 1 ,   ,   a n ) and ( b 1 ,   ,   b n ) is the number of i, such that a i b i .
We assume that the reader is familiar with the maximal independent (vertex) set (MIS). α ( G ) denotes the size of MIS of G. The following propositions are trivial (proof omitted).
Proposition 1. 
The columns of an O D ( n ,   v ) constitute an independent set of G ( n ,   v ) .
Proposition 2. 
α ( G ( n ,   v ) ) v t t ! .
Proposition 3. 
α ( G ( n ,   v ) ) = v t t ! if and only if there exists an O D ( n ,   v ) . If the equality holds, an MIS of G ( n ,   v ) corresponds to an O D ( n ,   v ) .
As G ( n ,   v ) has v n n ! = v t t ! ( v n + 1 ) vertices, an L O D ( n ,   v ) is a collection of v n + 1 disjoint O D ( n ,   v ) where two O D ( n ,   v ) are disjoint if they do not share a common column.
Proposition 4. 
An L O D ( n ,   v ) is a vertex coloring of G ( n ,   v ) using v n + 1 colors.
We now introduce a notion called Latin function that interprets OD from another angle. A Latin function (LF) with parameters n ,   v , written as L F ( n ,   v ) , maps each ( n 1 ) -permutation ( a 1 ,   ,   a n 1 ) of [ v ] to a number f ( a 1 ,   ,   a n 1 ) [ v ] \ { a 1 ,   ,   a n 1 } , admitting the following property: If two ( n 1 ) -permutations have Hamming distance 1, their images under f are distinct. This property is referred to as the Latin property.
Clearly, an O D ( n ,   v ) is equivalent to an L F ( n ,   v ) ; given an O D ( n ,   v ) A, we can choose any row of A to be the output and the remaining n 1 rows as the input, and define a Latin function L F ( n ,   v ) ; given a L F ( n ,   v ) f, we can reversely obtain an O D ( n ,   v ) .
A symmetric Latin function (SLF) with parameters n ,   v , written as S L F ( n ,   v ) , refers to an L F ( n ,   v ) admitting the following symmetric property: if ( a 1 ,   ,   a n 1 ) is a permutation of ( b 1 ,   ,   b n 1 ) , then f ( a 1 ,   ,   a n 1 ) = f ( b 1 ,   ,   b n 1 ) .
A Latin matching (LM) with parameters n ,   v , written as L M ( n ,   v ) , refers to an S L F ( n ,   v ) admitting the following injective property: if { a 1 ,   ,   a n 1 } { b 1 ,   ,   b n 1 } , it holds that { a 1 ,   ,   a n 1 ,   f ( a 1 ,   ,   a n 1 ) } { b 1 ,   ,   b n 1 ,   f ( b 1 ,   ,   b n 1 ) } . In particular, for v = 2 n 1 , the Latin matching L M ( n ,   v ) = L M ( n ,   2 n 1 ) is called a Latin matching of order n. Due to the injective property, F : { a 1 ,   ,   a n 1 } { a 1 ,   ,   a n 1 ,   f ( a 1 ,   ,   a n 1 ) } is a perfect matching from [ 2 n 1 ] n 1 to [ 2 n 1 ] n . This suggests the name “Latin matching”.
For 1 t < n < v , a perpendicular array with parameters λ ; t ,   n ,   v , denoted by P A λ ( t ,   n ,   v ) or P A ( t ,   n ,   v ) when λ = 1 , is an n by λ v t matrix over [ v ] such that: (I) all entries in any specific column are distinct, and (II) each set of t rows contain each t-element subset of [ v ] as a column exactly λ times [7,8]. A large set of perpendicular array  P A λ ( t ,   n ,   v ) , written as L P A λ ( t ,   n ,   v ) or L P A ( t ,   n ,   v ) when λ = 1 , is a collection of P A λ ( t ,   n ,   v ) such that any n-permutation of [ v ] appears in exactly one PA (as one of its column) [7].
Lemma 1. 
An O D ( t ,   n ,   v ) implies an O D ( t 1 ,   n 1 ,   v 1 ) .
Proof. 
Select those columns in which the last row is v, and delete the last row.    □

3. Related Work

Some important known results about ODs are summarized in the following.
  • Teirlinck,1988 [10] If v = p 1 α l p s α s , where, p 1 ,   ,   p s are distinct primes, satisfying α i ( p i 1 ) > t for all i, there is an L O D ( t ,   t + 1 ,   t + v ) . As a corollary, there are infinitely many L O D ( n ,   v ) for all n, and there is an L O D ( n 1 ,   2 n 2 ) for all prime n.
  • Teirlinck and Lindner, 1988 [12] For v 3 ,   v { 6 ,   14 ,   62 } , there is an L O D ( 2 ,   3 ,   v ) . There is an O D ( 2 ,   3 ,   6 ) , but no L O D ( 2 ,   3 ,   6 ) exists (this is the 36-generals problem).
  • Teirlinck, 1990 [13] For odd v 4 ,   v 7 , there is an O D ( 3 ,   4 ,   v ) .
  • Teirlinck, 1992 [7] (this is a survey)
    (a)
    There is no O D ( 3 ,   4 ,   7 ) (page 569). We verified this result.
    (b)
    An O D ( 2 ,   n ,   n ) exists if and only if an affine plane of order n exists (page 575).
    (c)
    An L O D ( t ,   n ,   v ) implies an L O D ( t 1 ,   n 1 ,   v 1 ) (page 570).
    (d)
    An O D λ ( t ,   v ,   v ) implies an L O D λ ( t ,   v ,   v ) (page 571).
    (e)
    An L O D ( 2 ,   n ,   q ) exists for every prime power q n ; an L O D ( 3 ,   n ,   q + 1 ) exists for every prime power q n 1 ; an L O D ( 4 ,   n ,   11 ) exists for 4 n 11 ; and an L O D ( 5 ,   n ,   12 ) exists for 5 n 12 (page 578).
  • Ray-Chaudhuri and Zhu, 1997 [14] If an L O D λ ( t ,   t + 1 ,   v ) and an L O D λ ( t ,   t + 1 ,   v ) exists, such that ( v t ) / λ = ( v t ) / λ , then an L O D λ + λ ( t ,   t + 1 ,   v + v t ) exists. In particular, if an L O D λ ( t ,   t + 1 ,   t + v ) exists, then an L O D s λ ( t ,   t + 1 ,   t + s v ) exists for all positive s. Moreover, for any n ,   v , there is an L O D λ ( n ,   v ) for some finite λ .
Ordered design (OD) is closely related to the perpendicular array (PA) and orthogonal array (OA). In fact, in the seminal work of Rao [9], OD and PA are called OA Types I and II, respectively. Moreover, it is a trivial fact that every OD is a PA. OA has been studied even more extensively than OD and PA; the definition and an exposition of this structure can be found in [4]. Many connections between OA and OD are shown in [7,9,14]. Some important known results about PA, especially P A ( t ,   t + 1 ,   v ) , are introduced in the following. Among others, there exist P A 3 ( 3 ,   9 ,   9 ) [15], and P A ( 3 ,   5 ,   5 ) , P A ( 3 ,   8 ,   8 ) , P A ( 3 ,   32 ,   32 ) , P A 2 ( 4 ,   5 ,   5 ) , P A 4 ( 4 ,   9 ,   9 ) , P A 2 ( 4 ,   5 ,   11 ) [16]. The authors in Ref. [17] showed that, for an even v, there exists a P A ( 3 ,   4 ,   v ) if and only if v 0 ( mod 6 ) . Moreover, there exist P A ( 3 ,   4 ,   v ) for v { 5 ,   7 ,   11 ,   13 ,   17 ,   23 ,   25 ,   29 ,   49 ,   53 ,   65 ,   85 ,   89 ,   97 } , and there is a P A 3 ( 3 ,   4 ,   v ) if and only if v 4 . In Ref. [11], the authors showed two explicit constructions of P A ( t ,   t + 1 ,   2 t + 1 ) . The survey in [7] showed that a P A λ ( t ,   k ,   k ) implies an L P A λ ( t ,   k ,   k ) (page 571), and there exist (1) L P A ( 3 ,   k ,   8 ) for 3 k 8 ; L P A ( 5 ,   k ,   8 ) for 5 k 8 ; (2) L P A ( 3 ,   k ,   32 ) for 3 k 32 ; L P A ( 29 ,   k ,   32 ) for 29 k 32 ; and (3) L P A ( t ,   t + 1 ,   t + ( t + 1 ) / d ) for all d dividing t + 1 .
Another combinatorial design closely related to OD/LOD is the Steiner system (SS). A Steiner system (SS) with parameters t ,   n ,   v , written as S ( t ,   n ,   v ) , is a v-element set S together with a set of n-element subsets of S, called blocks, with the property that each t-element subset of S is contained in exactly one block [5,8,18]. Many connections between OD/LOD and SS are shown in [7]; indeed, an OD is called an ordered Steiner system by Teirlinck [10]. Important existing results of SS are introduced in Section 6. Here, we mention an astonishing result on this topic: Keevash [6] showed that, for a fixed t ,   n , there exist S ( t ,   n ,   v ) for a large enough v satisfying certain necessary conditions.

4. Major Findings

This section presents two major findings of this paper. First, there exist Latin matchings of order 2, 3,5. Second, an L O D ( n ,   2 n 1 ) can be constructed from an L M ( n ,   2 n 1 ) .
We first show how to construct L M ( 5 ,   9 ) from Hamming ( 8 ,   4 ,   4 ) .
A Latin function f is cyclic if
f ( { i 1 + 1 ,   ,   i n 1 + 1 } ) f ( { i 1 ,   ,   i n 1 } ) + 1 ,  
where the numbers are taken modulo by ( 2 n 1 ) .
We constructed an L M ( 5 ,   9 ) f that was cyclic. Since cyclic, the function can be indicated by 9 4 / 9 = 14 values. We used 14 pictures to illustrate these values, as shown in Figure 1. Each picture contains 9 small circles labelled with 1 to 9 lying in clockwise order, four of which are solid (black) and four of which are hollow (white) except for the ninth small circle, which is special. If the four solid circles are labeled by i 1 ,   i 2 ,   i 3 ,   i 4 , this picture indicates that f ( { i 1 ,   i 2 ,   i 3 ,   i 4 } ) = 9 . For example, the first picture indicates that f ( { 3 ,   4 ,   5 ,   6 } ) = 9 .
Each picture can be represented by a binary word a 1 a 2 a 8 (e.g., 00111100 and 01011010 for the first two pictures) – if a i = 1 , the small circle labelled as i is solid; otherwise, it is hollow. The key part of this construction lies in selecting these binary words. We use the 14 codewords of Hamming ( 8 ,   4 ,   4 ) defined in the following equation that are not all zeros and not all ones.
a 5 = a 1 a 2 a 3 ,   a 6 = a 1 a 2 a 4 ,   a 7 = a 1 a 3 a 4 ,   a 8 = a 2 a 3 a 4 .
Proposition 5. 
For each 4-permutation ( a 1 ,   ,   a 4 ) of [ 9 ] = { 1 ,   ,   9 } , the value of f ( a 1 ,   ,   a 4 ) is well-defined by the above figure and belongs to [ 9 ] \ { a 1 ,   ,   a 4 } .
Proof. 
For each 4-element subset { i 1 ,   i 2 ,   i 3 ,   i 4 } [ 9 ] 4 , we prove that f ( { i 1 ,   i 2 ,   i 3 ,   i 4 } ) is indicated by one of the above pictures. These 4-element subsets can be partitioned into 9 4 / 9 = 14  groups. Those subsets that are equivalent under cyclic rotation are in the same group (so, a group is { i 1 + j ,   i 2 + j ,   i 3 + j ,   i 4 + j } 1 j 9 ).
On the other hand, the positions of the solid circles among the 14 pictures are distinct under cyclic-rotating; see Figure 1. So, each group is taken care by exactly one picture.    □
Lemma 2. 
Function f defined above is indeed an L M ( 5 ,   9 ) .
Proof. 
A well-known property of Hamming ( 8 ,   4 ,   4 ) is that the Hamming distance between the codewords is at least 4. This property is useful in proving the Latin property of f:
Suppose to the opposite that f is not Latin. There should be two 4-element subsets A ,   B of [ 9 ] with exactly three common elements such that they are both mapped to 9 under f. If we translate A and B into w length 8 binary codes a and b, we know that d ( a ,   b ) 4 according to the well-known property of Hamming ( 8 ,   4 ,   4 ) mentioned above, where d ( a ,   b ) denotes the Hamming distance between a and b. On the other hand, d ( a ,   b ) = 2 since sets A ,   B are of size 4 and they share exactly three common elements, which is contradictory.
The symmetric property is naturally admitted by f according to the construction of f. The positions of four hollow circles in the 14 pictures are distinct under cyclic rotation (see Figure 1), which implies the injective property of f. Altogether, f is a Latin matching.    □
Remark 1. 
The Hamming code given by (2) is not the original Hamming code – the 8 bits are rearranged here, and it admits a symmetric property that is not admitted by the original one:
if a 1 a 8 is a codeword, its reverse a 8 a 1 is also a codeword.
We do not know whether this variant of Hamming code has been found in literature.
Remark 2. 
In addition to the Latin, symmetric, injective, and cyclic properties, the following properties of f are also noteworthy. Recall bijection F : { a 1 ,   ,   a 4 } { a 1 ,   ,   a 4 ,   f ( a 1 ,   ,   a 4 ) } from [ 9 ] 4 to [ 9 ] 5 . Suppose F maps A to B. We claim that
(1) F maps [ 9 ] / B to [ 9 ] / A , and
(2) F maps { 9 a a A } to { 9 b b B } .
The first claim follows from the (trivial) fact that
if a 1 a 8 is a codeword, its flip a 1 ¯ a 8 ¯ is also a codeword,
where x ¯ = 1 x . The second claim follows from the reverse property in Remark 1.
The Hamming code Hamming ( 8 ,   4 ,   4 ) is equivalent to the Steiner system S ( 3 ,   4 ,   8 ) . For constructing Latin matchings of higher orders, it is actually more appropriate to use Steiner systems than Hamming codes. We show the reasons in Section 6.
Two more constructions of L M ( 5 ,   9 ) . The L M ( 5 ,   9 ) shown in Figure 1 is not the unique L M ( 5 ,   9 ) . Two other cyclic Latin matchings of order 5 are drawn in Figure 2, which are found by using computer programs. These two matchings can also be constructed from codewords of different Hamming ( 8 ,   4 ,   4 ) s.
Constructions of an L M ( 2 ,   3 ) and an L M ( 3 ,   5 ) .
An L M ( 2 ,   3 ) f is easy to find. For example,
f ( { 1 } ) = 2 ,   f ( { 2 } ) = 3 ,   f ( { 3 } ) = 1 .
This LM is also cyclic.
Next, we give a cyclic L M ( 3 ,   5 ) . We use two binary codes of length 4 in this case, one is 0110 and the other is 1001, which means that f ( { 2 ,   3 } ) = 5 and f ( { 1 ,   4 } ) = 5 . We leave it as an easy exercise for the reader to verify that f is indeed an L M ( 3 ,   5 ) .
As a summary of this subsection, we showed that
Theorem 1. 
There exist (cyclic) Latin matchings of orders 2 ,   3 ,   5 .

4.1. Construction of LOD from LM

Lemma 3. 
A Latin matching of order n implies an L O D ( n ,   2 n 1 ) .
Proof. 
Let f be a Latin matching of order n (i.e., f is a L M ( n ,   2 n 1 ) ). Define
I 1 = ( f ( { i 1 ,   ,   i n 1 } ) ,   i 1 ,   i 2 ,   ,   i n 1 ) { i 1 ,   ,   i n 1 } [ 2 n 1 ] n 1 ,   I 2 = ( i 1 ,   f ( { i 1 ,   ,   i n 1 } ) ,   i 2 ,   ,   i n 1 ) { i 1 ,   ,   i n 1 } [ 2 n 1 ] n 1 ,   I n = ( i 1 ,   i 2 ,   ,   i n 1 ,   f ( { i 1 ,   ,   i n 1 } ) ) { i 1 ,   ,   i n 1 } [ 2 n 1 ] n 1 .
I j contains a set of vertices of G ( n ,   2 n 1 ) . The following facts imply an n-coloring of G ( n ,   2 n 1 ) , which further implies an L O D ( n ,   2 n 1 ) by Proposition 4.
  • I 1 ,   ,   I n are independent sets of G ( n ,   2 n 1 ) .
  • I 1 ,   ,   I n are disjoint and they contain all the vertices of G ( n ,   2 n 1 ) .
We prove the two facts in the following.
Fact 1 follows immediately from the Latin property of f.
To prove Fact 2, we only need to prove the disjointness part. If I 1 ,   ,   I n are disjoint, we can compute that I 1 I n has the same amount of vertices as G ( n ,   2 n 1 ) .
Now, suppose that I j and I k share a vertex ( u 1 ,   ,   u n ) .
Denote J = { u 1 ,   ,   u n } \ u j and K = { u 1 ,   ,   u n } \ u k . Clearly, J K .
As ( u 1 ,   ,   u n ) I j , we know u j = f ( J ) . As ( u 1 ,   ,   u n ) I k , we know u k = f ( K ) .
Recall the matching F : { a 1 ,   ,   a n 1 } { a 1 ,   ,   a n 1 ,   f ( a 1 ,   ,   a n 1 ) } in the definition of LM. We see F ( J ) = J f ( J ) = J u j = { u 1 ,   ,   u n } = K u k = K f ( K ) = F ( K ) . Therefore, F is not a perfect matching; the injective property is violated, which is contradictory.    □
The coloring of G ( n ,   v ) in the above proof can be summarized as follows. For any vertex ( u 1 ,   ,   u n ) of G ( n ,   2 n 1 ) (according to the bijective property), there must be a unique i [ n ] , such that F ( { u 1 ,   ,   u n } \ u i ) = { u 1 ,   ,   u n } , and we color the vertex by i.
Corollary 1. 
There exist L O D ( 2 ,   3 ) ,   L O D ( 3 ,   5 ) ,   L O D ( 5 ,   9 ) .
Remark 3. 
The approach for constructing LODs from LMs only works for the case v = 2 n 1 . When v 2 n , an L M ( n ,   v ) does not imply an L O D ( n ,   v ) . When v 2 n 2 , there is actually no L M ( n ,   v ) . (As v n 1 > v n , no SLF can satisfy the injective property.)
Remark 4. 
Graph G ( n ,   2 n 1 ) can be reformulated as an incomplete n-dimensional hypercube, and coloring this graph by n colors is a variant of a high-dimensional Latin square problem [1,19].
We build the incomplete hypercube as follows. Initially, this hypercube has side length 2 n 1 and consists of ( 2 n 1 ) n unit cells, each of which is denoted by a coordinate ( a 1 ,   ,   a n ) where a 1 ,   ,   a n [ 2 n 1 ] . Then, we remove cells for which a 1 ,   ,   a n are not distinct. Clearly, the vertices of G ( n ,   v ) correspond to the remaining cells, and two vertices are connected if their corresponding cells are in the same orthogonal line (lines that are parallel to one of the n axes).
Finding an n-coloring of G ( n ,   v ) is equivalent to coloring the cells of the incomplete hypercube such that the colors of cells in any orthogonal line are a permutation of all n colors.
Unlike the complete hypercube case, the above incomplete case does not always has a solution.

5. An Orthogonal Property of the OD ( n ,   2 n 1 ) ’s Obtained from LM ( n ,   2 n 1 )

Recall I 1 ,   ,   I n in the proof of Lemma 3, which are independent sets of G ( n ,   2 n 1 ) . We saw that I 1 ,   ,   I n constitute an L O D ( n ,   2 n 1 ) . So, each I j ( 1 j n ) gives an O D ( n ,   2 n 1 ) , denoted by A j (each element in I j serves as a column of A j ). We state that
Theorem 2. 
n ODs A 1 ,   ,   A n are pairwise orthogonal to each other.
See Definition 1 for the concept of “orthogonal” between O D ( n ,   2 n 1 ) ’s.
Definition 1. 
An O D ( n ,   2 n 1 ) is canonical if its columns are sorted in lexicographical order; see Example 1. As the first n 1 rows are fixed (after sorting), a canonical O D ( n ,   2 n 1 ) A can be indicated by its last row (i.e., the n-th row) A n , 1 ,   ,   A n , c , where c = ( 2 n 1 ) ! / n ! .
Two canonical O D ( n ,   2 n 1 ) s A ,   B are orthogonal if for every pair ( x ,   y ) such that x y ,   x [ 2 n 1 ] ,   y [ 2 n 1 ] , the size of { i A n , i = x ,   B n , i = y } is a constant c ( 2 n 1 ) ( 2 n 2 ) .
Moreover, two O D ( n ,   2 n 1 ) s are orthogonal if their canonical forms are orthogonal.
Proof of Theorem 2 
First, we introduce two matrices, X and Y. We use X to represent the submatrix with the first n 1 rows of any canonical O D ( n ,   2 n 1 ) . For ease of discussion, assume that A 1 ,   ,   A n are already in canonical form. Therefore, A 1 ,   ,   A n share the same first n 1 rows, that is X. We choose the last row of A i ( 1 i n ) to be the i-th row of Y. Denote by S k the set of numbers in the k-th column of X; formally, S k = { X 1 ,   k ,   ,   X n 1 ,   k } . □
Claim 1. The k-th column of Y is a permutation of [ 2 n 1 ] \ S k . Thus, every column of [ X Y ] is a permutation of [ 2 n 1 ] . (Example: for n = 5 , the first column is ( 1 ,   2 ,   3 ,   4 ,   6 ,   9 ,   5 ,   8 ,   7 ) T .)
Proof. 
Abbreviate X 1 , k ,   ,   X n 1 , k ,   Y 1 , k ,   ,   Y n , k as x 1 ,   ,   x n 1 ,   y 1 ,   ,   y n , respectively.
Clearly, y 1 ,   ,   y n belong to [ 2 n 1 ] \ S k . It remains to show that y i y j ( i < j ) .
Due to the construction of Y and (4),
x i = f ( x 1 ,   ,   x i 1 ,   y i ,   x i + 1 ,   ,   x n 1 ) ( i < n )
y n = f ( x 1 ,   x 2 ,   ,   x n 1 ) .
Case 1: i < j < n . We prove it by contradiction. Suppose y i = y j = e . Applying (5), we obtain x i = f ( S k { e } \ { x i } ) and x j = f ( S k { e } \ { x j } ) , which means S k { e } \ { x i } and S k { e } \ { x j } are both mapped to S k { e } under F : { a 1 ,   ,   a n 1 } { a 1 ,   ,   a n 1 ,   f ( a 1 ,   ,   a n 1 ) } ,   violating the injective property of f.
Case 2: i < j = n . The proof is similar to Case 1. Suppose y i = y n = e ( i < n ) . Applying (5) and (6), we obtain x i = f ( S k { e } \ { x i } ) and e = f ( S k ) , which means both S k and S k { e } \ { x i } are mapped to S k { e } , violating the injective property of f.    □
Claim 2. All columns of Y are distinct, where Y is the submatrix of Y without the last row.
Proof. 
Fix any set S = { x 1 ,   ,   x n 1 } [ 2 n 1 ] n 1 and denote z = f ( x 1 ,   ,   x n 1 ) . According to the definition of X, exactly one column of X equals ( x π 1 ,   ,   x π n 1 ) T for each permutation ( π 1 ,   ,   π n 1 ) of [ n 1 ] . Let Y π 1 ,   ,   π n 1 denote the column of Y for which this column of X equals ( x π 1 ,   ,   x π n 1 ) T . A simple connection between Y 1 ,   ,   n 1 and Y π 1 ,   ,   π n 1 is as follows.
If Y 1 ,   ,   n 1 = ( y 1 ,   ,   y n 1 ,   z ) T ,   then Y π 1 ,   ,   π n 1 = ( y π 1 ,   ,   y π n 1 ,   z ) T .
We prove this connection in the following. Because Y 1 ,   ,   n 1 = ( y 1 ,   ,   y n 1 ,   z ) T , by the definition of X and Y, we have x i = f ( S { y i } \ { x i } ) ( 1 i n 1 ) . This implies that x π i = f ( S { y π i } \ { x π i } ) ( 1 i n 1 ) , which means Y π 1 ,   ,   π n 1 = ( y π 1 ,   ,   y π n 1 ,   z ) T .
Let S = [ 2 n 1 ] \ ( S { z } ) . By the injective property of f, if S is taken over [ 2 n 1 ] n 1 , set S { z } is taken over by [ 2 n 1 ] n and thereby S would be taken over by [ 2 n 1 ] n 1 . On the other hand, due to the connection in (7), for any fixed S , each permutation of S appears as a column of Y . Together, each ( n 1 ) -permutation of [ 2 n 1 ] appears once in Y . This further implies Claim 2, by counting the number of ( n 1 ) -permutations of [ 2 n 1 ] .    □
Claim 3.Y is an O D ( n ,   2 n 1 ) .
Proof. 
It suffices to show that the Hamming distance between two distinct columns of Y is at least 2. Following Claim 2, the distance is at least 1. We prove that the distance is not 1. Suppose that Y has two columns Y j ,   Y k with Hamming distance 1.
Case 1: Y i ,   j Y i ,   k for some i < n (i.e., the difference is not at the last row).
Denote the j-th and k-th column of Y by ( y 1 ,   ,   y n ) T and ( y 1 ,   ,   y i 1 ,   y i ,   y i + 1 ,   ,   y n ) T , respectively. Let S = [ 2 n 1 ] \ { y 1 ,   ,   y n } . Via Claim 1, the set of elements in the j-th column of X is S, and that in the k-th column of X is S { y i } \ { y i } . Following the definition of X and Y, we obtain f ( S ) = y n = f ( S { y i } \ { y i } ) , violating the Latin property of f.
Case 2: Y n ,   j Y n ,   k (i.e., the difference is at the last row).
Denote the j-th and k-th column of Y by ( y 1 ,   ,   y n ) T and ( y 1 ,   ,   y n 1 ,   y n ) T , respectively. Let S = [ 2 n 1 ] \ { y 1 ,   ,   y n 1 } . By Claim 1, the set of elements in the j-th column of X is S \ { y n } , and that in the k-th column of X is S \ { y n } . Following the definition of X and Y, we obtain f ( S \ { y n } ) = y n and f ( S \ { y n } ) = y n , violating the injective property of f.
As a consequence of Claim 3, A 1 ,   ,   A n are pairwise orthogonal to each other.    □
Remark 5. 
For n = 3 , each of the independent sets I 1 ,   I 2 ,   I 3 (constructed from the L M ( 3 ,   5 ) f introduced above Theorem 1) represents a Latin square of order 5. To this end, the diagonal should be filled with 1 ,   ,   5 in these squares; see Figure 3 for an illustration. As a corollary of Theorem 2, these three Latin squares are mutually orthogonal Latin squares (MOLS) of order 5.
Moreover, if we define another Latin square M to be M i ,   j = ( j i + 5 ) mod 5 + 1 , it can be verified that M together with the three Latin squares above are a set of 4 MOLS of order 5. Although a set of 4 MOLS of order 5 is known [8](p. 163), our construction might be easier to remember: it is simply built upon the Latin matching that is described by the two codewords of 0110 and 1001.
Remark 6. 
In the proof of Theorem 2, we showed that matrix Y is an O D ( n ,   2 n 1 ) , where the i-th row of Y is the last row of A i ( 1 i n ) . We can further prove that Y is actually the same OD as A n when the underlying Latin matching f admits the “flip property” defined below. (Because this equivalence between Y and A n is trivial, we leave the easy proof as an exercise to the readers.)
Recall Remark 2. Recall F : { a 1 ,   ,   a n 1 } { a 1 ,   ,   a n 1 ,   f ( a 1 ,   ,   a n 1 ) } from [ 2 n 1 ] n 1 to [ 2 n 1 ] n . f has the flip property if: F ( A ) = B implies F ( [ 2 n 1 ] \ B ) = [ 2 n 1 ] \ A . Equivalently, f has the flip property if: f ( S ) = z implies f ( [ 2 n 1 ] \ ( S { z } ) ) = z .
Our L M ( 2 ,   3 ) does not admit the flip property.

6. Connections between SLF and SS with Implications

SLFs are special LFs, whereas LFs are equivalent to ODs. This section provides some necessary conditions for the existence of S L F ( n ,   2 n 1 ) and S L F ( n ,   v ) .
First, we show a lemma that sandwiches an SLF between two Steiner systems.
In this paper, we mainly focus on S ( n 1 ,   n ,   v ) and it as S ( n ,   v ) .
Example 2. 
The 14 codewords used in drawing Figure 1 constitute an S ( 4 ,   8 ) . A proof is as follows. Consider the 3-element subsets of [ 8 ] . We prove that each subset is contained as a subset of exactly one block (a block is corresponding to a codeword here). First, applying the fact that the Hamming distance of the codewords is at least 4, each subset is contained in at most one block. Therefore, the 14 blocks cover 14 × 4 = 56 different 3-element subsets of [ 8 ] . Further, since the number of 3-elements of [ 8 ] is 8 3 = 56 , each 3-element subset of [ 8 ] is contained in exactly one block.
Lemma 4. 
An S ( n ,   v ) implies an S L F ( n ,   v ) , and an S L F ( n ,   v ) implies an S ( n 1 ,   v 1 ) .
Proof. 
First, given an S ( n ,   v ) , denoted by S , we construct an S L F ( n ,   v ) . For each block B = { a 1 ,   ,   a n } in S and each i [ n ] , define f ( B \ { a i } ) = a i . Check that the image of every ( n 1 ) -element subset of [ v ] is determined, since S is an S ( n ,   v ) . We now prove by contradiction that f is Latin and hence an S L F ( n ,   v ) . Suppose that f is not Latin. This implies that there exist { b 1 ,   ,   b n 2 ,   c } and { b 1 ,   ,   b n 2 ,   d } that are mapped to the same element a, which means that we have two blocks { b 1 ,   ,   b n 2 ,   c ,   a } and { b 1 ,   ,   b n 2 ,   d ,   a } in S . It follows that { b 1 ,   ,   b n 2 ,   a } is contained by two blocks, which is contradictory.
Next, given an S L F ( n ,   v ) , denoted by f, we construct an S ( n 1 ,   v 1 ) . Because f is an L F ( n ,   v ) and an L F ( n ,   v ) is equivalent to an O D ( n ,   v ) , function f is equally likely to take any value among 1 ,   ,   v . So, the number of ( n 1 ) -element subsets of [ v ] that are mapped to value v is v n 1 / v . Denote m = v n 1 / v . Each such subset mapped to v can be described by a binary string of length v 1 that contains ( n 1 ) 1’s. Let S be the set of these m strings (each called a block). We claim that S is an S ( n 1 ,   v 1 ) . The proof is as follows. Because f is Latin, each ( n 2 ) -element subset of [ v 1 ] is contained in at most one block. This further implies that the blocks in S cover m ( n 1 ) = v n 1 ( n 1 ) / v = v 1 n 2 different ( n 2 ) -element subsets of [ v 1 ] . However, the number of ( n 2 ) -element subsets of [ v 1 ] is v 1 n 2 . Therefore, each ( n 2 ) -element subset is contained in exactly one block.    □
Applying Lemma 4, we can rapidly derive a few results about SLF from the studies of SS, which are shown below. Designing SSs is notoriously difficult. Very little is known about the existence of SS, especially for t > 5 .
Proposition 6.
A necessary condition for the existence of S L F ( n ,   2 n 1 ) is that n is a prime.
As a corollary, the order of a Latin matching must be a prime.
Proof. 
If an S L F ( n ,   2 n 1 ) exists, there must be an S ( n 1 ,   2 n 2 ) according to Lemma 4. Moreover, it is known that if S ( t + 1 ,   v ) exists, gcd ( v t ,   lcm ( 1 ,   ,   t + 1 ) ) = 1 [7]. In particular, if S ( n 1 ,   2 n 2 ) exists, gcd ( n ,   lcm ( 1 ,   ,   n 1 ) ) = 1 , i.e., n is a prime.    □
Proposition 7.
1. There is an S L F ( 6 ,   12 ) .
2. There is no S L F ( 11 ,   21 ) . Therefore, a Latin matching of order 11 does not exist.
3. There is no S L F ( 13 ,   25 ) . Therefore, a Latin matching of order 13 does not exist.
Proof. 
Applying Lemma 4 with the existence of S ( 6 ,   12 ) [18], we obtain Part 1.
Since there is no S ( 5 ,   15 ) [20], there is no S ( 5 + 5 ,   15 + 5 ) = S ( 10 ,   20 ) .
Since there is no S ( 5 ,   17 ) [21], there is no S ( 5 + 7 ,   17 + 7 ) = S ( 12 ,   24 ) .
Applying these with Lemma 4, we obtain Parts 2 and 3, respectively.    □
Proposition 8. 
An S L F ( n ,   2 n ) exists if and only if S ( n ,   2 n ) exists.
Proof. 
Use Lemma 4 with the interesting fact that S ( n ,   2 n ) exists if and only if S ( n 1 ,   2 n 1 ) exists [22].    □
We were most curious about the existence of S L F ( n ,   2 n 1 ) (for prime n). Using Lemma 4, one might be tempted to design an S ( n ,   2 n 1 ) , in order to find an S L F ( n ,   2 n 1 ) . However, there is no S ( n ,   2 n 1 ) according to the division condition gcd ( v t ,   lcm ( 1 ,   ,   t + 1 ) ) = 1 (here, v t = t + 1 = n ). So, we have to approach S L F ( n ,   2 n 1 ) in other ways.

Further Investigation on the Existence or Nonexistence of S L F ( n ,   2 n 1 ) for Prime n

We saw that S L F ( n ,   2 n 1 ) exists for n = 2 ,   3 ,   5 , but not for n { 11 ,   13 } Proposition 7) or composite n (Proposition 6). We consider n = 7 and n = 17 below.
Theorem 3. 
There is no S L F ( 7 ,   13 ) . So, there is no Latin matching of order 7.
Proof. 
Suppose f is an S L F ( 7 ,   13 ) . Recall the proof of Lemma 4, which indicates that f is equally likely to be any value among 1 ,   ,   13 , and that all those 6-element subsets of [ 13 ] mapped to 13 constitute an S ( 6 ,   12 ) (each such subset forms a block, and the set of these blocks form an S ( 6 ,   12 ) .) In fact, for each i [ 13 ] , those 6-element subsets of [ 13 ] mapped to i constitute an S ( 6 ,   12 ) , denoted by S i . Clearly, f is fixed as long as S 1 ,   ,   S 13 are given. On the other hand, it is widely known that an S ( 6 ,   12 ) exists and is unique up to isomorphism (this combinatorial design is also known as the small Witt design W 12 ) [18].
We can use a computer program to test all possible choices of ( S 1 ,   ,   S 13 ) . First, generate all the S ( 6 ,   12 ) s (the number of S ( 6 ,   12 ) is 5040) from the unique one up to isomorphism. Then, choose an S ( 6 ,   12 ) for each i [ 13 ] and check if S 1 ,   ,   S 13 constitute an S L F ( 7 ,   13 ) . The rough complexity of this exhaustive searching program would be 5040 13 . Nevertheless, the program can be optimized by some trivial pruning (we omitted the details) and can be rendered very fast. The searching result denies an S L F ( 7 ,   13 ) ; see Appendix A.    □
We now quickly discuss the situation of n = 17 for which the answer is unknown. According to Lemma 4, a necessary condition is the existence of S ( 16 ,   32 ) . Unfortunately, it is not known whether S ( 16 ,   32 ) exists. In fact, it is not known whether S ( 5 ,   21 ) exists [23], let alone S ( 5 + 11 ,   21 + 11 ) . However, it is known that S ( 4 ,   20 ) exists [8,23].
For prime n 17 , a key subproblem is the existence of S ( n 1 ,   2 n 2 ) . To the best of our knowledge, the existence of S ( n 1 ,   2 n 2 ) for prime n 17 has not been settled.
Remark 7. 
A constant weight code with parameters n ,   d ,   w is a set of codewords (vectors) of length n and weight w, and with a Hamming distance at least d between codewords [24,25,26]. The maximal possible number of codewords in a constant weight code is usually denoted by A ( n ,   d ,   w ) .
An S ( n 1 ,   2 n 2 ) exists if A ( 2 n 2 ,   4 ,   n 1 ) equals its trivial upper bound. However, the study of constant weight code so far does not imply or deny the existence of S ( n 1 ,   2 n 2 ) .
Table 1 summarizes our knowledge on Latin matchings and L F ( n ,   2 n 1 ) s.
There exist L F ( n ,   2 n 1 ) s that are not SLFs. For example, we can construct some L F ( 3 ,   5 ) s from the O D ( 3 ,   5 ) shown in Example 1, and none of them is an SLF.
An L F ( n ,   2 n 1 ) exists only if there exists an L F ( n 1 ,   2 n 2 ) (Lemma 1). Teirlinck gave an O D ( n 1 ,   2 n 2 ) (and hence an L F ( n 1 ,   2 n 2 ) ) for any prime n [10].

7. Applications

7.1. Cooperation via Ordered Designs in Hat Guessing Games

Hat guessing games have drawn much attention among mathematicians, computer scientists, coding theorists, and even the press due to their relations to graph theory, circuit complexity, network coding, and auctions [27,28,29,30,31,32]. Some versions of hat guessing games are used in derandomizing protocols in circuit complexity and derandomizing auctions in auction mechanism design due to the innate similarities between these games, and the number-on-forehead models in complexity [33,34] and the bid-independent auctions [35]. Moreover, these games are attractive because their optimal solutions have many unexpected connections to coding theory [33,34]. In this paper, we consider a variant of such games called unique-supply hat guessing game, defined below, which is a special case of the finite-supply hat guessing game studied in [29,31].
  • Assume there are nplayers and vhats with different colors 1 ,   ,   v . (the supply for hats of any specific color is unique; in other words, each hat is unique). A dealer randomly places one hat to each of the n players (according to uniform distribution).
  • Each player can observe the colors of the hats of other players, but cannot see and has to guess the color they receive. All players must guess simultaneously.
  • The n players act as a team, and the team wins if all players are right. The question is how to design the best cooperative strategy to obtain the maximal winning probability.
  • Parameters ( n ,   v ) are known to the players. No communication is allowed between players after the game starts; communication via wait used in some hat puzzles is also forbidden. However, it is permissible for them to discuss a strategy beforehand.
Example 3. 
For n = 2 , the following strategy is optimal: Player 1 guesses ( B 1 ) mod v after observing color B of their teammate, whereas Player 2 guesses ( A + 1 ) mod v after observing color A of their teammate. Clearly, the players both simultaneously guess right or both fail.
A placement of the v hats to n players can be represented by an n-permutation ( a 1 ,   ,   a n ) of [ v ] , which is a vertex in G ( n ,   v ) ; vice versa. The winning placements of a strategy s refer to those placements for which a team wins when they adopt strategy s. α ( G ) is the cardinality of the maximal independent (vertex) set of graph G.
Lemma 5. 
The winning placements of any strategy form an independent set of G ( n ,   v ) . Moreover, given an independent set I of G ( n ,   v ) , the winning placements of some strategy contains I. As a corollary, finding the optimal strategy is equivalent to finding the MIS of G ( n ,   v ) ; the maximal winning probability of the team is given by α ( G ( n ,   v ) ) divided by the number of vertices of G ( n ,   v ) .
Proof. 
A strategy s cannot win two adjacent vertices (i.e., placements). Why? Suppose ( a 1 ,   ,   a n ) and ( a 1 ,   ,   a i 1 ,   a i ,   a i + 1 ,   a n ) are winning placements of s that are adjacent. The i-th player cannot distinguish the placements, as their observation is invariant. So their guess should be consistent in two cases, which is wrong in one case.
Given an independent set I of G ( n ,   v ) , the following strategy wins all placements in I. For each player, there is at most one vertex ( a 1 ,   ,   a n ) in I that is consistent with their observation (since all such placements are clearly adjacent yet I is independent). The player guesses according to the mentioned vertex if it exists, or arbitrarily otherwise.    □
Combining Lemma 5 with Proposition 3, we obtain
Corollary 2. 
The maximal winning probability equals 1 v n + 1 if and only if there is an O D ( n ,   v ) .
Recall the MIS I c ( 1 c n ) of G ( n ,   2 n 1 ) introduced in (4). An optimal strategy wins all the vertices in I C as analyzed above. In the following, we give an explicit description of this optimal strategy using underlying Latin function f instead of set I c .
Explicit description for the strategy that wins all the placements in I c : Given a placement a = ( a 1 ,   ,   a n ) , denote A i = { a 1 ,   ,   a n } \ { a i } for each i [ n ] , which is the set of colors observed by player i. Player c guesses g c = f ( A c ) . Player i ( i c ) guesses g i , where g i denotes the unique number g A i \ { a c } such that f ( A i \ { a c } { g } ) = a c (note that a c is known by player i and the uniqueness of g follows from the Latin property).
When a I c , every player guesses right, i.e., g i = a i ( 1 i n ) . The trivial proof is omitted.
Remark 8.
(1) In the strategy corresponding to I c , player c can be regarded as the leader of the team. This does not mean that they would answer earlier than the others. Instead, everybody figures out what the leader would do and searches for the unique answer that is consistent with the leader.
(2) For making the decision, each player only checks the set of colors of other players and the color of the leader (if they are not the leader). Therefore, the n 1 members other than the leader c can be indistinguishable if the above strategy is applied.
To sum up, we show how to use our combinatorial design called Latin matching to solve a variant of hat guessing games. This application of the Latin matching has the same favor as the application of the Hamming code in the original hat guessing game [29,31]. Unfortunately, the Latin matching does not always exist just as the Hamming code.

7.2. Apply Known L O D ( n ,   2 n 1 ) to Construct Other Ordered Designs

Recall matrices X and Y in the proof of Theorem 2, which are constructed from I 1 ,   ,   I n (who form L O D ( n ,   2 n 1 ) ). Let Z = [ X Y ] , which has 2 n 1 rows. We claim that
(1)
for n = 3 , matrix Z is an O D ( 2 ,   5 ,   5 ) ;
(2)
for n = 5 , matrix Z is an O D 6 ( 3 ,   9 ,   9 ) (note: Z is not an O D ( 4 ,   9 ,   9 ) ).
Claim (1) easily follows from Theorem 2. Claim (2) does not immediately follow from Theorem 2. We used a computer program to prove this claim; see Appendix B. We can further obtain L O D ( 2 ,   5 ,   5 ) and L O D 6 ( 3 ,   9 ,   9 ) applying Point 4-(d) in Section 3.

7.3. Applications of Ordered Designs or Large Set of Ordered Designs in Experimental Designs, Error-Correcting Codes, Secret-Sharing Scheme, Tournament Scheduling, etc.

Applications of combinatorial design theory in experimental design have a long history; see a textbook written in the 1980s [3] . Specifically, the connections between ordered designs and experimental design (such as factorial experiments) can be found in [9,36] and the references within. Some other applications of perpendicular arrays in [9,36] are also applications of ordered designs because ordered designs are perpendicular arrays.
An L O D ( n ,   v ) , which is equivalent to a ( v n + 1 ) -coloring of G ( n ,   v ) , can be used in error-correcting code. Let a = ( a 1 ,   ,   a n ) denote a vertex in G ( n ,   v ) . The color of a is c ( a ) . Because c ( a ) changes whenever exactly one of a 1 ,   ,   a n changes, this value can serve as the one-error detecting bit when we send message a 1 ,   ,   a n .
An L O D ( n ,   v ) is also useful in secret-sharing schemes. Suppose n persons want to hold a secret s [ v n + 1 ] . Assign each person i a number a i in [ v ] , so that a = ( a 1 ,   ,   a n ) is a vertex in G ( n ,   v ) with color s (in the given LOD). It can be easily observed that (1) n persons together can obtain the secret, and (2) every n 1 persons cannot obtain any information about the secret.
Ordered designs have connections to Latin squares and MOLS (see Remark 5 and [9]), orthogonal arrays, and Steiner systems. In fact, ordered designs are called orthogonal arrays of type I by Rao [9] or ordered Steiner systems by Teirlinck [10]. All these mentioned combinatorial designs have found a variety of applications, and ordered designs may find similar applications. In particular, the Latin squares can be used for sampling [37,38] cryptography [39], and for scheduling tournaments and processors of parallel computer [40,41,42]. The n-coloring of G ( n ,   2 n 1 ) shown in Section 4.1 is essentially a Latin hypercube (see Remark 4) that has analogous applications. We do not dwell on applications of Steiner systems and orthogonal arrays, and we refer the reader to [1,2,4].

8. Concluding Remarks

We proposed a new combinatorial structure called Latin matchings and showed that a Latin matching of order n leads to an L O D ( n ,   2 n 1 ) , thus obtaining an L O D ( 5 ,   9 ) , among others. Latin matchings and the more general structures called symmetric Latin functions have strong connections to Steiner systems, as shown in Lemma 4. Due to these connections, designing Latin matchings is at least as difficult as designing Steiner systems.
The Latin matching of order 5 given in Figure 1 derived from Hamming ( 8 ,   4 ,   4 ) is a perfect matching between [ 9 ] 4 and [ 9 ] 5 with several remarkable properties (see Remarks 1 and 2). The existence of such an interesting matching is surprising and might have more applications. We end this paper by pointing out several unsolved problems.
  • Does an O D ( 4 ,   9 ,   9 ) exist?
  • Does an L F ( 6 ,   11 ) exist? Does an L F ( n ,   2 n 1 ) exist for a composite n?
  • Does an L F ( 7 ,   13 ) exist? Moreover, does an L O D ( 7 ,   13 ) exist?
  • Does an S L F ( 17 ,   33 ) exist? Does an S ( 16 ,   32 ) exist?
  • Is it true that every S L F ( n ,   2 n 1 ) is a Latin matching? (we verified that this holds for n = 2 ,   3 ,   5 , and we conjecture that this holds for all n.)
  • Is it true that every Latin matching is isomorphic to a cyclic Latin matching?

Author Contributions

Conceptualization, K.J.; methodology, K.J., T.Z. and X.S.; validation, Z.G. and X.S.; formal analysis, K.J., T.Z. and Z.G.; writing—original draft preparation, K.J.; writing—review and editing, X.S. and Z.G.; project administration, K.J.; funding acquisition, K.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (no.62002394); and Shenzhen Science and Technology Program (Grant No. 202206193000001, 20220817175048002).

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We thank Zhiyi Huang and Ce Jin for taking part in some discussions.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

    The following abbreviations are used in this manuscript:
ODOrdered design
LODLarge set of ordered design
MISMaximal independent (vertex) set
SSSteiner system
SLFSymmetric Latin function
LMLatin matching
OAOrthogonal array

Appendix A. C++ Program for the Proof of Theorem 3

#include <memory.h>
#include <fstream>
using namespace std;
unsigned int power2[32]; // power2[i]= i th power of 2.
int S[132][12]; //This is the unique S(5,6,12) upto isomorphism.
int P[5040][12]; //the number of different S(5,6,12) after permutation is 5040.
void inputSP(){
  power2[0] = 1;
  for (int i = 1; i < 32; i++) power2[i] = power2[i - 1] + power2[i - 1];
  //Next, read S and P from txt files (generated by other programs).
  ifstream finS("S.txt");
  for (int i = 0; i < 132; i++)
    for (int j = 0; j < 12; j++) finS >> S[i][j];
  finS.close();
  ifstream finP("P.txt");
  for (int i = 0; i < 5040; i++)
    for (int j = 0; j < 12; j++) finP >> P[i][j];
  finP.close();
}
bool used[6];
int a[6], tP6;
int P6[720][6];
void searchP6(int i){ // generate all 720 permutations of {0,..,5}
  if (i == 6) memcpy(P6[tP6++], a, sizeof(a));
  else
    for (int j = 0; j < 6; j++)
      if (!used[j]){
        used[j] = true; a[i] = j;
        searchP6(i + 1);
        used[j] = false;
      }
}
int Ind[4826809];
  /* For any 6-permutation (y[0],...,y[5]) of [0,13),
       regard (y[0],...,y[5]) as a number Y of 6 digits in base-13 system.
     Note that 13^6=4826809. So, Y is in the range [0,4826809).
     Ind[Y] stores the index of (y[0],...,y[5]), which is in [0, 13 choose 6).
     All permutations of the 6-element subset have the same index.*/
void computeInd(){
  searchP6(0);
  int tInd = 0;
  for (int a = 0; a < 13; a++)
    for (int b = a + 1; b < 13; b++)
      for (int c = b + 1; c < 13; c++)
        for (int d = c + 1; d < 13; d++)
          for (int e = d + 1; e < 13; e++)
            for (int f = e + 1; f < 13; f++){
              int x[6];
              x[0] = a; x[1] = b; x[2] = c; x[3] = d; x[4] = e; x[5] = f;
              // x represents a 6-element subset of [0,13).
              // all permutations of x have the same index.
              for (int i = 0; i < 720; i++){ //find all permutations y of x
                int C = 1, s = 0, y[6];
                for (int j = 0; j < 6; j++){
                 y[j] = x[P6[i][j]];
                 s += C * y[j];
                    C *= 13;
                }
                Ind[s] = tInd;
              }
              tInd ++;
            }
}
unsigned int U[13][5040][54];
  /*recall S_1,...,S_13 in the proof of Theorem~13.
    Supposing that we choose the k-th S(5,6,12) to be S_{h+1},
      it  consumes 132 6-element subsets of [0,13).
    Let U[h][k] be the set of the 132 indices of these subsets.
    Then, {13 choose 6} = 1716. The indices are in [0,1716).
    We use 32*54>1716 bits, i.e., 54 unsigned integers to store U[h][k]*/
void computeU(){
  for (int h = 0; h < 13; h++){
    int t = 0, L[12];  // L represents [0,13)\{h}.
    for (int j = 0; j < 13; j++)
      if (j != h) L[t++] = j;
    for (int k = 0; k < 5040; k++){
      for (int i = 0; i < 132; i++){
        int C = 1, s = 0;
        for (int j = 0; j < 12; j++)
          if (S[i][j] == 1){
            s += C * L[P[k][j]];
            C *= 13;
          }
        U[h][k][Ind[s] >> 5] += power2[Ind[s] & 31];
      }
    }
  }
}
unsigned int mask[54];
bool disjoint(const unsigned int addmask[54]){
  for (int i = 0; i < 54; i++)
    if ((addmask[i] & mask[i]) > 0) return false;
  return true;
}
int choice[13];
bool ans = false;
void searchSolution(int i){
  if (i > 3) printf("%d %d %d %d\n", choice[0], choice[1], choice[2], choice[3]);
  if (i == 13) ans = true;
  else
    for (int k = 0; k < 5040; k++)
      if (disjoint(U[i][k])){
        choice[i] = k;
        for (int j = 0; j < 54; j++) mask[j] += U[i][k][j];
        searchSolution(i + 1);
        for (int j = 0; j < 54; j++) mask[j] -= U[i][k][j];
      }
}
int main(){
  inputSP(); computeInd(); computeU();
  searchSolution(0);
  if (ans) printf("Find a solution");
  return 0;
}

Appendix B. C++ Program for the Proof Claim (2) in Section 7.2

#include <iostream>
#include <memory.h>
using namespace std;
int f[512]; // the Latin matching
int A1[9][9][9][9];
int A2[9][9][9][9];
int A3[9][9][9][9];
int A4[9][9][9][9];
int A5[9][9][9][9];
int Z[9][3024];
void getLM(){
  int a[9];
  for (int i = 1; i < 15; i++){  // 14 codewords
    a[1] = i & 1;
    a[2] = (i & 2) / 2;
    a[3] = (i & 4) / 4;
    a[4] = (i & 8) / 8;
    int X = a[1] ^ a[2] ^ a[3] ^ a[4];
    a[5] = X ^ a[4];
    a[6] = X ^ a[3];
    a[7] = X ^ a[2];
    a[8] = X ^ a[1];
    int S = 0;
    for (int j = 1; j <= 8; j++)
      if (a[j] == 1) S += (1 << j);
    for (int j = 0; j < 9; j++){
      f[S] = j;
      S *= 2;
      if (S >= 512) S -= 511;
    }
  }
}
void computeA(){
  for (int i1 = 0; i1 < 9; i1++)
    for (int i2 = 0; i2 < 9; i2++)
    if (i2 != i1)
      for (int i3 = 0; i3 < 9; i3++)
      if (i3 != i1 && i3 != i2)
        for (int i4 = 0; i4 < 9; i4++)
        if (i4 != i1 && i4 != i2 && i4 != i3){
          int f0 = f[(1<<i1)+(1<<i2)+(1<<i3)+(1<<i4)];
          A1[f0][i1][i2][i3] = i4;
          A2[i1][f0][i2][i3] = i4;
          A3[i1][i2][f0][i3] = i4;
          A4[i1][i2][i3][f0] = i4;
          A5[i1][i2][i3][i4] = f0;
        }
}
void computeZ(){
  int t = 0;
  for (int i = 0; i < 9; i++)
    for (int j = 0; j < 9; j++)
    if (j != i)
      for (int k = 0; k < 9; k++)
      if (k != i && k != j)
        for (int l = 0; l < 9; l++)
        if (l != i && l != j && l != k){
          Z[0][t] = i;
          Z[1][t] = j;
          Z[2][t] = k;
          Z[3][t] = l;
          Z[4][t] = A1[i][j][k][l];
          Z[5][t] = A2[i][j][k][l];
          Z[6][t] = A3[i][j][k][l];
          Z[7][t] = A4[i][j][k][l];
          Z[8][t] = A5[i][j][k][l];
          t++;
        }
}
bool test(int i, int j, int k){
  int T[9][9][9];
  memset(T, 0, sizeof(T));
  for (int col = 0; col < 3024; col++){
    int a = Z[i][col];
    int b = Z[j][col];
    int c = Z[k][col];
    T[a][b][c]++;
    if (T[a][b][c] > 6) return false;
  }
  return true;
}
int main(){
  getLM(); computeA(); computeZ();
  for (int i = 0; i < 9; i++)
    for (int j = i+1; j < 9; j++)
      for (int k = j+1; k < 9; k++)
      if (!test(i,j,k)) {
        printf("no %d%d%d\n", i,j,k);
        return 1;
      }
  printf("checked that it is OD.6(3,9,9)"); return 0;
}

References

  1. Colbourn, C.; van Oorschot, P. Applications of Combinatorial Designs in Computer Science. ACM Comput. Surv. 1989, 21, 223–250. [Google Scholar] [CrossRef] [Green Version]
  2. Gopalakrishnan, K.; Stinson, D.; Cheriton, D. Applications of Orthogonal Arrays to Computer Science. In Proceedings of the Sixth International Conference on Data Mining (ICDM’06), Hong Kong, China, 18–22 December 2006; pp. 149–164. [Google Scholar]
  3. Raghavarao, D. Constructions and Combinatorial Problems in Design of Experiments; Dover books on advanced mathematics; Dover Publications: New York, NY, USA, 1988. [Google Scholar]
  4. Hedayat, A.; Sloane, N.; Stufken, J. Orthogonal Arrays Theory and Applications; Springer: New York, NY, USA, 1999. [Google Scholar] [CrossRef]
  5. Beth, T.; Jungnickel, D.; Lenz, H. Design Theory; Cambridge University Press: Cambridge, UK, 1999. [Google Scholar]
  6. Keevash, P. The Existence of Designs. arXiv 2014, arXiv:1401.3665. [Google Scholar]
  7. Teirlinck, L. Large Sets of Disjoint Designs and Related Structures. In Contemporary Design Theory: A Collection of Surveys, 1st ed.; Dinitz, J., Stinson, D., Eds.; Wiley-Interscience: Hoboken, NJ, USA, 1992; Chapter 12; pp. 561–592. [Google Scholar]
  8. Bierbrauer, J. Ordered Designs, Perpendicular Arrays, and Permutation Sets. In Handbook of Combinatorial Designs, 2nd ed.; Colbourn, C., Dinitz, J., Eds.; Chapman and Hall/CRC: Boca Raton, FL, USA, 2006; Chapter 38; pp. 543–547. [Google Scholar]
  9. Rao, C. Combinatorial Arrangements Analogous to Orthogonal Arrays. Sankhya Indian J. Stat. Ser. A 1961, 23, 283–286. [Google Scholar]
  10. Teirlinck, L. On Large Set of Disjoint Ordered Design. Ars Comb. 1988, 17, 31–37. [Google Scholar]
  11. Jin, K. On 1-factorizations of Bipartite Kneser Graphs. Theor. Comput. Sci. 2020, 838, 81–93. [Google Scholar] [CrossRef]
  12. Teirlinck, L.; Lindner, C. The Construction of Large Sets of Idempotent Quasigroups. Eur. J. Comb. 1988, 9, 83–89. [Google Scholar] [CrossRef] [Green Version]
  13. Teirlinck, L. Generalized Idempotent Orthogonal Arrays. In Coding Theory and Design Theory: Part II, Design Theory, 1st ed.; Ray-Chaudhuri, D., Ed.; Springer: New York, NY, USA, 1990; pp. 368–378. [Google Scholar]
  14. Ray-Chaudhuri, D.; Zhu, T. Orthogonal arrays and ordered designs. J. Stat. Plan. Inference 1997, 58, 177–183. [Google Scholar] [CrossRef]
  15. Bierbrauer, J.; Van Trung, T. Some highly symmetric authentication perpendicular arrays. Des. Codes Cryptogr. 1991, 1, 307–319. [Google Scholar] [CrossRef]
  16. Stinson, D.; Teirlinck, L. A Construction for Authentication/secrecy Codes from 3-homogeneous Permutation Groups. Eur. J. Comb. 1990, 11, 73–79. [Google Scholar] [CrossRef] [Green Version]
  17. Kramer, E.; kreher, D.; Rees, R.; Stinson, D. On perpendicular arrays with t≥3. Ars Comb. 1989, 28, 215–223. [Google Scholar]
  18. Rosa, A. Topics on Steiner Systems; North-Holland Publishing Company: Amsterdam, The Netherland, 1980. [Google Scholar]
  19. McKay, B.; Wanless, I. A Census of Small Latin Hypercubes. SIAM J. Discret. Math. 2008, 22, 719–736. [Google Scholar] [CrossRef] [Green Version]
  20. Mendelsohn, N.; Hung, S. On the Steiner systems S(3, 4, 14) and S(4, 5, 15). Util. Math. 1972, 1, 5–95. [Google Scholar]
  21. Östergård, P.; Pottonen, O. There Exists No Steiner System S(4,5,17). J. Comb. Theory Ser. A 2008, 115, 1570–1573. [Google Scholar] [CrossRef] [Green Version]
  22. Kramer, E.; Mesner, D. Intersections Among Steiner Systems. J. Comb. Theory Ser. A 1974, 16, 273–285. [Google Scholar] [CrossRef]
  23. Wikipedia. Steiner System. 2022. Available online: https://en.wikipedia.org/wiki/Steiner_system (accessed on 1 December 2022).
  24. Brouwer, A.; Etzion, T. Some New Distance-4 Constant Weight Codes. Adv. Math. Commun. 2011, 5, 417–424. [Google Scholar]
  25. Nurmela, K.; Kaikkonen, M.; Östergård, P. New Constant Weight Codes from Linear Permutation Groups. IEEE Trans. Inf. Theory 2006, 43, 1623–1630. [Google Scholar] [CrossRef]
  26. Van Pul, C.; Etzion, T. New Lower Bounds for Constant Weight Codes. IEEE Trans. Inf. Theory 1989, 35, 1324–1329. [Google Scholar] [CrossRef] [Green Version]
  27. The-New-York-Time. Why Mathematicians Now Care about Their Hat Color. 2001. Available online: http://www.nytimes.com/2001/04/10/science/why-mathematicians-now-care-about-their-hat-color.html (accessed on 1 December 2022).
  28. Lenstra, H.; Seroussi, G. On Hats and Other Covers. In Proceedings of the IEEE International Symposium on Information Theory, Lausanne, Switzerland, 30 June–5 July 2002; p. 342. [Google Scholar]
  29. Butler, S.; Hajiaghayi, M.; Kleinberg, R.; Leighton, T. Hat Guessing Games. SIAM Rev. 2009, 51, 399–413. [Google Scholar] [CrossRef]
  30. Ma, T.; Sun, X.; Yu, H. A New Variation of Hat Guessing Games. In Proceedings of the International Computing and Combinatorics Conference, Dallas, TX, USA, 14–16 August 2011; Springer: Berlin/Heidelberg, Germany, 2011; pp. 616–626. [Google Scholar]
  31. Feige, U. You Can Leave Your Hat On (If You Guess Its Color); Technical Report; The Weizmann Institute of Science: Rehovot, Israel, 2004. [Google Scholar]
  32. Jin, K.; Jin, C.; Gu, Z. Cooperation via Codes in Restricted Hat Guessing Games. In Proceedings of the AAMAS’19: Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems, Montreal, QC, Canada, 13–17 May 2019; pp. 547–555. [Google Scholar]
  33. Ebert, T.; Merkle, W.; Vollmer, H. On the Autoreducibility of Random Sequences. SIAM J. Comput. 2003, 32, 1542–1569. [Google Scholar] [CrossRef] [Green Version]
  34. Aspnes, J.; Beigel, R.; Furst, M.; Rudich, S. The Expressive Power of Voting Polynomials. In Proceedings of the 23rd ACM Symposium on Theory of Computing, New Orleans, LA, USA, 5–8 May 1991; pp. 402–409. [Google Scholar]
  35. Ben-Zwi, O.; Newman, I.; Wolfovitz, G. Hats, Auctions and Derandomization. Random Struct. Algorithms 2015, 46, 478–493. [Google Scholar] [CrossRef] [Green Version]
  36. Majumdar, D.; Martin, R. Efficient designs based on orthogonal arrays of type I and type II for experiments using units ordered over time or space. Stat. Methodol. 2004, 1, 19–35. [Google Scholar] [CrossRef]
  37. Ramya, L.; Nehru Viji, S.; Arun Prasad, P.; Kanagasabai, V.; Gautham, N. MOLS sampling and its applications in structural biophysics. Biophys. Rev. 2010, 2, 169–179. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  38. Wikipedia. Latin Hypercube Sampling. 2022. Available online: https://en.wikipedia.org/wiki/Latin_hypercube_sampling (accessed on 1 December 2022).
  39. Schmidt, N. Latin Squares and Their Applications to Cryptography. Master’s Thesis, Boise State University, Boise, ID, USA, 2016. [Google Scholar]
  40. Schellenberg, P.; van Rees, G.; Vanstone, S. The existence of balanced tournament designs. Ars Comb. 1977, 3, 303–318. [Google Scholar]
  41. Robinson, D. Constructing an annual round-robin tournament played on neutral grounds. Math. Chron. 1981, 10, 73–82. [Google Scholar]
  42. Mendelsohn, E.; Rodney, P. The existence of court balanced tournament designs. Discret. Math. 1994, 133, 207–216. [Google Scholar] [CrossRef]
Figure 1. A Latin matching of order 5 defined according to (2).
Figure 1. A Latin matching of order 5 defined according to (2).
Mathematics 10 04703 g001
Figure 2. Two more Latin matchings of order 5 (which are symmetric to each other).
Figure 2. Two more Latin matchings of order 5 (which are symmetric to each other).
Mathematics 10 04703 g002
Figure 3. Construction of MOLS of order 5. If there is a column ( a ,   b ,   c ) T in a table on the left, fill it in with number c at the cell at row a and column b in the corresponding square on the right.
Figure 3. Construction of MOLS of order 5. If there is a column ( a ,   b ,   c ) T in a table on the left, fill it in with number c at the cell at row a and column b in the corresponding square on the right.
Mathematics 10 04703 g003
Table 1. On the existence of L F ( n ,   2 n 1 ) and Latin matchings.
Table 1. On the existence of L F ( n ,   2 n 1 ) and Latin matchings.
ordern 2 ,   3 ,   5 7 ,   11 ,   13 prime ≥ 174composite ≥ 6
Latin matchingYesNoUnknownNoNo
L F ( n ,   2 n 1 ) YesUnknownUnknownNo [7] (p. 569)Unknown
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jin, K.; Zhu, T.; Gu, Z.; Sun, X. Latin Matchings and Ordered Designs OD(n−1, n, 2n−1). Mathematics 2022, 10, 4703. https://doi.org/10.3390/math10244703

AMA Style

Jin K, Zhu T, Gu Z, Sun X. Latin Matchings and Ordered Designs OD(n−1, n, 2n−1). Mathematics. 2022; 10(24):4703. https://doi.org/10.3390/math10244703

Chicago/Turabian Style

Jin, Kai, Taikun Zhu, Zhaoquan Gu, and Xiaoming Sun. 2022. "Latin Matchings and Ordered Designs OD(n−1, n, 2n−1)" Mathematics 10, no. 24: 4703. https://doi.org/10.3390/math10244703

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop