1
$\begingroup$

Let's say I have a group of people that meets every week. I would like to assign them to groups of 4. How can I assign these people such that, week after week, collectively, every group consists largely of "strangers"?

For example, John, Paul, George, and Ringo being assigned together means John has been grouped with Paul a minimum amount of times, and George has been assigned together with Ringo a minimum amount of times, etc. Same with John and George, John and Ringo, Paul and George, etc. Not only that, but the other 5 groups must consist of people who are largely "strangers" to each other.

Here's the big kicker. Let's also say that week after week, the people are not the same. Sometimes new people get introduced to this group (substitutions). Some weeks there can be less people or more people. Order doesn't matter. How would I tackle this problem?

For full context, I am trying to automatically assign people in groups of 4 for a 2v2 volleyball league that plays every week, and I can't really count on people to show up every week.

asked Mar 31, 2024 at 3:33
$\endgroup$

1 Answer 1

0
$\begingroup$

A standard approach that is very general is to formulate this as an instance of integer linear programming, and apply an off-the-shelf ILP solver. The field of operations research deals with a lot of combinatorial optimization problems, such as arise in scheduling and logistics, and ILP solvers are one standard tool for this (there are other tools as well).

answered Mar 31, 2024 at 4:44
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.