Hmm?
I made some mistakes in Post #23 hopefully this version will work better, it has been updated to allow for this new, or clarified, rule
How many row start with number “1” dictate how many letters we are going to use
Now for the crunch...
The "Social Golfer Problem"
That is hopefully not what you are trying to find an answer to, it certainly is not what you have so far asked for.
In this problem
01 02 03 04 05
01 05 03 04 02
Would give you A, B
But in the Social Golfer the second line is unacceptable because 02 and 03 appear together, 05 & 02 are in both groups but this can be acceptable depending on the application of the problem, consider Kirkmans' Ladies.
The more I think of it the more it confuses me, the rules must be clearly stated before any attempt at a solution is attempted.
If this latest code doesn't give you the result you are expecting, then you are on your own, unless you can clearly define the brief.
Cheers and good luck
Alistair
Bookmarks