Menu Close

X-is-a-person-that-can-only-one-of-these-a-only-tell-truth-b-only-tell-lie-using-a-minimal-number-of-question-how-to-discover-what-type-of-people-are-X-




Question Number 902 by 123456 last updated on 18/Apr/15
X is a person that can only one of these  a.only tell truth  b.only tell lie  using a minimal number of question  how to discover what type of people  are X?
Xisapersonthatcanonlyoneofthesea.onlytelltruthb.onlytelllieusingaminimalnumberofquestionhowtodiscoverwhattypeofpeopleareX?
Answered by prakash jain last updated on 18/Apr/15
Only one question is needed.  Q: If I ask you ′Do you speak Truth′ will           you say ′yes′?  If X speak truth:       Answer to Q will be yes.  If X lies      Answer to Q  no.
Onlyonequestionisneeded.Q:IfIaskyouDoyouspeakTruthwillyousayyes?IfXspeaktruth:AnswertoQwillbeyes.IfXliesAnswertoQno.

Leave a Reply

Your email address will not be published. Required fields are marked *