wu :: forums
« wu :: forums - Interesting Game problem »

Welcome, Guest. Please Login or Register.
Nov 26th, 2024, 9:41am

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





   


Posts: 9
Interesting Game problem  
« on: Jan 21st, 2006, 2:43am »
Quote Quote Modify Modify

Sachin and Rahul are playing the "guessing game". In this game, Rahul selects, in her mind, an integer between 1 and n (inclusive) , and then Sachin wins if he correctly guesses the integer that Rahul has selected. To make the correct guess, Sachin can only ask Rahul queries of this form: Sachin specifies a subset A of {1,2...n} and asks Rahul if his chosen number lies in this subset. Rahul usually replies truthfully to these queries, but he is allowed to lie at most k times.
 
Of course, Rahul can try to act clever, by not actually picking a number beforehand, but adapting his answers according to the queries asked by Sachin (as long as he is able to pretend that he had actually chosen a number beforehand).
 
Given N and K,  
how will u find for  each pair (n,k) such that 1<=n<=N and 0<=k<=K,
 
the minimum number of queries that Sachin should be allowed to ask so that he has a winning strategy.  
IP Logged
Barukh
Uberpuzzler
*****






   


Gender: male
Posts: 2276
Re: Interesting Game problem  
« Reply #1 on: Jan 21st, 2006, 5:23am »
Quote Quote Modify Modify

It seems that Error Correcting Codes may help?
IP Logged
JocK
Uberpuzzler
*****






   


Gender: male
Posts: 877
Re: Interesting Game problem  
« Reply #2 on: Jan 21st, 2006, 5:38am »
Quote Quote Modify Modify

The case n = 26 was discussed in the hard forum half a year ago:
 
http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi?board=riddles_har d;action=display;num=1118579442
 
but didn't result in a solution...
 
IP Logged

solving abstract problems is like sex: it may occasionally have some practical use, but that is not why we do it.

xy - y = x5 - y4 - y3 = 20; x>0, y>0.
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Interesting Game problem  
« Reply #3 on: Jan 22nd, 2006, 8:44am »
Quote Quote Modify Modify

The only thing I can think up is what I suggested in the thread Jock linked to. Use hamming codes, specifically with a minimum distance of 2K. However that doesn't directly translate to a minimum number of questions you need. (Nor in fact which questions, although that's an easier problem)
« Last Edit: Jan 22nd, 2006, 8:46am by towr » IP Logged

Wikipedia, Google, Mathworld, Integer sequence DB
towr
wu::riddles Moderator
Uberpuzzler
*****



Some people are average, some are just mean.

   


Gender: male
Posts: 13730
Re: Interesting Game problem  
« Reply #4 on: Jan 23rd, 2006, 4:44am »
Quote Quote Modify Modify

I suppose it should be possible to find an approximation.
you need 2log(N) questions (i.e. bits of information) to find an answer if there aren't any lies.
 
Let's assume there are exactly K lies.
It would be sufficient to know which of the questions were lied to. Suppose you ask X questions. To find K lies among those X answers, you need distinguish the Choose(X, K) possible ways the lies are distributed.  
So you need an additional 2log(Choose(X, K)) bits/questions.
This means X = 2log(N) + 2log(Choose(X, K))  
Solve for X and you're done.
 
Accounting for the fact there may be fewer lies, shouldn't take a lot of adjustment.
« Last Edit: Jan 23rd, 2006, 5:02am by towr » 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