Michael T. Marran
University of Wisconsin- Porkside Kenosho, 53140
Assigning Laboratory Partners Different partners every week
At the beginning of each semester I am faced with the problem of drawing up a schedule for Physical Chemistry Laboratory which assigns student pairs to particular experiments for each week. In our laboratory there is only one experimental apparatus available for each experiment and the number of experimental setups is equal to or only slightly greater than the number of experiments required of each student. The task of constructing a schedule is complicated by attempting to make assignments i n such a way as to eliminate instances of two individuals working together more than once. If the number of student pairs and the numher of experiments required approaches the numher of weeks in a semester, i t becomes extremely difficult to assign every student a different experiment and a different partner each week. One apparent solution to this problem is to allow students to sign up for experiments. This procedure has two shortcomings. Better students in a class often sign up to work togetKer leaving poorer students consistenth paired together. Also if the same pair of students work together on several experiments the part-nership sometimes develops into one in which one person does all the thinking and the other does the lab work. A second shortcoming of a signup procedure is that it is hard to avoid irreconkahle schedule conflicts in the final weeks of the semester. If I find it difficult t o make conflict-free assignments by an organized scheme, why should the shotgun signup approach he any better? In fact, it is worse. The only other ohvious solution, that of setting up additional experiments, is not generally acceptable because i t requires grading a wider variety of reports (in the case of additional new experiments) and the purchase of more equipment. The Problem
Let there he N experiments to he performed by 2P students. To simplify discussion, P, the number of student pairs, will initially be set equal to N. A schedule may he constructed in tabular form by allowing row position to indicate date(e.g., week 1, week 2, etc.). Column position will then indicate experiment. A schedule is obtained by assigning each student a numher and entering two numbers a t each position in that table indexed by row and column. The requirement that every student perform each experiment once translates into the requirement (for P = N) that every numher must appear in each column once and only once. Because a student may work on only one experiment a t a time, the complete requirement is that (1) each number may appear in a column or row once and only once. The resulting schedule is an N X N array having pairs of student numbers as entries. Our objective is to obtain such a schedule in which (2) no two students are paired more than once. This is possible for all cases exc e p t N = 2 a n d N = 6. The Solulion
The problem described above is a classical problem in combinatorial mathematics: the construction of orthogonal Latin squares.l The desired schedule is ohtained as the superposition of two orthogonal Latin squares. Latin squares have property (1) above and orthogonal Latin 336 / Journal of Chemical Education
squares ensure property (2). When two orthogonal Latin squares are superposed t o form a single square, the result is referred to as a Graeco-Latin square. This name arises because many authors distinguish between entries by forming one of the Latin squares using Latin letters and the other using Greek letters. Several methods for constructing orthogonal Latin squares are discussed in the mathematics literature; however, none of them are particularly suited for our pumose. They are concerned with constructing complete sets of orthogonal squares and are thus unduly complicated. Only a single pairof orthogonal squares is required in order to form a Graeco-Latin square. In the discussion below, schedules are constructed for a class of size 2N. Without loss of generality the class may be divided into halves, where the first half is numbered 1 through N and the second half is numbered N + 1 through 2N. Graeco-Latin Squares for N Odd When N is odd a simple prescription exists for constructing a Graeco-Latin square. This may be illustrated by the schedule for N = 5
The first sequence (1, 2, 3, 4, 5) is entered in each row, changing each entry by performing a cyclic permutation on the sequence. The second sequence (6, 7, 8, 9, 10) is entered in the same fashion except that the direction of permutation is reversed. Graeco-Latin Squares for N Even I have yet to discover a simple prescription for constructing N-even squares. In lieu of a general prescription, examples may be given for the cases N = 4,8,10,12
'For example, see Hall, Jr., M., "Combinatorial Theory," BlaisdellPublishingCo., Waltham, MA, 1967, Chapter 13. R. and yates, F., -statistical T~~~~~~~~ ~ i ~ ~ ~ ~ ~ ~and ~i ~ ~d~ i ~~~ ~l~sixth l ~~ d ~,~~~f~~~ , ~ ~ publish. h ~ , l, ~ i n g ~ o . ~ nN~~ c . , yo&, 1963, pp.24and88. 3Tarry, G., Comptes Rendus de 1'Assoe. Froncaise pour L'nunncernentdes Sciences, 1,122 (1900): 2.170 (1901).
~
1.11 2.12 3,13 4.14 5,15 2 1 3 3,11 1.12 7,19 8.20 3:12 1,13 2,11 6,15 7.16 4.18 8,14 9.20 1,17 2,19 5 1 9 91510.14 8,16 1.18 6'2010.16 4.15 5,12 9.17 7:14 4:17 5.16 9.13 6.12 8 1 5 5.18 6.17 3,2010,13 9:16 6,19 7 , 1 8 1 0 , l l 3.14 IO,II 7.20 8 , 2,18 ~ 4.11
.6.16 9.14 8.17 5.11 2.20 1.19 10.18 7.12 4,13 3.15
.-
-
7,17 8,18 9,1910.20 10,15 4,16 5.17 6 , E 9,1810.19 4.20 5.14 3.16 6,1310.12 7,15 6.11 3.17 7.13 4,12 2,14 7,11 3.18 8.13 120 2.15 8,11 3,19 4.19 1.14 2,16 9,11 8.12 5.20 1,15 2.17 5.13 9.12 614 1.16
1, 7 6,12 5,11 4,lO 3, 9 2, 8
-- 1'71 .,- -
d -,7 n
5.21 8.22 7.23 9.24
6.22 9,23 8,24 10.19
7'77 -,-1.23 10.24 9.19 11.20
2 - ,72 -2.24 11,19 10,20 12.21
424
3:i9 12.20 11.21 7.22
5.,...-,. 19 12 14 4.20 11.15 7.21 2.16 12.22 1.17 8.23 3.18 ~
8.20 10;21 9.22 fi 72 -,-524 1,19 11.14
9.21 10.22 11;22 12.23 10.23 11,24 I 74 -,-7 19 -,-. 6.19 120 2.20 3,21 12.15 7,16
7,-1 6 R ~ I R 9.17
12,16 3.17 2.18 413
7.17 4.18 3.13 5,14
8,18 5,13 4.14 6.15
11.23 7;24 12.19 2 7n -,-221 4,22 8,17 10.18 9,13 6.14 5,15 1.16
~
3,11 4, 8 2,lO 3, 7 1, 9 2,12 6, 8 1,11 5, 7 6,lO 4.12 5, 9
5.10 4, 9 3, 8 2, 7 1.12 6.11
6,12 5.11 4,lO 3, 9 2, 8 1, 7
Applications
~ .. n 1.9r
1-13 2.14 3.15 4.16 5.17 6.18 7.19 3:i4 4115 5;16 6;17 1:18 2;13 9;20 2.15 3,16 4.17 5,18 6,13 1.14 8,21 1.&,. 1 1 6 17 17 7,,.1s 11 0 i s 5-,-77 -,...i n",.* 10.17 11.18 12.13 7,14 8,15 9.16 4.23 12.18 7.13 8,14 9.15 10.16 11.17 6.24 4 19 5 20 6 2 1 1 3 2,23 3,24 10,13
2, 9 1, 8 6, 7 5,12 4,11 3,lO
12.24 8;19 7.20 4.,-21 3.22 5.23 g,18 11.13 10.14 1,15 6 , ~ 2,17 ~
These examples are taken from the b w k by Fisher and Yates2 wherein a method is described for constructing higher-order squares from lower-order squares. Their method does not apply, however, to the cases N = 4s + 2, s = 0 , 1 , 2 , 3 ....
The Euler Conjecture and the Case N = 6 In 1782 Euler posed the problem of arranging 36 military officers of six different ranks and from six different regiments in a square formation. Each row and each column of this formation was to contain one and only one officer of each rank and one and only one officer from each regiment. Euler's problem can be reduced to construction of a Graeco-Latin square of order N = 6. As a result of his analysis, he conjectured that Graeco-Latin squares do not exist for orden N = 4s 2, s = 0, 1, 2, 3 . . . . The conjecture is obviously true for N = 2. In 1900 Tarry verified the conjecture for N = 6 by systematic enumeration of all possible arrangemenh3 In 1960 the conjecture was shown to be false for the higher order cases,4 N = 10, 14, 18 . . . . The examples above include one of these cases, viz., N = 10. I have not constructed, nor have I seen reported, Graeco-Latin squares of orders N = 14, 18 . . . . Techniques for doing so are reported by Bose et aL4 Because the N = 6 case may he a fairly common one for lahoratory assignments, a schedule is given below which approximates a Graeco-Latin square. A single repeated partnership is assigned for every student in the last two rows
+
Uniqueness of Solutions The solutions given are not unique. Row and column designations can be exchanged and rows (columns) may be interchanged to alter the structure of a square. On occasion I have found it useful to alter the N = 6 table to obtain assignments which do not duplicate partnerships for everyone two weeks in a row. An alternate example is given below which has higher symmetry and distributes duplicate partnerships throughout the table
The schedules described above apply to many situations other than the rare situation where the number of student ~ -a~i -r -is r -s - the same as the number of exneriments reauired. to these I have not yet figured Out a way to the eeneral case where dunlicate annaratus is available for .. certain experiments. ~ h e ' t h i r d treatment below is sometimes applicable in this situation, depending on the num~~~~
~~~
~
~
~
~
~
- -
herainvnlvnd~ -. .... . .. .-.
The number of students is not an even number. This situation is treated by adding a dummy student to the class list. Students paired with the dummy must perform that exneriment alone. If the exneriment reauires occasional 2 d from a second person thk instructor can provide it. If the exneriment can onlv be performed bv two persons, the assignment table st&ctur& may be altered b; interchanging rows (columns). The number fP)of pairs is greater than the number (N) of experiments required: f P > N). This is the situation I encounter most frequently. This situation is treated by introducing P - N phony experiments (I call them R & R) and then constructing a P x P table. Students adsigned to phony experiments are excused from lab that week. Note that it requires P weeks for all students to complete N experiments. Thus, in a 15 week semester, a maximum of thirty students may enroll in a laboratory course, even if only ten experiments are required (as long as there are only ten experimental setups available). The number (El of experimental setups available is greater than the number (N) of experiments required and greater than or equal to the number (Pi of pairs: fE > N; E 2 P). This situation can he treated by constructing an E x E table and truncating the table after P rows (weeks). The number (N) of experiments required is greater than the number (P) of pairs: IN > P). This situation can often he treated without resorting to one of the schemes desribed here. Since N > P implies that some experimental apparatus is unused each week, conflicts are not usually a problem. While it may not be the most efficient schedule, bne can be made u p by dividing the experiments into P X P blocks, adding phony experiments where they are needed to fill out a block. One advantaee of this method is that everyone finishes the first I' experiments at the same time and before bezinninz the second P experimenti. T h ~ s may be convenientin terms of lab setups-or report grading. Experiments are classified into subgroups. This situation might arise if a subgroup of experiments are interrelated. For example, five of the ten experiments required might all be devoted to the study of the physical properties of a particular binary liquid system. This situation may he treated by dividing the class in half and viewing the class as two separate classes. A schedule may then be constructed hy one of the techniques described above. Acknowledgment
The author acknowledges the helpful comments of Dr. Richard Orr. 'Base, R. C., Parker, E. T., and Shrikhande, S., Can. J. Math., 12, 189 (1960).
Volume 52, Number 5, May 1975
/
337