I came across this brainteaser online that I found quite confusing:
There are $1000$ people having dinner at a grand hall. One of them is known to be sick, while the other $999$ are healthy. Each minute, each person talks to one other person in the room at random. However, as everyone is social, nobody talks to people they have previously talked to. In each pair, if one is sick and one is healthy, the healthy person is infected and becomes sick. Once a person becomes sick, they are assumed to be sick for the rest of the dinner. Find the maximum amount of time (in minutes) until every person in the hall becomes sick.
This is the solution provided:
Consider grouping the $1000$ people into $25$ groups of $40$ people. In $25$ rounds of $39$ minutes each, every person in a given bubble talks to every other person in that bubble. additionally, each of the other bubbles are paired up.
Suppose the original sick person is in Bubble $25$ and the last healthy person is in Bubble $24$. In round $k$, we can have all the people in bubble $b$ talk to all of the people in bubble $24 - b + k \mod 25$, where $0$ maps to $25$. Therefore, we see that after $k$ rounds, the sick people belong to people in Bubble $25$ and Bubbles $1, 2, \ldots, k-1$. This since at round $1$, Bubble $25$ talks with itself. Afterwards, it talks with Bubbles $1, 2, \ldots, k-1$. Therefore, Bubble $24$ will be completely untouched until after the first $24$ rounds, which is $936$ minutes. Thus, we add in $39$ minutes for the last round, and we have $975$ minutes. However, note that each round is $39$ minutes long. Therefore, every Bubble that isn't Bubble $25$ is going to have exactly $1$ person that is not sick still. We must add in $24$ minutes for those $24$ people to become sick, so our answer is $999$.
[Editor's note: the original image can be found here.]
I don't quite understand the solution / I think it might be wrong, since it doesn't consider the fact that everyone must be talking and not just the individual groups (where the remaining groups are doing nothing). Perhaps I misread something but any insight would be much appreciated!
Edit: The original question was taken from here: https://www.quantguide.io/questions/infected-dinner-ii
Also I apologize if my question wasn't clear. Since we want to find the maximum bound on the time needed to guarantee that everyone is sick, we would probably want to maximize the number of times a sick individual talks to another sick individual, with the restriction of being unable to talk to someone they previously talked to. This seems to be a lot of information to keep track of and I'm not sure how to reduce the problem/represent it so that its easier to understand and compute the answer. I guess my question would be: Is there a better way to represent the problem to make it easier to understand how to go about finding a solution?
Their solution has many mistakes. As far as I can tell, when you fix those mistakes, the time they attain is only $937$ minutes.
First, let us clarify what they mean. There are $25$ bubbles, numbered $B_1,B_2,\dots,B_{25}$, each with $40$ people. There are $25$ rounds, $R_1,R_2,\dots,R_{25}$, each lasting $39$ minutes. For each $k\in \{1,\dots,25\}$ and each $b\in \{1,\dots,25\}$, during round $R_k$, all of the people in $B_b$ will only talk to people to people in $B_{24+k-b\pmod{25}}$. However, the problem did not specify the exact way to pair people up which allows this to happen.
Here are the missing details of how to pair people up:
In order to have two different groups, $B_i$ and $B_j$ with $i\neq j$, talk to only each other over the course of $39$ minutes, you match them up randomly in a circle for the first minute, and then rotate everyone in $B_i$ one spot to the right for each of the remaining $38$ minutes (while the people in $B_j$ stay put).
In order to have $B_i$ members only talk to themselves over the course of $39$ minutes, use the classic round robin tournament schedule.
Onto the mistakes the solution makes. First of all, notice in round $R_1$, bubble $B_{25}$ talks to itself. This means that everyone in $B_{25}$ becomes infected after round $1$. It does not matter how you arrange the connections; the initial infected person must talk to $39$ different people during this period, so everyone else in $B_{25}$ is infected at the end. In particular, later when $B_{25}$ talks to another bubble, that bubble gets completely infected.
Now, the solution correctly claims that after round $k$, the infected bubbles are $B_{25},B_1,\dots,B_{k-1}$. This means that after $24$ rounds ($936$ minutes), every bubble except $B_{24}$ is completely infected. Then, in the $937^\text{th}$ minute, everyone in $B_{24}$ talks to everyone in $B_{25}$, which means everyone in $B_{24}$ is immediately infected.
The solution mistakenly adds in the $39$ minutes for the last round; you cannot count this time, because everyone was already sick after the first minute of $R_{25}$.
The solution then goes on to say that there is still $1$ uninfected person in each bubble besides $B_{25}$, so you need to add in $24$ minutes for these people. This is nonsense, because we already showed that every bubble gets completely infected when it talks to $B_{25}$.