All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Gossip (Posted on 2012-07-26) Difficulty: 3 of 5
n people know each a different piece of gossip.

They can phone each other and exchange all they know so that after the call the parties know anything that either of them knew before the call.

What is the smallest number of calls needed so that everyone knows everything and how is this number achieved?

No Solution Yet Submitted by Ady TZIDON    
Rating: 4.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
solution | Comment 2 of 12 |
(2n - 3) : n > 1

As gossip requires at least 2 persons involved, there is no need to offer the case where n = {0,1}, to which the number of calls required is 0.

One person can call each party, exchanging gossip. Then, but for the last person called, call each party again relaying all the gossip.  Everyone then would know the same information that was considered gossip.
The number of calls to garnish all the gossip would be (n-1). The - 1 is because two individuals are involved in one call. The number of calls required then to relay the total gossip is, then, (n-1) - 1, with the additional - 1 due to not needing to call the last person called again. (n-1) + (n-1) - 1 = (2n - 3).
  Posted by Dej Mar on 2012-07-26 12:35:33
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (7)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2018 by Animus Pactum Consulting. All rights reserved. Privacy Information