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?

Answers were Sorted based on User's Feedback



There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / guest

(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 reqiured for remaining (N -
4) secret agents.

Total telephone calls require are

= (N - 2) + 2 + (N - 4)

= 2N - 4

Let\'s take an example. Say there are 4 secret agents W, X,
Y & Z. Divide them into two groups of 2 each i.e. (W, X) and
(Y, Z). Here, 4 telephone calls are required.

1. W will call up X.

2. Y will call up Z.

3. W, who knows WX will call up Y, who knows YZ.

4. X, who knows WX will call up Z, who knows YZ.

Take an another example. Say there are 5 secret agents J, K,
L, M & N. Divide them into two groups i.e. (J, K) and (L, M,
N). Here, 6 telephone calls are required.

1. J will call up K.

2. L will call up M.

3. M will call up N. Now M and N know LMN.

4. J, who knows JK will call up M, who knows LMN.

5. K, who knows JK will call up N, who knows LMN.

6. L will call up to anyone of four.

Is This Answer Correct ?    20 Yes 10 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / harsh

N-1

Is This Answer Correct ?    9 Yes 6 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / m.n.prakash

N-1
EX:
take N=4 then.....
N1 call to N2,N3,N4.so N1 can know information from those
three.then N2 call N3,N4 and know info from both.finally
N3 call to N4 and know the info from N4.so totally need the
only 4 calls to know each others.
so i can that only they need 4 phone calls.

Is This Answer Correct ?    6 Yes 6 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / max

The minimum number of calls required are: (n-1)+(n-2) = 2n-3

First agent needs to call n-1 agents to get all the
information. At the end of his last call i.e. (n-1)'th call,
the first and the n'th agent know all the information.
Now, if the first agent calls the remaining (n-2) agents,
all the information is shared between all agents.
It would not matter if the number of agents were even or odd.

Is This Answer Correct ?    0 Yes 1 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / manish kumar verma

a--->b = a calls to b
let say n peoples are {n1,n2,n3....nN}

step 1:n1--->n2 , n3-->n4 , n5-->n6....
step 2:n1-->n3, n5-->n7, n9-->n11 ..
step 3:n1-->n5, n9-->n13...
.
.
.
so on.
So in total minimum n-1 calls in both n even or odd..

Is This Answer Correct ?    3 Yes 5 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / fayaz

ANS:2(N-1)

Is This Answer Correct ?    0 Yes 3 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / abhinay

if we suppose n=2
then minimum 1 call is needed to share the message to each
other.
if n=3 then 2+1 call
if n=4 then 3+2+1 call
similarly for N=n then (n-1)+(n-2)+(n-3)+.........+1 call
needed to share the message to each other

Is This Answer Correct ?    2 Yes 6 No

There are N secret agents each know a different piece of secret information. They can telephone eac..

Answer / guest

N(N-1)

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Puzzles Interview Questions

Pinto says, "The horse is not Black." Sandy says, "The horse is either Brown or Grey." Andy says, "The horse is Brown." At least one is telling truth and at least one is lying. Can you tell the color of the horse?

3 Answers  


In rail road there are some stations. Each station should have tickets to all other stations.If they add some new stations they need 46 more tickets.How many stations are there before and after adding the stations?

0 Answers   Infosys,


Two planes take off at the same exact moment. They are flying across the Atlantic. One leaves New York and is flying to Paris at 500 miles per hour. The other leaves Paris and is flying to New York at only 450 miles per hour ( because of a strong head wind ). Which one will be closer to Paris when they meet?

18 Answers  


with heavy raining ,At Midnight 12, aap car lekar ja rahe ho aur bus stand par 3 log (80 years woman , ur best friend , ur lover ) khade he....lekin aap kisi ek ko hi apni car me bitha sakte ho..to aap kya karoge aur kyu ????

5 Answers   Parle, Parle G,


if 8men works 8hrs per day for 8days get rs.45,then how many men required if the work is 5hrs per day for 10days they get rs.60?(want solution with steps)

4 Answers   Syntel, Zensar,






If you added together the number of 2's in each of the following sets of numbers, which set would contain the most 2's: 1-333, 334-666, or 667-999?

1 Answers   ABC,


where will be the handle for a cup?

23 Answers  


Who ever has red card says truth black card says false 2 guys a and b a says "iam b i have red card " who is he wat card he has thats all from apti i know

11 Answers   Patni,


At ADVANTAGE, all inhabitants are liar; but not all the time. Males speak the truth in the morning and lie in the afternoon. Females lie in the morning and speak the truth in the afternoon. Three inhabitants are asked the time of day. Two are female and one is male. They respond as follow: A. If asked, B would claim it is morning. B. If asked, C would claim it is morning. C. If asked, A would claim it is afternoon. Is it morning or afternoon? What is the gender of each inhabitants?

1 Answers  


The letters P, Q, R, S, T, U and V, not necessarily in that order represents seven consecutive integers from 22 to 33. ? U is as much less than Q as R is greater than S. ? V is greater than U. ? Q is the middle term. ? P is 3 greater than S. Can you find the sequence of letters from the lowest value to the highest value?

8 Answers   Global Analytics, UST,


What are the chances that at least two out of a group of fifty people share the same birthday?

1 Answers  


Hi, this is das. i will attend bank of baroda 2008 clerical exam. i need model bank exam question papers. please send me. this is my mail id: thulasi.dasan@yahoo.co.in

0 Answers   Bank of Baroda,


Categories