A popular formulation assumes there are people, each one of whom knows a scandal which is not known to any of the others. They communicate by telephone, and whenever two people place a call, they pass on to each other as many scandals as they know. What is the minimum number of calls needed before all people know about all the scandals?
Denoting the scandal-spreaders as , and , a solution for is given by . The solution can then be generalized to by adding the pair to the beginning and end of the previous solution, i.e. .
Let be the number of minimum calls necessary to complete gossiping among people, where any pair of people may call each other. Then
Find
if two-way communication is possible and denote this number by
if only one-way communication is possible, e.g. where communication is done by letters or telegrams and denote this number by
Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For two way communication, you can use the strategy Vijay describes above, which gives the number of calls as:
f 2 w a y ( n ) = 2 n − 4 for n > 3
For one way communication, for 2 people you need 2 calls (A calls B and B calls A) And when you introduce a new caller you need 2 additional calls, i.e. C calls A at the beginning and then A calls C at the end. So in general,
f 1 w a y ( n ) = 2 n − 2 for n > 1
So,
f 2 w a y ( 2 0 ) = 3 6
f 1 w a y ( 2 0 ) = 3 8
3 6 + 3 8 = 7 4