1. Introduction
1.1. Description of the Problem
Scheduling problems for sports tournaments are a broad and
extensively researched field in combinatorics, operations research and
combinatorial optimization. A prominent example is the round-robin
tournament problem with applications, e.g., in computer science (see,
e.g., [1, 2, 3 4 5, 6, 7] to mention just some of
the most recent work on the subject). Another one is the traveling
tournament problem (see, e.g., [8, 9, 10]). In this article we will study a
variant where not fixed teams play against each other but the teams are
shuffled in each round of a tournament.
We deal with the following combinatorial problem: suppose people are playing a sports tournament
which consists of different rounds. In each round two new teams of people are reassembled to play against
each other. We would like to find a playing schedule such that the
following conditions are satisfied:
- each two players have been at least once in the
same team, and
- each two players have played at least once in
opposing teams.
The general question is: what is the minimal number of rounds of the
tournament so that the conditions () and () are satisfied and what is an
optimal playing schedule? We shall give a complete answer to both
questions. The main goal of this paper is to prove the following
result:
Theorem 1. Let , then we have
An intriguing feature of the problem is that the sequence is not
monotone.
The paper is organized as follows. We start by considering the
conditions () in Section 2 and
() in Section 3
separately. The combined problem of finding an optimal playing schedule
satisfying both conditions () and () is treated in Section 4. In
particular, this section will contain the proof of the main Theorem 1. But first, we fix some notation and
notions that we will use in the sequel.
1.2. Notions and Notation
We write to denote
an array of rows and columns with entries in row and column . If the dimension of the array is clear
from the context, we just write .
The columns of are
denoted by , . Two columns are called
complementary if their componentwise sum is 1 modulo 2. We write for the complementary column
of .
An array is
called a playing schedule of length for players. If each row of contains ’s and ’s, it is called a
valid playing schedule.
The interpretation is as follows: the entry means that in game
player plays in team . Observe that satisfies () if it does not contain
complementary columns, and
satisfies () if all columns
are different. A valid playing schedule is called
admissible if it satisfies both
conditions, () and ().
The concept of a playing schedule satisfying the condition () is related to the notion of
separating systems which goes back to Rényi [11] (see also Katona [12]).
Definition 1. A
separating system on a finite set is a collection of subsets of such that for every pair of distinct
elements , there exists
with either
or . Moreover, a
covering separating system is a separating system such
that is the union of the sets
. More specifically, we call a
covering separating system an -covering separating
system if and for
all we have .
We can interpret a playing schedule of length for players as a set and a collection
of subsets of
with , such that if and only if . Then we clearly have that
satisfies the condition () if and only if is a separating
system on .
Definition 2. Two columns of a playing schedule are called
equivalent, written , if or . The cardinality of
the equivalence class of in
is called the
characteristic of the column .
Example 1. Let be a playing schedule, then the columns and are equivalent, and hence the
characteristic of these columns is 3, while the characteristic of is 1.
Definition 3. Let and be two playing schedules.
Then we can build a new playing schedule with rows by putting the array on top of (see Example 2). is called an
extension of of length
. If all columns of have characteristic , then is called
sufficient. If is valid and sufficient, then it is
called an admissible extension.
Example 2. Let Then is an admissible extension of of length , and The playing schedule is valid and sufficient and hence
admissible.
2. Optimal Playing Schedule for Condition ()
In this section we neglect condition () and consider only condition
(). We will denote by the minimal number of
rounds needed to satisfy condition (). We find:
Proof. If is even,
then
is a playing schedule satisfying condition (). Here each of the four
subarrays in contains columns.
If is odd, a possible playing
schedule has the form
where each of the four big subarrays contained in the middle of consists of columns. Each entry marked
with can be independently
replaced by either or as long as the condition is satisfied
that the last row of contains the
same number of ’s and ’s.
It remains to show that no shorter playing schedules exists. To see
this, notice first that columns (and rows) of a playing schedule which satisfies condition () can be permuted and the result
is still a playing schedule which satisfies condition (). In particular we may assume
that the first row of has the
form
We now state condition () in the following form: for each
pair with there is a such that . These are conditions. The first row
saturates such
conditions. So the remaining rows must satisfy the remaining conditions.
Suppose the second row consists of zeros and ones in the first columns, and hence zeros and ones in the last columns. This gives additional conditions to the
conditions which are already satisfied by the first row. This implies
that cannot satisfy condition
() if it has only two
rows.
Similarly for the third row of : It consists of zeros and ones in the first columns, and hence zeros and ones in the last columns. This provides at most additional conditions to the
conditions we already have. Observe that Hence, if is odd, cannot satisfy condition () if it has only three rows. This
completes the proof. 
3. Optimal Playing Schedule for Condition ()
In this section we neglect condition () and consider only condition
(). We denote by the minimal number of
rounds required to satisfy condition (). In the language of separating
systems we need a separating system with minimal on the set such that every set
hat cardinality . We find the following.
Proof. First we show that . For this it is enough to construct a playing schedule of
length for players. Since there exist more than
different columns (note that
) of length with
entries in , we can find
different columns having as last entry. Then we define to be the array which contains all
these columns and their complements. Since all columns in are different, () is satisfied. Moreover is valid by construction (see
Example 3).
On the other hand, the minimal separating system of a set of elements has at least cardinality
(see [11]). Indeed, to show the
inequality we argue as follows: A playing schedule
with length strictly smaller than for players contains at least one pair of
identical columns by the pigeonhole principle. Hence, no such playing
schedule satisfies (). 
Example 3. We illustrate the construction of an
optimal playing schedule for
. The gray subarray is our
choice of columns with length
(the columns correspond to the binary representation of the numbers
) where the last
entry is and the white subarray
is the complement of the grey one. Then is a playing schedule of minimal length
satisfying .
4. Optimal Playing Schedule for Condition () and ()
To find an optimal playing schedule for players that satisfies both conditions
and is considerably harder than for
just one of the two conditions. We start with lower and upper bounds for
the minimal length for particular
values of . These bounds are
improved and extended gradually, and finally lead to a proof of the main
Theorem 1.
4.1. Bounds for
We clearly have
and so we get that for all . Here, if is even, and if is odd. In this section we would like
to improve these bounds.
By using covering separating systems we
can estimate from below. Assume that we have a
minimal valid playing schedule of
length for players. Without loss of generality,
we can assume that player is
always in the team , i.e., the
last column of consists of ’s, and the first players play against the second players in the first game. Hence, the
first row of consists of ’s followed by ’s. Consider now the collection of subsets of
where if and only if . Then forms an -covering separating system because
otherwise would violate the
conditions () and/or (). Hence, by Phanalasy et
al. [13, Lemma 5] we get that
. If for , then
this estimate coincides with the next result. In every other case we
will find a better lower bound for .
Proposition 1. For all we
have
Proof. Let . Then there exists a playing schedule
with rows and columns. Since is admissible, the columns of are all different, and no two columns
of are complementary to each
other. There exist different
columns of length . However, only
of these are not
complementary and this number must be larger than or equal to the number
of columns in . Hence, we get
which proves the
proposition. 
Example 4. Consider a playing schedule for players. By the inequality in the proof of
Proposition 1 where , we have
that . In fact, we can find
the following valid and admissible playing schedule for , and hence :
4.2. The Case
In this section we determine if is a power of . Moreover, we find an upper bound for
.
To prove this theorem, we need the following lemma:
Proof. We show that a valid playing schedule of length for players can be extended to a valid
playing schedule of length
for players. To do so, we
define the columns of by Observe that all columns of are different from each other and
not complementary to another column in . Hence, defines a valid and admissible
playing schedule for
players. 
With this preparation we are ready for the proof of Theorem 4.
Proof of Theorem 4. For
the statement is true by
Example 4. Now we assume that this is the case
for an arbitrary and show it for
. By using Proposition 1, Lemma 1 and the
induction hypothesis we get
the desired result 
Example 5. Let be a valid and admissible playing
schedule for players of length
, as in Example 4:
Following the construction in the proof of Lemma 1, we obtain an optimal playing
schedule
for players.
We will now introduce a helpful tool which we use to prove the upper
bound of .
Definition 4. For a column of a playing schedule, we call the
array consisting of the three
columns a
triplet of .
Proposition 2. For all we
have .
Proof. The case is
verified by Example 4. Therefore let ,
and the unique value such that . Let
be a valid and admissible playing schedule of length for players (see Theorem 4). We construct a playing schedule
of length for
players as follows.
For the columns of with let , where
Let be an extension of the remaining columns of length for . Then we define
Observe that is admissible
because was admissible. It
remains to show that is
valid. The first rows contain
the same number of ’s and ’s by construction. Observe, that we
used all columns of and added
pairs of columns and their complements. For the last two rows we choose
the ’s in the as follows. The numbers of
triplets in and the number of
are either both even or both
odd. In the even case the extensions in the must be chosen such the last two
rows of the contain the
same number of ’s and ’s. In the odd case, there must be one
more than ’s in the second last row of the , and three ’s more than ’s in the last row. The result is a
valid and admissible playing schedule of length for players. 
Example 6. Consider the case . We start with a valid and
admissible playing schedule for
players of length :
We have
We have
The construction in the proof of Proposition 2 yields , where are chosen such
that is valid. A possibility
is
With Proposition 1 and Proposition 2 we conclude:
Corollary 1. For all we
have
4.3. The Case
Even
So far we know that for each there are only two possible
values for . In this section
determine the exact value of for even .
Theorem 5. If is even, then we have
Proof. We start with an admissible playing schedule for
players. For example, we can
consider with columns . Since , an admissible and valid playing
schedule for consists of players. We define the arrays with
columns for . The
idea is now to find a playing schedule for players of length , of the form Here consists of different column vectors of length
. Observe
that two columns from different arrays are neither the same nor the
complement of each other. Hence, is a valid and admissible playing
schedule for players. This
implies and the result follows by Corollary 1. 
To show if is even, we can alternatively define a
playing schedule in the following way: Choose different pairs of columns of length
such
that the columns in each pair are complementary. Then define as the array containing all columns of
these pairs such that the columns of each pair belong either to the
first or to the last columns of (note that this only works if is even). If we extend by the row containing
’s followed by ’s, then is valid and there are no
columns in which are equal or
the complement of each other. Hence, satisfies () and () and its length is which shows
that .
4.4. The Case
Odd
The case odd is more delicate
than the case even. We start with
some general considerations. In the proof of Proposition 2 we had to extend the triplets by
an extension of length . We now
ask, by how many rows must a given playing schedule be extended in order
to obtain an admissible playing schedule. For this, the characteristic
of the columns (see Definitions 2 and 3) plays the decisive role. More
concretely, we find a lower bound for the length of an admissible
extension as a function of its largest characteristic.
Theorem 6. Let be a playing schedule, and be the maximal characteristic of the
columns in . Then an admissible
extension of has at least length
.
Proof. Let be a
column of with maximal
characteristic , and the array built from the columns in the
equivalence class of . We show
that the minimal length of an
admissible extension of is at least .
Observe first that the maximal characteristic of the columns of is . To see this, assume that this is not the case. Then there
are three equivalent columns in ,
say and we have where by assumption. Since is supposed to be sufficient, any two
of the vectors are pairwise
distinct and pairwise nonequivalent. At least two of the vectors
are equal, say . It follows
that .
But then, in the case as well
as in the case ,
can neither be
equal to nor to . So, we have a
contradiction.
We know now that the characteristic of the columns in can be at most . On the other hand if is an extension of length , then we find at most different equivalence classes
among the columns of . Hence, the
number of columns of must be
bounded by because and this
completes the proof. 
Example 7. Let
The maximal characteristic is , and hence the minimal length of a sufficient extension of is . For example, we can choose
and get
In the following we will analyse the structure of the equivalence
classes more closely. We only need to discuss the case when and have the same odd cardinality as we
see later.
Theorem 7. Let be a playing schedule, and be the equivalence class of a
column of with characteristic
. Assume that the sets
have odd cardinality . Let be the array built from the columns in
. Then the minimal length
of an admissible extension of satisfies .
In order to prove Theorem 7
we will show that the columns of
must contain at least
equivalence classes. This is done in the next two lemmas.
Lemma 2. For an admissible extension of , the columns of must contain more than equivalence classes.
Proof. We have seen in the proof of Theorem 6 that each
equivalence class of columns of
contains at most 2 elements. Hence, the columns of contain at least equivalence classes. Assume now that
here are exactly equivalence
classes and work towards a contradiction. In this situation every
equivalence class contains two elements. These two elements are either
equal or the complement of each other. Hence, we can choose
representatives
of each equivalence class, and a natural number such that, after
reordering the columns if necessary, we have Since the
columns of all belong to the same
equivalence class, and is
admissible by assumption, there exists a column in such that where two consecutive are either equal to or . However, the number of
consecutive pairs of and in must be the same. Hence, the number of
in must be divisible by and so is even and is odd.
Moreover, since is valid, we
have that must also be valid and hence is
also valid. However,
cannot be valid because its number of columns is and is odd. Thus, we get a
contradiction. 
Lemma 3. For an admissible extension of , the columns of must contain more than equivalence classes.
Proof. By Lemma 2 we already know that the columns of contain at least equivalence classes. To obtain a
contradiction, assume that they contain exactly equivalence classes. Then there are
exactly equivalence classes
with elements, and equivalence classes with element. Hence, we can assume that
there exists a natural number such that for a choice of
representatives of all equivalence classes. As in Lemma 2, we
find a column in such that Define now Since is an admissible extension of , is not valid because otherwise
would also be valid
and so and would be in the same equivalence
class which is not the case. Thus,
cannot be valid. We now consider separately the cases, even and odd.
Let be even. Since is not valid, there exists a
row such that the difference of ’s
and ’s in this row is at least
. Hence, there is a row in such that the difference between
the ’s and ’s is at least . Adding the missing two columns with
characteristic cannot make this
playing schedule valid. Therefore we have a contradiction.
Let be odd. Then the
difference of ’s and ’s in each row of must be at least , and the difference of ’s and ’s in each row of is at least . Thus, adding two columns to to make it valid means that the
two added columns and must be equal and this is a
contradiction because they do not belong to the same equivalence class
by assumption. 
Theorem 7 follows now from the
lemma above.
Proof of Theorem 7. We showed that the
columns of contain at least different equivalence classes. Then
the result follows from the inequality 
Proposition 3. Let be a playing schedule, and be the equivalence class of a
column of with characteristic
. Assume that the sets
have odd cardinality . Let be the array built from the columns in
. Then the minimal length
of an admissible extension of is .
Proof. By Lemma 3 it
remains to show that an admissible extension of exists such that the columns of contain exactly equivalence classes. Without loss
of generality (by renumbering players), we can assume that has the form First we consider the case . Define and note that contains different equivalence classes. It
is easy to see that is an
admissible extension of with
length .
Now we assume that . Let
be as above. If , then set . Otherwise extend to by adding
occurrences of the row . Note that is valid and consists of rows and
columns which belongs to different equivalence classes. The set
of 01-sequences of length contains at least equivalence classes. Hence, from this set, we can choose more
representatives from different
equivalence classes such that they are all not equivalent with the
columns in . Now we can
define the arrays where both, and , have the same
dimension. Observe that
and
are valid playing schedules for
players. Then, the set is an admissible extension of satisfying all the necessary
conditions. 
Theorem 1 follows now from Proposition 3.
Proof of Theorem 1.
Because of Theorem 5, it remains to treat the case odd. Consider a valid playing schedule
of length for players. We would like to construct a
minimal admissible and valid playing schedule for the players which extends . The columns of have length 1, and all belong to the
same equivalence class . have both cardinality
. Then we can apply Proposition 3 to find a minimal admissible and
valid extension of of length for players. The resulting playing
schedule has length . This
finishes the proof. 
Conflict of
Interest
All authors declare that they have no conflicts of interest.