[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

551.0. "Round Robin Scheduling" by CEDSWS::SESSIONS (Here today, gone tomorrow.) Fri Aug 01 1986 02:26

    
    
    	After viewing some of the topics in this conference, I realized
    	that this problem may be too simple to pose here, but I couldn't
    	decide on a better conference.
    
    	A friend of mine owns a local billiard establishement and is
    	attempting to start up 8-ball leages similar to a bowling
    	league. He has asked me to write a program for his Commodore
    	to keep track of point averages, team standings, etc.
    
    	One thing he wishes is to also provide a weekly schedule of
    	which team plays which each week. The method of scheduling is
    	known as round robin scheduling, that is, each team playes each
    	other team at least once in each round. A season may consist
    	of two or three consecutive rounds. Each round must complete
    	before the next one starts.
    
    	My question is, is there a formula which provides this scheduling
    	for n teams?
    
    	For instance, if there are 8 teams in the league the pairings
    	for the first week are:
    
    	1-2   3-4   5-6   7-8
    
    	How are subsequent weeks pairings decided?
    
    zack
    
T.RTitleUserPersonal
Name
DateLines
551.1Try a Chess or Bridge club.MODEL::YARBROUGHFri Aug 01 1986 13:0511
    Ask any Bridge club director. Such movements are published in the
    Director's handbook for many numbers of teams. The specific movements
    you want are called "Howell"'s. They are actually not used very
    much in Bridge tournaments, because they can get very complicated,
    and there are no really simple rules that apply to all numbers of
    teams. In other words, the pairings for 12 teams behave quite 
    differently from the pairings for 10 teams. And adding a team at
    the last minute, or after the first round, can really screw things
    up.
    
    No, the problem is not too simple to pose here. Not by a long shot.
551.2Trouble in River CityCHOVAX::YOUNGChi-SquareTue Aug 05 1986 13:1559
    Well, I hate to disagree with anyone who has Lynn's reputation of
    being correct, BUT I think that your situation is not all that bleak
    Zack.
    
    For an odd number of players there exists a simple algorithim that
    unless I'm mistaken, will satisfy all of your requirements:
    
    	Given n an odd integer
    	 and  r, and j the round and player that you are interested in;
    			(j is numbered from 0 to n-1)
               
    	Calculate	p = ((j+r) mod n) + 1
    
    	  If  (p < (n+1)/2)  then assign player j to table T = p.
    	  If  (p > (n+1)/2)  then assign player j to table T = (n-p).
    	  If  (p = (n+1)/2)  then player j has a bye.
    
    I guess this sounds a litle complicated, but it looks like this:
    
    TABLE	ROUND-1	ROUND-2	ROUND-3	ROUND-4	ROUND-5	ROUND-6 ROUND-7
    
     1		 1-7	 7-6     6-5     5-4     4-3     3-2     2-1
     2		 2-6     1-5     7-4     6-3     5-2     4-1     3-7
     3		 3-5     2-4     1-3     7-2     6-1     5-7     4-6
    bye		  4       3       2       1       7       6       5
    
    
    Now for an even number of players it is only slightly more involved:
    
    	Take the solution for n-1 players (an odd number).  Instead
    	of having one player get a bye, the n-th player will always
    	play him instead.
    
    Thus our 7-player solution can be made into an 8-player solution
    like so:
    
    TABLE	ROUND-1	ROUND-2	ROUND-3	ROUND-4	ROUND-5	ROUND-6 ROUND-7
    
     1		 1-7	 7-6     6-5     5-4     4-3     3-2     2-1
     2		 2-6     1-5     7-4     6-3     5-2     4-1     3-7
     3		 3-5     2-4     1-3     7-2     6-1     5-7     4-6
     4		 4-8     3-8     2-8     1-8     7-8     6-8     5-8
    
     
    It so happens that these are NOT the pairings used in a Howell movement
    (at least according to my Encyclopedia of Bridge).  I belive that
    this is because bridge tournaments have one more very important
    constraint.  That is that the "hands" must also be evenly distributed,
    and this algorithim does not solve that problem for the even numbered
    case.  If you look at the 8-player tournament above, replacing "table",
    with "hand" you will see that player #8 is always playing hand #4.
    Now it is true that permutating the above can produce an acceptable
    solution to this problem, but its not always straightforward.
    
    Fortunately for you, Zack pool tournaments usually have no such
    requirements.  ( 9^} )
    
    -- Barry
    
