0

Basically I have a group of people who rate each other from 1-10. I want to find the best way to get them into groups of 5, or preferably be able to change the group size easily.

My main issue with my previous attempts has been efficiency, as there are 1000+ people.

Some additional info is the data comes from a csv but I can convert that to any input that works better, and I have to write in python but again I am happy to convert from another language if someone finds a solution to this problem.

A similar problem I've found is a variation of the stable marriage problem where the group size is customizable.

https://www.reddit.com/r/learnpython/comments/ga0anm/comment/fowyem6/?utm_source=share&utm_medium=web2x&context=3

This is where I found an explanation to that problem. I'm just unsure how to make this work and optimize it for ratings out of ten instead of ordered preferences.

Thanks for any help

Artemis
  • 13
  • 3

0 Answers0