Presentation is loading. Please wait.

Presentation is loading. Please wait.

Kirkman’s Schoolgirl Problem Charlie, Law Ka Kui Billy, Lai Ka Hin.

Similar presentations


Presentation on theme: "Kirkman’s Schoolgirl Problem Charlie, Law Ka Kui Billy, Lai Ka Hin."— Presentation transcript:

1 Kirkman’s Schoolgirl Problem Charlie, Law Ka Kui Billy, Lai Ka Hin

2 PRESENTATION OUTLINE Kirkman's schoolgirl problem Round-robin Tournament Algorithm to find the solution (Frost method) Algorithm to find the solution for special cases (n ppl in a group, n days, n prime)

3 KIRKMAN’S SCHOOLGIRL PROBLEM: Fifteen young ladies in a school walk out three abreast for seven days in succession: it is required to arrange them daily so that no two shall walk twice abreast. Day 1Day 2Day 3Day 4Day 5Day 6Day 7

4 FIRST WE CONSIDER THE CASE WHEN EACH GROUP CONSISTS OF 2 PEOPLE

5 RULES (2 PEOPLE IN EACH GROUP) Consider a Big Group of n participants, where n is even Each day, we divide them into several small groups Each small group consists of 2 participants Each participant joins exactly 1 small group each day No two participants join the same group more than once

6 2 PARTICIPANTS EACH GROUP No of Small Groups formed: No of Groups formed Each Day: No of Days to exhaust all possibilities:

7 2 PARTICIPANTS EACH GROUP Round-robin Tournament Two participants (or groups) compete against each other once Examples: Football Leagues Chess Tournament Go Tournament

8 2010 FIFA WORLD CUP GROUP A Four teams: Uruguay Mexico South Africa France Number of Matches: Number of Matches Each Day: Number of Days:

9 FIXTURE DateTeamResult 11/6(Match1)v.s.1:1 11/6(Match2)v.s. 16/6(Match3)v.s.0:3 17/6(Match4)v.s.0:2 22/6(Match5)v.s.0:1 22/6 (Match6)v.s.1:2 0:0

10 QUESTION 8 people, Andy, Benjamin, Chris, Dorothy, Ewan, Francisca, Greg, Hillary are in a meeting of AA (Alcoholics Anonymous) The coordinator wants to arrange them into groups of two so that they can share their experience with every other member Assume that each member meets each other member only once and all of them participate only once each day

11 QUESTIONS (CONT’D) What is the number of small groups formed each day? Ans: 4 How many days do they need to complete the session? Ans: 7 What is the number of small groups that can be formed? Ans: 28 Homework (1): Draw the timetable of the meetings

12 RULES (3 PEOPLE IN EACH GROUP) Consider a Big Group of n participants, where n is divisible by 3 Each day, we divide them into several small groups Each small group consists of 3 participants Each participant joins exactly 1 small group each day No two participants join the same group more than once

13 3 PARTICIPANTS EACH GROUP Question: What is the total number of small groups?

14 3 PARTICIPANTS EACH GROUP Number of small Groups Each Day: Number of Days: Total number of small groups:

15 CHINESE POKER ( 鬥地主 ) LEAGUE 9 participants (named by 1,2,3,4,5,6,7,8,9) 3 participants in each game 3 games each day The league lasts for 4 days Each participant only plays once a day No two participants meet more than once Question: How can we construct the fixture?

16 FROST’S METHOD First, we consider the fixture for player1, WLOG Each cell in the first row is filled with (1,a1,a2), (1,b1,b2),(1,c1,c2), (1,d1,d2) respectively Day 1Day 2Day 3Day 4 1, a 1, a 2 1, b 1, b 2 1, c 1, c 2 1, d 1, d 2

17 FROST’S METHOD CONT’D Then, we can think about if it is a, then it is a1 or a2.

18 FROST’S METHOD CONT’D Then, we can think about if it is ‘a’, then it is a1 or a2.

19 FROST’S METHOD CONT’D If a 1 =2, a 2 =3, b 1 =4…. Solution:

20 KIRKMAN’S SCHOOLGIRL PROBLEM: Fifteen young ladies in a school walk out three abreast for seven days in succession: it is required to arrange them daily so that no two shall walk twice abreast. Day 1Day 2Day 3Day 4Day 5Day 6Day 7

21 KIRKMAN’S SCHOOLGIRL PROBLEM(2) 15 young ladies (1,2,3,4…15) 3 participants a group 7 days Each lady only walks once a day No two ladies walk abreast more than once

22 S OLUTION (1) 15 elements { 1, a 1, a 2, b 1, b 2, c 1, c 2, d 1, d 2, e 1, e 2, f 1, f 2, g 1, g 2} Using the seven letters a, b, c, d, e, f and g, we form groups of triplets in which each pair of letters occurs exactly once: {abc, ade, afg, bdf, beg, cdg, cef}

23 S OLUTION (2) SunMonTueWedThuFriSat 1,a1,a21,b1,b21,c1,c21,d1,d21,e1,e21,f1,f21,g1,g2 b, d, fa, d, e a, b, c b, e, ga, f, g a, d, e c, d, g b, d, fb, e, gb, d, fb, e, gb, d, f c, e, f b, e, gc, e, fc, d, g c, e, f {abc, ade, afg, bdf, beg, cdg, cef}

24 SOLUTION(3)----HW (FINISH THE TABLE) SunMonTueWedThuFriSat 1,a1,a21,b1,b21,c1,c21,d1,d21,e1,e21,f1,f21,g1,g2 b1, d1, f1a1, d, e a2, b, c a1, b, c b2, e1, g1a2, f, g a1, f, ga1, f1, ga2, d, e c1, d2, g2c1, d, gb1, d, fb1, e, gb2, d, fb1, e, gb2, d, f c2, e2, f2c2, e, fb2, e, gc1, e, fc2, d, g c1, e, f

25 S OLUTION (4) Try to fill out a 1, a 2, b 1, b 2, c 1, c 2, d 1, d 2, e 1, e 2, f 1, f 2, g 1, g 2 into the box Substitute 2,3,4…15 into a1,a2….g2 Then, get the solution!!!!

26 ANOTHER ALGORITHM FOR CHINESE POKER( 鬥地主 ) LEAGUE(1) This method can be used if n 2 participants n participants a group n days *** n must be a prime number *** Example: 25 participants,5 a group,5 gorups each day 49 participants,7 a group,7 groups each day 121 participants, 11 a group, 11 groups each day

27 ANOTHER ALGORITHM FOR CHINESE POKER( 鬥地主 ) LEAGUE(2) D1G1G2G3 123 456 789 D2G1G2G3 123 ←1564 ←2897 D3G1G2G3 123 ←1645 ←2897 D4G1G2G3 147 258 369

28 ANOTHER ALGORITHM FOR CHINESE POKER( 鬥地主 ) LEAGUE(3) 123...n n+1n+2....2n 2n+12n+2....3n..................... n 2 -n+1.....n2n2 ←0 123...n ←1 n+2n+3....n+1 ←2 2n+32n+4....2n+2........................ ←(n-1) n2n2.....n 2 -1

29 HOMEWORK 1. Draw the timetable of the meetings in slide 11. 2. Finish the table on slide 24 Extra Credit: Explain why the last algorithm fails when n is not a prime number

30 O NLINE D ISCUSSION Would you suggest some daily applications? Which of the following is a better way to organize a contest, a round-robin or knock-off tournament? Why?


Download ppt "Kirkman’s Schoolgirl Problem Charlie, Law Ka Kui Billy, Lai Ka Hin."

Similar presentations


Ads by Google