551.3Oops. Sorry.CHOVAX::YOUNGChi-SquareTue Aug 05 1986 13:2410
551.4Chess, not BridgeMODEL::YARBROUGHTue Aug 05 1986 21:352
    Right. I should have specified a CHESS club director, not Bridge.
    The Bridge problem is significantly more difficult.
551.5Debate & BridgeCHOVAX::YOUNGChi-SquareWed Aug 06 1986 00:3158
    Actually the more difficult Bridge problem hints at an evem more
    diffcult and much more significant (mathematically) class of problems.
    
    When I was in high school I was very active in our high school debate
    team and participated in the season long local high school tounaments.
    Now each school had 2 teams, an affirmative team, and a negative
    team, as well as one judge, referees the debates.
    A debate consists of one schools affirmative team debating
    anothers negative team, and is judged by a third schools judge.  The
    tournaments consisted of one full rotation, that is:
    
    	Each schools affirmative team was to meet every other schools
    	negative team exactly once.
    
    	Each schools affirmative team, and negative team was to be judged
    	by every other teams judge exactly once.
    
    And naturally, a school never debated itself, or was judged by itself.
    It turns out that this problem is trivial for an odd number of schools,
    but we usually had 12 schools in the tournament, and we would play
    one round of the tournament each week, until the full rotation was
    completed.  For an even number of teams, the problem was not only
    difficult, it was widely belived to be impossible, not only by
    frustrated tounament directors of various sports, but also by
    mathematicians for well over a hundred years.
    
    In Bridge, for instance this kind of tournament is called a "Mitchell"
    movement, and an odd number of tables uses exactly the simple solution
    that I alluded to earlier.  The even numbered movements, however,
    compromise by having one table sit idle every round, and another
    table playing an extra set of hands.  In debate, we compromised
    by having all the teams miss being judged once by one judge,
    and instead be judged a second time by one other judge.
    
    However, I think that it was when I was a sophomore in college,
    this problem was solved for even numbered cases.  Although it had
    not been previously proven to be impossible, it had been widely
    suspected as being impossible.  Now however, sucessful examples
    were demonstrated for the 6 & 8 numbered cases, and a general theory
    and method (I think (?)) had been formulated regarding even numbered
    cases.
    
    So, seeing as cookies are the standard prize, I offer a cookie to
    each of the first people to:
    
    	A)  Identify the name of the problem in mathematics, who is
    	credited with first stating the problem, and finally who solved
    	it.
    
    	B)  Give an example of a 12-numbered rotation, WITHOUT looking
    	it up.
    
    
    -- Barry
    
    (Note: since it took hundreds of years for someone to find an example
    of an even numbered solution you may assume that (B) is VERY hard.)
    
551.6Lets resurrect this one...DWOVAX::YOUNGformerly CHOVAX::YOUNGMon Jul 11 1988 17:484
    My offer of a cookie for solving .5 a, & b still stands open.
    
    
    --  Barry
551.7Answer (of sorts)ELIS::BUREMAIn the middle of life is if...Fri Nov 02 1990 07:4825
551.8wow, this goes back!CHOSRV::YOUNGThe OOL's are not what they seem.Fri Nov 02 1990 17:2213
    Holy cow, this is a blast from the past!
    
    Well I must have been a lot smarter back then because I can hardly
    remember any of this stuff at all.
    
    What I do remember is that they were called "Gaussian Squares" and an
    articale detailing them and their solution appeared in a Scientific
    American article (but NOT in Mathematical Games) sometime between 1975
    and 1977.  Perhaps someone who has access to a good library could try
    to look it up and see if Wildrik and I are talking about the same
    thing?
    
    --  Barry