Kirkman Triple Matching
Perfect stranger matching for a group size of three is related to the construction of Kirkman triple systems. It was shown by Ray-Chaudhuri and Wilson (1971) that such systems are constructible where the total number of elements is an odd multiple of 3. This is equivalent to saying that \(l_{\max}(\alpha, \beta)\) is equal to the trivial upper bound when \(\beta = 3\) and \(\alpha\) is odd.
Constructions
Ray-Chaudhuri and Wilson (1971) detail several theorems which can be used to construct Kirkman triple systems for different cases. Those described here are the ones which are currently implemented as part of the perfect-strangers package (hopefully one day I’ll get round to implementing them all).
Finite Field Arithmetic
Let \(q\) be a prime power of the form \(6t + 1\), where \(t\) is an integer. Theorems 5 and 6 from Ray-Chaudhuri and Wilson (1971) give constructions for Kirkman triple systems of order \(3q\) and \(2q + 1\). These constructions are based on arithmetic in \(\mathbb{F}_{q}\), the finite field of order \(q\). In addition, let \(g\) be a primitive element of \(\mathbb{F}_{q}\). Depending on the total number of participants, \(\alpha\beta\), we use a different theorem to construct our grouping matrices.
Theorem 5
When \(\alpha\beta = 3q\) each participant can be uniquely identified by a label of the form \((x, y)\) where \(x\) is an element from \(\mathbb{F}_{q}\) and \(y\) is in integer in the set \(\{1, 2, 3\}\). To construct grouping matrices we define the following families of triples, where \(a\) is any element of \(\mathbb{F}_{q}\):
The first \(q\) grouping matrices in our sequence are each constructed using a different element \(a\) from \(\mathbb{F}_{q}\). The rows of each matrix are the triples:
- \(A_{0}(a)\)
- \(B_{j}^{i}(a)\) for all values of \(i\) and \(j\)
- \(A_{i}(a)\) where \(\left\lfloor i/t \right\rfloor\) is odd.
An additional \(3t\) grouping matrices can be constructed for each \(i\) for which \(\left\lfloor i/t \right\rfloor\) is even. The rows of each matrix are the triples \(A_{i}(a)\) for all values of \(a\) from \(\mathbb{F}_{q}\).
This gives a total of \(q + 3t = 9t + 1\) grouping matrices under perfect stranger matching conditions. In such an experiment \(\alpha = q\) and \(\beta = 3\), so the trivial upper bound for number of rounds would be:
Hence this method gives a number of rounds equal to the trivial upper bound.
Theorem 6
When \(\alpha\beta = 2q + 1\) the first \(2q\) participants are identified by a label of the form \((x, y)\) where \(x\) is an element of \(\mathbb{F}_{q}\) and \(y\) is an integer from the set \(\{1, 2\}\). The final participant is given the label \(\infty\). Grouping matrices are constructed from the following families of triples, where \(m\) is a value such that \(2g^{m} = g^{t} + 1\):
\(q\) grouping matrices can be constructed, one for each element of \(a\) of \(\mathbb{F}_{q}\). The rows of each matrix are all triples: \(A_{0}(a)\), \(B_{j}^{i}(a)\), \(A^{i}(a)\), for the given value \(a\).
Under these conditions, \(\alpha = 4t + 1\) and \(\beta = 3\). The trivial upper bound for number of rounds is therefore:
This method also provides a number of rounds equal to the trivial upper bound.