Hi,
I'm at a loss. It seems I'm terrible at math and not much better at scripting
Here's my issue: I'm developing matching software for a speed dating like event. There will be roughly 20 people from 2 different categories ranking each other after a series of first round "dates". Think of them as 10 males and 10 females.
After the first round, each person will submit their top 5 choices and we will come up with their 3 best matches for the 2nd round of dates based on comparing everyone's top choices. I've already written some supremely inelegant but functional code to do the optimal matching based off how hospitals do it for residency matches.
I know that it should be possible then to properly distribute these 30 matches into 3 sets of 2nd round "dates" but have no clue how to do it and would greatly appreciate any suggestions. Here's an example of 30 matches from one scenario I ran where A-J are the men and 01-10 are the women:
A4, A5, A10, B01, B2, B10, C3, C4, C6, D7, D9, D10, E3, E8, E9, F2, F4, F8, G3, G6, G9, H01, H5, H8, I01, I2, I7, J5, J6, J7
I need to split them into tables like:
Round 2-1: A4, B01, C3, D7, E8, etc
Round 2-2: A5, B2, C4, D9, E3, etc
Round 2-3: A10, B10 (whoops! can't do that - see how hard this is?)
Thank you for any suggestions!
-Jim