Scheduling matches to allow shared transport; or, How to get free - - PowerPoint PPT Presentation

scheduling matches to allow shared transport or how to
SMART_READER_LITE
LIVE PREVIEW

Scheduling matches to allow shared transport; or, How to get free - - PowerPoint PPT Presentation

Scheduling matches to allow shared transport; or, How to get free tickets to your local teams home games Christopher Tuffley Institute of Fundamental Sciences Massey University, Manawat u 2011 New Zealand Mathematics Colloquium


slide-1
SLIDE 1

Scheduling matches to allow shared transport;

  • r,

How to get free tickets to your local team’s home games

Christopher Tuffley

Institute of Fundamental Sciences Massey University, Manawat¯ u

2011 New Zealand Mathematics Colloquium University of Auckland

slide-2
SLIDE 2

A request for help

In January Manawat¯ u Rugby asked us for help optimising their rugby draw. Local competition has twelve clubs and two divisions

Ten clubs have a team in division 1 All twelve clubs have a team in division 2

Division 1: two rounds of tournament play, over 18 weeks

Each team plays

  • ne game per week

every other team twice

Draw for weeks 1–9 and 10–18 are identical, with home and away swapped

Division 2: one round of tournament play, during weeks 1–11 of division 1

slide-3
SLIDE 3

The problem

Definition Two clubs have a common fixture if their division 1 and 2 teams both play each other in the same week, at the same venue. Problem Maximise the number of common fixtures, keeping the spread as fair as possible.

slide-4
SLIDE 4

The problem

Definition Two clubs have a common fixture if their division 1 and 2 teams both play each other in the same week, at the same venue. Problem Maximise the number of common fixtures, keeping the spread as fair as possible. Constraint The supplied draws should be used. The division 1 draw should remain unaltered. Find the best match by re-ordering the division 2 weeks

  • nly.
slide-5
SLIDE 5

The common fixtures graph

Given draws for each division, draw edge

n m (A,B)

if clubs A and B have a common fixture if division 1 week n is matched with division 2 week m. Construct the graphs using a computer — I used

1

GNU Octave to determine the edges, and express them in the dot graph description language;

2

neato from the Graphviz package to draw them.

slide-6
SLIDE 6

The common fixtures graph: the supplied draws

1 6 (4,8) 8 (6,10) 1 2 (8,5) 2 3 7 (5,9) (4,1) 3 4 (10,3) (9,6) (1,5) 4 5 9 (5,2) 5 6 (2,6) (10,4) 7 (5,10) (3,7) (1,9) 8 (9,10) 10 (8,1) (6,3) 9 11 (3,8) 10 (7,5) (9,3) (1,2) 11 (4,9) (6,7) (3,1) (2,10)

slide-7
SLIDE 7

The common fixtures graph: the supplied draws

1 6 (4,8) 8 (6,10) 1 2 (8,5) 2 3 7 (5,9) (4,1) 3 4 (10,3) (9,6) (1,5) 4 5 9 (5,2) 5 6 (2,6) (10,4) 7 (5,10) (3,7) (1,9) 8 (9,10) 10 (8,1) (6,3) 9 11 (3,8) 10 (7,5) (9,3) (1,2) 11 (4,9) (6,7) (3,1) (2,10)

Three ways to achieve 14 common fixtures, distributed as follows: Team 1 2 3 4 5 6 7 8 9 10 Share 4 2 5 5 3 2 3 3 1 2 2 4 1 3 5 3 2 5 1 3 2 4 1 4 4 3 2 4 1

slide-8
SLIDE 8

A second consideration

Definition Two clubs have an opposite fixture if their division 1 and 2 teams play each other in the same week, at different venues. (Each club has a home and an away game against the other.) Add to common fixtures graph: Common fixtures: blue edges Opposite fixtures: red edges n m (A,B) k l (C,D)

slide-9
SLIDE 9

The revised common fixtures graph

14 common fixtures ⇒ 17 or 18 opposite fixtures! Reversing home and away does better: get 20 common fixtures, at cost of 10–12 opposite fixtures.

slide-10
SLIDE 10

The revised common fixtures graph

14 common fixtures ⇒ 17 or 18 opposite fixtures! Reversing home and away does better: get 20 common fixtures, at cost of 10–12 opposite fixtures. Conclusion: the supplied draws do not match well.

