Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6541995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:10:21+00:00 2026-05-25T11:10:21+00:00

I am building a small website for volleyball (personal interest). Appreciate help in algorithm

  • 0

I am building a small website for volleyball (personal interest). Appreciate help in algorithm for scheduling the games such that

  1. It can work for arbitrary number of teams and groups. Round-robin within each group. So if there are 6 teams in a group then there will be a total of 15 games in that particular group.
  2. A game lasts for 30 mins
  3. The schedule is evenly distributed i.e. a team is not required to play consecutively
  4. Each team is playing in approx equally distributed intervals i.e. a team shouldn’t play their 1st game at 8 AM and wait until evening for their next 2 games
  5. We can schedule games starting from 8 AM until 4 PM.

6 teams is just an example. I am looking for a general algorithm that works for arbitrary number of teams, courts and groups.

Regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:10:22+00:00Added an answer on May 25, 2026 at 11:10 am

    I’m not sure this needs an algorithm. Since it’s round robin with a fixed number of teams and games, you can really just set up a schedule (same on both courts).

    Let me explain and tell me if you need something more.

    There will be 15 games, with each team playing each other team so each team plays 5 games. You can run the tournament by playing 5 sets of 3 games where each team plays once in each set.

    Example:

    1-2
    3-4
    5-6

    1-3
    2-5
    4-6

    3-5
    1-4
    2-6

    1-5
    2-4
    3-6

    4-5
    1-6
    2-3

    The longest interval possible for any team between games is 4 slots (2 hours).
    No team will play two consecutive games. Just plug the team names in and go.

    Total playing time is 7.5 hours which just fits within your 8am-4pm window.

    Note: I just put this together quickly. It may be possible to re-order things so that the longest interval is actually 3 games, not 4 without sacrificing the no-consecutive-game rule. As it stands, only one team goes the max interval (team 3 between sets 3 and 4). If that matters, it’s worth looking into, but practically speaking, I think this would be fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a website that uses xsl stylesheets, and I'm building up a small
I am building a very small temprorary website that needs a small backing store.
I'm currently building a small website where I write down problems that arise and
Here's my situation: I'm building a small website where, when registring, you can select
I work at a small website building company and on one of our clients
I'm building a small website that let users recommend their favourite books to eachother.
I am building a small website that has a fairly large amount of pictures
I'm building a small-scale website (a personal one) in which each page would have
I am building a website that is basically a small Content Management System. (in
I am building a small website for fun/learning using a fairly standard Web/Service/Data Access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.