I am hosting a series of meetings. There are 24 guests. Two or three times each meeting, we break out into different subgroups of between 2-6 people. I would like to maximise the new encounters so I am looking for an algorithm to help me make new matches, so everyone can meet everyone else.
My current idea is to record the data in Google Sheets and then use the QUERY function to analyse the data. (QUERY is very similar to SQL syntax.)
Here's the 'Round1' table:
subgroup1 | subgroup2
==========|==========
Adam | Edith
Ben | Fran
Chris | Gary
Dave |
And the table for 'Round2' looks like this:
subgroup1 | subgroup2 | subgroup3
==========|============|===========
Adam | Ben | Dave
Gary | Fran | Edith
Chris | |
What I want to do is consume that data and output a chart like this which shows me who has met whom:
Adam Ben Chris Dave Edith Fran Gary
Adam X TRUE TRUE TRUE FALSE FALSE TRUE
Ben TRUE X TRUE TRUE FALSE TRUE FALSE
Chris TRUE TRUE X TRUE FALSE FALSE TRUE
Dave etc...
Edith etc...
Fran etc..
Gary etc...
Could anyone help me to think through how I can use QUERY/SQL to turn those input tables into that output chart?