slide-11
SLIDE 11

Trying again (and breaking the constraint) . . .

Reverse home/away selectively to eliminate opp. fixtures. Tweak team 11 and 12 travel to ensure all teams have 5 or 6 home/away games each.

slide-12
SLIDE 12

How do we do now?

Based on graph, use computer to evaluate 23 · 35 · 62 ≈ 70, 000 matchings — about 0.2% of the 11! possible.

slide-13
SLIDE 13

How do we do now?

Based on graph, use computer to evaluate 23 · 35 · 62 ≈ 70, 000 matchings — about 0.2% of the 11! possible. Optimum: 30 common fixtures, with no opposite fixtures Each club gets 5–7 common fixtures. . .

slide-14
SLIDE 14

How do we do now?

Based on graph, use computer to evaluate 23 · 35 · 62 ≈ 70, 000 matchings — about 0.2% of the 11! possible. Optimum: 30 common fixtures, with no opposite fixtures Each club gets 5–7 common fixtures. . . . . . except for club 10, which gets 2.

slide-15
SLIDE 15

How do we do now?

Based on graph, use computer to evaluate 23 · 35 · 62 ≈ 70, 000 matchings — about 0.2% of the 11! possible. Optimum: 30 common fixtures, with no opposite fixtures Each club gets 5–7 common fixtures. . . . . . except for club 10, which gets 2. A fairer matching: 26 common fixtures, no opposite fixtures Each club gets 4–8 common fixtures.

slide-16
SLIDE 16

Why is club 10 disadvantaged?

slide-17
SLIDE 17

Let’s see if we can’t do a bit better. . .

Keep div. 1 schedule, and copy weeks 1–9 for div. 2

slide-18
SLIDE 18

Let’s see if we can’t do a bit better. . .

Keep div. 1 schedule, and copy weeks 1–9 for div. 2 Insert games against clubs 11 and 12:

11

division 2, week n division 1, week n

12

— gives four common fixtures per week.

slide-19
SLIDE 19

Let’s see if we can’t do a bit better. . .

Keep div. 1 schedule, and copy weeks 1–9 for div. 2 Insert games against clubs 11 and 12:

11

division 2, week n division 1, week n

12

— gives four common fixtures per week. Move the eliminated games to weeks 10 and 11.

slide-20
SLIDE 20

How do we choose the games to move?

Need: one from each week 1–10 two games per team the chosen games to form two rounds of play. — use computer to find a collection of cycles of even length, with one edge from each week.

slide-21
SLIDE 21

How do we choose the games to move?

Need: one from each week 1–10 two games per team the chosen games to form two rounds of play. — use computer to find a collection of cycles of even length, with one edge from each week.

11 12 11 12

Week 10 Week 11 wk 10

slide-22
SLIDE 22

The new common fixtures graph

1 1 (5,7) (4,8) (3,9) (6,10) 10 (2,1) 2 2 (10,2) (1,3) (8,5) (7,6) (9,4) 3 3 (4,1) (6,8) (5,9) (7,10) 11 (3,2) 4 4 (10,3) (2,4) (1,5) (8,7) (9,6) 5 5 (6,1) (5,2) (4,3) (7,9) (8,10) 6 6 (3,5) (2,6) (1,7) (9,8) (10,4) 7 7 (5,10) (4,6) (2,8) (1,9) (3,7) 8 8 (7,2) (6,3) (5,4) (9,10) (8,1) 9 9 (10,1) (2,9) (3,8) (4,7) (6,5) 10 (7,5) (8,4) (9,3) (10,6) (1,2) 11 (2,10) (3,1) (5,8) (6,7) (4,9)

4 × 9 + 1 = 37 common fixtures (get an extra in week 10) Each team gets 7 or 8. At most 1 off optimal (a missed opportunity in week 11?).

slide-23
SLIDE 23

Reporting back

Outlined all four options discussed above Sent only the last two draws, but offered to prepare the

  • thers if wanted.
slide-24
SLIDE 24

Response

I have done a draw using the recommended

  • ption 4 and it has turned out great.

As an added bonus sometimes teams are at the same venue even when playing different opposition. It’s turned out to be a much closer match than we would have ever anticipated. A really big thanks for your work - it must have taken you some time. Are you interested in rugby? If so I’d like to give you a pair of season tickets to the Turbos. Let me know.