Algorithm to Solve Most of a Problem
- by Mike G
I need an Algorithm/Design Pattern that allows me to try to get the maximum number of rules followed. So I have a couple teams and I need to pair them with a referee and against each other into a round robin. There a rules on who can compete with who and who can judge who so I need to find the configuration that satisfies the most of these. Some rules are more important than others and are "worth more" when evaluating "what satisfies the most of them"
There probably isn't a algorithm for this, but is there a design pattern that could help me maximize my chances of finding this configuration?