Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Round-robin tournament scheduling, with teams that may share their home field

Round-robin tournament scheduling, with teams that may share their home field

Scheduled Pinned Locked Moved Algorithms
tutorialsharepointalgorithmshelp
2 Posts 2 Posters 27 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mad Bat
    wrote on last edited by
    #1

    Hello! I need to implement an algorithm to create round-robin tournament schedules, but with the constraint that up to 2 teams – that may play in different leagues – might share the same field on the same time slot of the week, so they must be never be scheduled to play at their home field in the same round of their league schedule. Simple example:

    leagueA = [
    TeamA(plays at FieldA on Sunday),
    TeamB(plays at FieldB on Sunday),
    TeamC(plays at FieldA on Saturday),
    TeamD(plays at FieldD on Saturday)
    ]
    leagueB = [
    TeamE(plays at FieldA on Sunday),
    TeamF(plays at FieldF on Sunday),
    TeamG(plays at FieldG on Saturday),
    TeamH(plays at FieldF on Saturday)
    ]

    I was thinking of generating the schedule for leagueA with the circle algorithm alternating home and away at each round as described in the linked article, and then to approach the scheduling for leagueB by prefilling the slots for the teams that share the field with teams in the other league somehow, but I'm not sure whether it's the right approach and how to actually implement it in a way that is guaranteed to produce schedules do not produce conflicts. Any help would be highly appreciated!

    L 1 Reply Last reply
    0
    • M Mad Bat

      Hello! I need to implement an algorithm to create round-robin tournament schedules, but with the constraint that up to 2 teams – that may play in different leagues – might share the same field on the same time slot of the week, so they must be never be scheduled to play at their home field in the same round of their league schedule. Simple example:

      leagueA = [
      TeamA(plays at FieldA on Sunday),
      TeamB(plays at FieldB on Sunday),
      TeamC(plays at FieldA on Saturday),
      TeamD(plays at FieldD on Saturday)
      ]
      leagueB = [
      TeamE(plays at FieldA on Sunday),
      TeamF(plays at FieldF on Sunday),
      TeamG(plays at FieldG on Saturday),
      TeamH(plays at FieldF on Saturday)
      ]

      I was thinking of generating the schedule for leagueA with the circle algorithm alternating home and away at each round as described in the linked article, and then to approach the scheduling for leagueB by prefilling the slots for the teams that share the field with teams in the other league somehow, but I'm not sure whether it's the right approach and how to actually implement it in a way that is guaranteed to produce schedules do not produce conflicts. Any help would be highly appreciated!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Sounds like a "static" schedule; which you imply by ignoring winners and losers; so any feasible schedule you generate, first time out, will do. (And "schedules" doesn't come into it).

      "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups