Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 13d 22h 12m 04s13 days 22 hours 12 minutes 4 seconds.
undercover agents have been found in the don's lair. Fewer than half of them are terrorists and the rest are anti-terrorists. The nature of their job is so secret that there is no proof whatsoever of who is who. However, each of them knows who is a terrorist and who is an anti-terrorist, because they worked in teams.
A query consists of asking agent whether agent is an anti-terrorist; the answer is yes or no. An anti-terrorist always tells the truth, but a terrorist may answer however he likes to confuse you. You may choose each query after seeing the answers to the previous ones.
What is the smallest number of queries that guarantees you can point to one agent who is certainly an anti-terrorist, no matter how the terrorists answer?