1 / 40

Graph Theory as it Relates to Sports Scheduling By: Kelly Kinder

Graph Theory as it Relates to Sports Scheduling By: Kelly Kinder. Overview. Terminology of Graph Theory How Graph Theory Relates to Scheduling How I used Graph Theory to Create a Schedule for the National Basketball Association.

awena
Télécharger la présentation

Graph Theory as it Relates to Sports Scheduling By: Kelly Kinder

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graph Theory as it Relates to Sports Scheduling By: Kelly Kinder

  2. Overview • Terminology of Graph Theory • How Graph Theory Relates to Scheduling • How I used Graph Theory to Create a Schedule for the National Basketball Association

  3. A graph is a finite set of dots called vertices connected by lines called edges which can be directed.

  4. Representations of Graphs • Graphs are represented graphically by drawing a dot for every vertex, and drawing an arc between two vertices if they are connected by an edge. If the graph is directed the direction is indicated by drawing an arrow on the edge. Vertex Vertex Vertex Vertex

  5. Terminology of Graph Theory • Two edges are adjacent if they are connected by a common vertex. • An edge in a directed graph is known as an arc which is associated with an ordered pair of vertices (a, b). Vertex a is called the origin of the arc and vertex b is called the end of the arc. An arc is said to leave vertex a and come in to vertex b. a b

  6. Graph Theory Terminology • Each vertex in a directed graph has both an in-degree, as well as an out-degree. • The in-degree represents the number of edges entering the vertex. • The out-degree denotes the number of edges going out of the vertex. • The degree is the sum of the in-degree and the out-degree.

  7. Concepts of Graph Theory • A complete graph is a graph in which each pair of graph vertices is connected by an edge. • A complete graph with n vertices denoted by Kn is a graph with n vertices in which each vertex is connected to each of the others.

  8. Concepts of Graph Theory • An edge coloring of a graph is an assignment of colors to its edges so that no two adjacent edges have the same color. • The chromatic number of a graph is the least number of colors it takes to color its edges so that adjacent edges have different colors.

  9. Concepts of Graph Theory • A graph is bipartite if its vertices can be partitioned into two disjoint subsets U and V such that no two graphvertices within the same set are adjacent. U V • A Bipartite graph is a complete bipartite graph if every vertex in U is connected to every vertex in V. U V

  10. Concepts of Graph Theory • A complete tripartite graph is one where we can divide the vertex set into three sets V1 , V2 and V3 such that no two graphvertices within the same set are adjacent. • We represent the complete tripartite graph as Kr,s,twhere r is the number of vertices in V1, s the number of vertices in V2 and t the number of vertices in V3.

  11. Sports Scheduling and Round Robin Tournaments • In a round robin tournament, a given collection of teams play a competition such that every two teams play each other a fixed number of times. • A tournament is a directed graph which results from assigning unique directions to the edges of a complete graph.

  12. 1 2 3 4 Representations of Graphs as they relate to Round Robin Tournaments • We can represent every tournament by a tournament T where the vertices of T correspond to the individual teams. • The teams are represented by points and for each pair of points an arc is drawn from the visiting team to the home team.

  13. Representations of Graphs as they relate to Round Robin Tournaments • If a game i and j is played in the home-city of team i, it is a home game for i and an away game for j. Which can be represented by an arc (j,i). ji • Likewise, if the game is played in the home city of team j, the game can be represented by an arc (i,j). ji

  14. Graph Theory and Tournaments • The in-degree of a tournament would refer to the number of home games a team would play. • The out-degree of a tournament would refer to the number of away games a team would play.

  15. T R B F Representations of Graphs as they relate to Round Robin Tournaments • An oriented coloring in tournaments is obtained by partitioning the edges into n color classes such that no two adjacent edges have the same color. • Such a coloring defines a schedule as the following: if arc (i,j) has color p, it means that team i and team j play against each other in the home city of team j on day p. i j Team i plays team j on the day assigned to the blue coloring.

  16. 1 1 2 2 3 3 4 4 Putting Everything Together: • This graph represents a tournament T with four vertices. • Each vertex of the graph represents an individual team, • In this graph we have four teams: Team 1, Team 2, Team 3, and Team 4 • Each edge represents a competition between each team that it connects • In this graph their consists 6 edges and therefore there are 6 competitions in this tournament. • For each pair of vertices an arc is drawn from the visiting team to the home team • Each coloring corresponds to a specific day.

  17. Scheduling for the NBA • The National Basketball Association consists of thirty teams that play during a season running from the first week of November to the last week of April. • The NBA is divided into two conferences which is even further divided into divisions such that each conference is divided into 3 divisions: • 1) The Eastern (15 Teams) • Atlantic Division (5 Teams) • Central Division (5 Teams) • South East Division (5 Teams) • 2) The Western (15 Teams) • North West Division (5 Teams) • Pacific Division (5 Teams) • South West Division (5 Teams)

  18. Constraints for Scheduling the perfect NBA Season • Developing a schedule entails assigning a date for each of the 1,140 games to be played, such that these certain requirements are met: • Each team can only play one game on a given day. • Twenty-four hour turn around period after each game. • No team can play more than four home or away games in a row. • Each team will play every team in their division four times: • Two of which must be away games and Two of which must be home games. • Each team will play every team that is in their conference but not in their division three separate times. • Maximum of two home games for each team played. • Maximum of two away games for each team played. • Each team will play every team that is not in their conference two times. • One of which must be an away game and One of which must be a home game.

  19. Constraints for Scheduling the perfect NBA Season • Every Team will play 16 Division Games. • 8 Home Games and 8 Away Games • Every Team Will Play 30 Conference Games. • Home and Away Games will vary. • Every Team Will Play 30 Non-Conference Games. • 15 Home Games and 15 Away Games • Therefore, each team will play a total of 76 games • For a total of 1,140 games to be scheduled. • 240 Division Games • 450 Conference Games • 450 Non-Conference Games

  20. Scheduling for the NBA using Graph Theory Each NBA team will represent a vertex on the above map.

  21. 1 2 4 3 5 Scheduling for the NBA using Graph Theory • Divisions- Each Division is a Complete Graph with 5 vertices or T5 • Conference- Each Conference is a Complete Tripartite Graph T5,5,5 • Non-Conference (League)- A Complete Bipartite T15,15

  22. 1 1 1 1 1 1 2 2 2 2 2 2 5 5 5 5 5 5 3 3 3 3 3 3 4 4 4 4 4 4 Scheduling Divisions of the NBA using Graph Theory • Eastern : Atlantic Division Central Division South East Division • Western : North West Division Pacific Division South West Division

  23. 1 5 5 4 2 1 3 2 4 3 Scheduling Division Days 2 plays 5 on day Black 3 plays 4 on day Black 1 doesn’t play on day Black 1 plays 4 on day Blue 2 plays 3 on day Blue 5 doesn’t play on day Blue

  24. 2 3 4 2 1 3 3 4 5 5 4 1 2 5 1 Scheduling Division Games 5 plays 3 on day purple 1 plays 2 on day purple 4 doesn’t play on day purple 4 plays 2 on day red 5 plays 1 on day red 3 doesn’t play on day red 3 plays 1 on day green 4 plays 5 on day green 2 doesn’t play on day green.

  25. Scheduling Division Days Day 1Day 2Day 3Day 4Day 5 2 5 1 4 5 3 4 2 3 1 3 4 2 3 1 2 5 1 4 5 Day 6Day 7Day 8Day 9Day 10 2 5 1 4 5 3 4 2 3 1 3 4 2 3 1 2 5 1 4 5

  26. 1 1 5 5 2 2 3 3 4 4 Scheduling Division Games

  27. Scheduling Conference Games

  28. Scheduling Conference Games Three Different Possible Ways to Represent a Conference Day 3 Idle 1 Idle 5 Idle

  29. Conference Days: Day 1: Day 2: 5 1 2 3 4 1 2 3 4 5 7 15 6 11 8 11 7 12 9 12 8 13 10 13 9 14 6 14 10 15 4 5 1 2 3 3 4 5 1 2 8 14 9 13 9 15 10 14 10 11 6 15 6 12 7 11 7 13 8 12 Day 3: Day 4:

  30. 2 3 4 5 1 12 13 14 15 11 10 12 10 2 6 13 6 3 7 14 7 4 8 15 8 5 9 11 9 1 Day 6: Day 5: 15 11 12 13 14 11 12 13 14 15 7 5 6 1 8 1 7 2 9 2 8 3 10 3 9 4 6 4 10 5 Day 8: Day 7: 13 14 15 11 12 14 15 11 12 13 9 3 8 4 10 4 9 5 6 5 10 1 7 1 6 2 8 2 7 3 Day 9: Day 10:

  31. 12 13 14 15 11 10 6 7 8 9 Day 11: 10 2 12 2 6 3 13 3 7 4 14 4 8 5 15 5 Day 1Day 2Day 3Day 4Day 5Day 6 (1,6) (1,8) (2,15) (1,14) (1,12) (1,9) (2,7) (3,11) (3,14) (2,13) (2,10) (2,11) (4,12) (4,15) (4,8) (3,9) (3,6) (3,15) (5,11) (5,7) (5,9) (4,10) (5,13) (4,7) (8,13) (6,14) (6,12) (6,15) (7,14) (5,8) (9,14) (9,12) (7,13) (7,11) (8,15) (6,13) (10,15) (10,13) (10,11) (8,12) (9,11) (10,12) Day 7Day 8Day 9Day 10 Day 11 (1,15) (1,13) (1,10) (1,7) (1,11) (2,14) (2,9) (2,6) (2,8) (2,12) (3,8) (3,10) (3,7) (3,12) (3,13) (4,9) (4,6) (4,13) (4,11) (4,14) (5,10) (5,14) (5,12) (5,6) (5,15) (6,11) (7,15) (8,14) (9,13) (7,12) (8,11) (9,15) (10,14) 9 1 11 1

  32. Scheduling League Games • Western Conference • Eastern Conference

  33. 14 14 14 14 15 15 15 15 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 Scheduling League Days DAY 1 Eastern Conference Western Conference DAY 2

  34. 14 14 14 14 15 15 15 15 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 Scheduling League Days Day 3 Day 4

  35. 14 14 14 14 15 15 15 15 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 Scheduling League Days Day 5 Day 6

  36. Day 7 14 14 14 14 14 14 15 15 15 15 15 15 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 5 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 8 8 8 8 8 8 9 9 9 9 9 9 10 10 10 10 10 10 11 11 11 11 11 11 12 12 12 12 12 12 13 13 13 13 13 13 Day 8 Day 15

  37. Day 1Day 2Day 3Day 4Day 5 (1,1) (6,6) (11,11) (1,15) (6,5) (11,10) (1,14) (6,4) (11,9) (1,13) (6,3) (11,8) (1,12) (6,2) (11,7) (2,2) (7,7) (12,12) (2,1) (7,6) (12,11) (2,15) (7,5) (12,10) (2,14) (7,4) (12,9) (2,13) (7,3) (12,8) (3,3) (8,8) (13,13) (3,2) (8,7) (13,12) (3,1) (8,6) (13,11) (3,15) (8,5) (13,10) (3,14) (8,4) (13,9) (4,4) (9,9) (14,14) (4,3) (9,8) (14,13) (4,2) (9,7) (14,12) (4,1) (9,6) (14,11) (4,15) (9,5) (14,10) (5,5) (10,10) (15,15) (5,4) (10,9) (15,14) (5,3) (10,8) (15,13) (5,2) (10,7) (15,12) (5,1) (10,6) (15,11) Day 6 Day 7Day 8Day 9 Day 10 (1,11) (6,1) (11,6) (1,10) (6,15) (11,5) (1,9) (6,14) (11,4) (1,8) (6,13) (11,3) (1,7) (6,12) (11,2) (2,12) (7,2) (12,7) (2,11) (7,1) (12,6) (2,10) (7,15) (12,5) (2,9) (7,14) (12,4) (2,8) (7,13) (12,3) (3,13) (8,3) (13,8) (3,12) (8,2) (13,7) (3,11) (8,1) (13,6) (3,10) (8,15) (13,5) (3,9) (8,14) (13,4) (4,14) (9,4) (14,9) (4,13) (9,3) (14,8) (4,12) (9,2) (14,7) (4,11) (9,1) (14,6) (4,10) (9,15) (14,5) (5,15) (10,5) (15,10) (5,14) (10,4) (15,9) (5,13) (10,3) (15,8) (5,12) (10,2) (15,7) (5,11) (10,1) (15,6) Day 11Day 12Day 13Day 14Day 15 (1,6) (6,11) (11,1) (1,5) (6,10) (11,15) (1,4) (6,9) (11,14) (1,3) (6,8) (11,13) (1,2) (6,7) (11,12) (2,7) (7,12) (12,2) (2,6) (7,11) (12,1) (2,5) (7,10) (12,15) (2,4) (7,9) (12,14) (2,3) (7,8) (12,13) (3,8) (8,13) (13,3) (3,7) (8,12) (13,2) (3,6) (8,11) (13,1) (3,5) (8,10) (13,15) (3,4) (8,9) (13,14) (4,9) (9,14) (14,4) (4,8) (9,13) (14,3) (4,7) (9,12) (14,2) (4,6) (9,11) (14,1) (4,5) (9,10) (14,15) (5,10) (10,15) (15,5) (5,9) (10,14) (15,4) (5,8) (10,13) (15,3) (5,7) (10,12) (15,2) (5,6) (10,11) (15,1)

  38. Conclusion • Scheduling the National Basketball Association is a large and difficult problem. • The many complicated constraints involved make it nearly impossible to find a guaranteed optimal solution. • We have found, however, the best possible schedule such that fatigue and stress for the NBA players is minimized.

  39. Graph Theory Web Quest

  40. THE END

More Related