Post new topic Reply to topic  [ 1 post ] 
 N secret agents 
Author Message
Site Admin
User avatar

Joined: Tue May 30, 2006 10:42 am
Posts: 89564
Location: Behind You
Post  N secret agents
Puzzle:

There are N secret agents each know a different piece of secret information. They can telephone each other and exchange all the information they know. After the telephone call, they both know anything that either of them knew before the call. What are the minimum number of telephone calls needed so that all of the them know everything?

For Solution SCROLL DOWN...









































Solution:

(2N - 3) telephone calls, for N = 2,3
(2N - 4) telephone calls, for N > 3

Divide the N secret agents into two groups. If N is odd, one group will contain one extra agent.

Consider first group: agent 1 will call up agent 2, agent 2 will call up agent 3 and so on. Similarly in second group, agent 1 will call up agent 2, agent 2 will call up agent 3 and so on. After (N - 2) calls, two agents in each the group will know anything that anyone knew in his group, say they are Y1 & Y2 from group 1 and Z1 & Z2 from group 2.

Now, Y1 will call up Z1 and Y2 will call up Z2. Hence, in next two calls total of 4 agents will know everything.

Now (N - 4) telephone calls are required for remaining (N - 4) secret agents.

Total telephone calls require are
= (N - 2) + 2 + (N - 4)
= 2N - 4


Sat Feb 02, 2008 10:04 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

 Similar topics 
 Similar topics   Forum   Author   Replies 
Miranda Kerr at Victoria's Secret Fashion Show Backstage
International Celebrities (Female)
Rahul
11
Victoria's Secret launches a new Model - Selita Ebank
Hot Wallpapers
Saurabh
37
Victoria's Secret Sexy Models
International Celebrities (Female)
Rahul
30
Alessandra Ambrosio & Ana Beatriz Barros - Victoria's Secret
International Celebrities (Female)
Rahul
13
Marissa Miller: $3 Million Victoria's Secret Vixen
Celebrity Gossips
Saurabh
4


Jump to: