wu :: forums
« wu :: forums - celebrity search »

Welcome, Guest. Please Login or Register.
Nov 25th, 2024, 2:46am

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   medium
(Moderators: william wu, ThudnBlunder, Grimbal, SMQ, towr, Icarus, Eigenray)
   celebrity search
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: celebrity search  (Read 418 times)
almost dead
Newbie
*





   


Posts: 17
celebrity search  
« on: Jun 5th, 2008, 7:52pm »
Quote Quote Modify Modify

There are N people in a room and one of them is a celebrity. Everybody knows at least the celebrity while the celebrity knows no one. You enter the room to find the celebrity. You are only allowed to pick a person, point to another person, and ask whether the first person knows the second one. How will you find the celebrity in minimum number of questions?
IP Logged
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: celebrity search  
« Reply #1 on: Jun 6th, 2008, 12:33am »
Quote Quote Modify Modify

This can be treated as a graph problem; like this and this thread from the CS section. (The last post in the latter thread gives a good approach If you ask A whether he knows B, then on yes, you eliminate A as celebrity, on no you eliminate B)
IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board