POV-Ray : Newsgroups : povray.off-topic : Twenty Questions Server Time
14 Oct 2026 09:45:35 EDT (-0400)
  Twenty Questions (Message 1 to 31 of 31)  
From: Tim Cook
Subject: Twenty Questions
Date: 13 Dec 2007 02:38:33
Message: <4760e179$1@news.povray.org>
So according to my calculations, a game of 20 questions can distinguish 
between up to 1,048,576 things, assuming only yes/no questions.  Not bad...

-- 
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: scott
Subject: Re: Twenty Questions
Date: 13 Dec 2007 02:43:56
Message: <4760e2bc@news.povray.org>
> So according to my calculations, a game of 20 questions can distinguish 
> between up to 1,048,576 things, assuming only yes/no questions.  Not 
> bad...

Thinking up the actual questions to distinguish between 1048576 things is 
another matter though... ;-)


Post a reply to this message

From: MattM
Subject: Re: Twenty Questions
Date: 13 Dec 2007 06:45:00
Message: <web.47611ae474e493e34ef43cef0@news.povray.org>
That's just plain bad thinking all round. I assume you meant yes/no answers not
questions. I don't think yes/no as a question will help you identify anything
and of course there's no fixed number of questions, they can be different at
every level so you have many many many more permutations. Or is it just
fortunate that I've always picked something of that list! ;)


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 07:03:59
Message: <47611faf$1@news.povray.org>
MattM wrote:

> and of course there's no fixed number of questions, they can be different at
> every level so you have many many many more permutations. Or is it just
> fortunate that I've always picked something of that list! ;)

Au contrare... If 20 questions will be asked yielding 20 yes/no answers, 
than 2^20 things can be distinguished. The fact that the questions on 
one branch may or may not be the same as the ones on another branch is 
irrelevant. There are still the same number of branches. [Although 
obviously as a *practical* matter being able to have more relevent 
quenstions on the different branches helps a lot.]


Post a reply to this message

From: MattM
Subject: Re: Twenty Questions
Date: 13 Dec 2007 07:50:00
Message: <web.476129ae74e493e34ef43cef0@news.povray.org>
Question 1. Is it a fish?
Answer 1. Yes
Question 2. Is it a cat?
Answer 2. (Are you stupid?)

I think Question 1 (in this universe) usually drives question 2. So at the start
of the game Question 2 can still be anything as we don't know what the answer to
one is yet. In fact question 1 can be anything. (Are you Hilary Clinton? are you
an vegetable? Do your ears turn purple when listening to Pearl Jam?) So off the
bat we have '2^However many questions you can think of' and that's just
question 1.


Post a reply to this message

From: scott
Subject: Re: Twenty Questions
Date: 13 Dec 2007 07:53:01
Message: <47612b2d$1@news.povray.org>
> [Although obviously as a *practical* matter being able to have more 
> relevent quenstions on the different branches helps a lot.]

You just need to think of a question that will exactly split the remaining 
outcomes in half each time.  For 2^3 or 2^4 items this is doable, but for 
2^20...


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 07:54:47
Message: <47612b97@news.povray.org>
scott wrote:
>> [Although obviously as a *practical* matter being able to have more 
>> relevent quenstions on the different branches helps a lot.]
> 
> You just need to think of a question that will exactly split the 
> remaining outcomes in half each time.  For 2^3 or 2^4 items this is 
> doable, but for 2^20...

Question: Is the set of possible outcomes recursively enumerable?


Post a reply to this message

From: MattM
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:00:00
Message: <web.47612c3974e493e34ef43cef0@news.povray.org>
No, next question. (Is this a game now?)


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:04:40
Message: <47612de8$1@news.povray.org>
Can a set exist that has a finite cardinal number and yet is not 
recursively enumerable?

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: MattM
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:10:00
Message: <web.47612efb74e493e34ef43cef0@news.povray.org>
I'm afriad that won't split this problem 50/50. That's the problem with this
game, sometimes yes/no is not enough. I really want to say, you're making an
assumption. Is your question even related? Who said anything about finite?


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:16:19
Message: <476130a3$1@news.povray.org>
MattM wrote:

> Is your question even related? Who said anything about finite?

http://en.wikipedia.org/wiki/Recursive_set

"A subset S of the natural numbers is called recursive if there exists..."

"Every finite or cofinite subset of the natural numbers is computable."

Thus, the answer to my question is no. In order words, there exist no 
finite sets which are not recursively enumerable.

Thus, as we have agreed the set of possible things to classify is not 
recursively enumerable, we can conclude that it is not finite.

It is impossible to decide on an element of an infinite set using a 
finite number of questions.

Thus, we can conclude that the game is in fact impossible to solve in 
general.

Goodbye.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: MattM
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:25:01
Message: <web.4761323074e493e34ef43cef0@news.povray.org>
Thank goodness, someone got there in the end.


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:26:48
Message: <47613318@news.povray.org>
Invisible wrote:

> It is impossible to decide on an element of an infinite set using a 
> finite number of questions.

Hmm, that's not entirely true.

Presumably it *is* however true for a set that isn't computable though.

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 08:27:24
Message: <4761333c$1@news.povray.org>
>> It is impossible to decide on an element of an infinite set using a 
>> finite number of questions.
> 
> Hmm, that's not entirely true.
> 
> Presumably it *is* however true for a set that isn't computable though.

Damnit, where's Darren?? I'm sure he knows...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Darren New
Subject: Re: Twenty Questions
Date: 13 Dec 2007 10:58:06
Message: <4761568e$1@news.povray.org>
MattM wrote:
> Question 1. Is it a fish?
> Answer 1. Yes
> Question 2. Is it a cat?
> Answer 2. (Are you stupid?)

Catfish!  MMMmmmmm...

-- 
   Darren New / San Diego, CA, USA (PST)
     It's not feature creep if you put it
     at the end and adjust the release date.


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 10:58:38
Message: <476156ae$1@news.povray.org>
Darren New wrote:

> Catfish!  MMMmmmmm...

Oh God - and now the squid...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Darren New
Subject: Re: Twenty Questions
Date: 13 Dec 2007 11:01:11
Message: <47615747$1@news.povray.org>
scott wrote:
> You just need to think of a question that will exactly split the 
> remaining outcomes in half each time. 

I think as long as there's *something* down either branch, you're OK. I 
don't think it has to split things in half.

I did see one fun variant, where you start without having in mind 
anything in particular, and the asker tries to guess what it is, and the 
answerers each take a turn answering. The trick is that each answerer, 
after hearing the previous questions and answers, has to come up with 
something that matches the previous questions and answers.

-- 
   Darren New / San Diego, CA, USA (PST)
     It's not feature creep if you put it
     at the end and adjust the release date.


Post a reply to this message

From: Darren New
Subject: Re: Twenty Questions
Date: 13 Dec 2007 11:03:04
Message: <476157b8$1@news.povray.org>
Invisible wrote:
>>> It is impossible to decide on an element of an infinite set using a 
>>> finite number of questions.
>>
>> Hmm, that's not entirely true.
>>
>> Presumably it *is* however true for a set that isn't computable though.
> 
> Damnit, where's Darren?? I'm sure he knows...

20 questions doesn't pick out elements of a set. It picks out 
categories.  "Is it a zebra?" "Yes." End of game. Tens of thousands of 
possible zebras, along with an infinite number of possible-to-imagine 
zebras, all qualify as "the" correct answer.

-- 
   Darren New / San Diego, CA, USA (PST)
     It's not feature creep if you put it
     at the end and adjust the release date.


Post a reply to this message

From: Invisible
Subject: Re: Twenty Questions
Date: 13 Dec 2007 11:11:21
Message: <476159a9$1@news.povray.org>
Darren New wrote:

> 20 questions doesn't pick out elements of a set. It picks out 
> categories.  "Is it a zebra?" "Yes." End of game. Tens of thousands of 
> possible zebras, along with an infinite number of possible-to-imagine 
> zebras, all qualify as "the" correct answer.

"What do you mean? Is that an African Swallow or a European Swallow?"

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: scott
Subject: Re: Twenty Questions
Date: 13 Dec 2007 11:26:28
Message: <47615d34$1@news.povray.org>
>> You just need to think of a question that will exactly split the 
>> remaining outcomes in half each time.
>
> I think as long as there's *something* down either branch, you're OK. I 
> don't think it has to split things in half.

I meant that to be able to recognise 2^20 things, you need to ask a question 
at each step that will split the set in half.  Otherwise you will end up not 
having enough questions left to uniquely identify each item.


Post a reply to this message

From: Ross
Subject: Re: Twenty Questions
Date: 13 Dec 2007 11:54:03
Message: <476163ab@news.povray.org>
"MattM" <mat### [at] hotmailcom> wrote in message 
news:web.476129ae74e493e34ef43cef0@news.povray.org...
> Question 1. Is it a fish?
> Answer 1. Yes
> Question 2. Is it a cat?
> Answer 2. (Are you stupid?)

> Do your ears turn purple when listening to Pearl Jam?)

But what does Apple Butter sound like?


Post a reply to this message

From: Darren New
Subject: Re: Twenty Questions
Date: 13 Dec 2007 19:33:55
Message: <4761cf73@news.povray.org>
scott wrote:
>>> You just need to think of a question that will exactly split the 
>>> remaining outcomes in half each time.
>>
>> I think as long as there's *something* down either branch, you're OK. 
>> I don't think it has to split things in half.
> 
> I meant that to be able to recognise 2^20 things, you need to ask a 
> question at each step that will split the set in half.  Otherwise you 
> will end up not having enough questions left to uniquely identify each 
> item.

Oh, right. But if there are 2^50 possible items, 2^20 can be identified 
without splitting things exactly in half, methinks.

-- 
   Darren New / San Diego, CA, USA (PST)
     It's not feature creep if you put it
     at the end and adjust the release date.


Post a reply to this message

From: Sabrina Kilian
Subject: Re: Twenty Questions
Date: 13 Dec 2007 21:49:29
Message: <4761ef39$1@news.povray.org>
Ross wrote:
> "MattM" <mat### [at] hotmailcom> wrote in message 
> news:web.476129ae74e493e34ef43cef0@news.povray.org...
>> Question 1. Is it a fish?
>> Answer 1. Yes
>> Question 2. Is it a cat?
>> Answer 2. (Are you stupid?)
> 
>> Do your ears turn purple when listening to Pearl Jam?)
> 
> But what does Apple Butter sound like?
> 
> 

Totally Jam-ing


Post a reply to this message

From: scott
Subject: Re: Twenty Questions
Date: 14 Dec 2007 03:04:50
Message: <47623922$1@news.povray.org>
> Oh, right. But if there are 2^50 possible items, 2^20 can be identified 
> without splitting things exactly in half, methinks.

Well yes almost, actually if you have 2^50 items the last thing you want to 
do is split in half at each stage.  You'll end up not being able to identify 
anything after 20 questions!

Assuming you want to maximise the number of identifiable items, you arrange 
your questions so that all of the 2^20 outcomes point to a unique object, 
apart from one which is the "unknown" branch.  Then you can uniquely 
identify 2^20-1 items, the rest being lumped in the "unknown" branch.


Post a reply to this message

From: Tim Attwood
Subject: Re: Twenty Questions
Date: 14 Dec 2007 07:19:02
Message: <476274b6$1@news.povray.org>
Kind of fun =)
http://www.20q.net/


Post a reply to this message

From: Mueen Nawaz
Subject: Re: Twenty Questions
Date: 14 Dec 2007 17:08:21
Message: <4762fed5$1@news.povray.org>
Tim Attwood wrote:
> Kind of fun =)
> http://www.20q.net/ 

	Darn it! You beat me to it!

-- 
Lisa: Oedipus killed his father and married his mother.
Homer: Who payed for THAT wedding?


                    /\  /\               /\  /
                   /  \/  \ u e e n     /  \/  a w a z
                       >>>>>>mue### [at] nawazorg<<<<<<
                                   anl


Post a reply to this message

From: Darren New
Subject: Re: Twenty Questions
Date: 14 Dec 2007 19:00:22
Message: <47631916$1@news.povray.org>
scott wrote:
> Well yes almost, actually if you have 2^50 items the last thing you want 
> to do is split in half at each stage.  You'll end up not being able to 
> identify anything after 20 questions!

Most 20Q games don't identify individual objects, tho. The identify 
classes of objects.  "Is it a zebra?"  "Is it a cloud?"  Stuff like that.

Otherwise, yes, if you're trying to cut it down to proper nouns, the 
analysis is correct. :)

-- 
   Darren New / San Diego, CA, USA (PST)
     It's not feature creep if you put it
     at the end and adjust the release date.


Post a reply to this message

From: Sherry Shaw
Subject: Re: Twenty Questions
Date: 14 Dec 2007 22:51:18
Message: <47634f36@news.povray.org>
Invisible wrote:
> Darren New wrote:
> 
>> Catfish!  MMMmmmmm...
> 
> Oh God - and now the squid...
> 

No, no, no, no, no, no, and no.  Squid???  With catfish???

And now the HUSH PUPPIES...

--Sherry "Knows How To Serve Catfish" Shaw


-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

From: gregjohn
Subject: Re: Twenty Questions
Date: 16 Dec 2007 21:35:00
Message: <web.4765df9b74e493e334d207310@news.povray.org>
Tim Cook <z99### [at] bellsouthnet> wrote:
> So according to my calculations, a game of 20 questions can distinguish
> between up to 1,048,576 things, assuming only yes/no questions.  Not bad...

What if the answer were a specific person you've never heard of and will never
guess by elimination, and it's required to get a 20-letter proper name correct.
You're hosed, aren't you?


Post a reply to this message

From: Charles C
Subject: Re: Twenty Questions
Date: 17 Dec 2007 03:25:50
Message: <4766328e@news.povray.org>
Darren New wrote:
> Invisible wrote:
>>>> It is impossible to decide on an element of an infinite set using a 
>>>> finite number of questions.
>>>
>>> Hmm, that's not entirely true.
>>>
>>> Presumably it *is* however true for a set that isn't computable though.
>>
>> Damnit, where's Darren?? I'm sure he knows...
> 
> 20 questions doesn't pick out elements of a set. It picks out 
> categories.  "Is it a zebra?" "Yes." End of game. Tens of thousands of 
> possible zebras, along with an infinite number of possible-to-imagine 
> zebras, all qualify as "the" correct answer.
> 

Categories can be elements.  After all, you can have a set of 
categories.  The only difference between "zebra" and "Betty-the-Zebra at 
our local zoo" is the level of specificity.  The question answerer could 
choose either in this game.


Post a reply to this message

From: Charles C
Subject: Re: Twenty Questions
Date: 17 Dec 2007 03:29:15
Message: <4766335b@news.povray.org>
Darren New wrote:
> scott wrote:
>> Well yes almost, actually if you have 2^50 items the last thing you 
>> want to do is split in half at each stage.  You'll end up not being 
>> able to identify anything after 20 questions!
> 
> Most 20Q games don't identify individual objects, tho. The identify 
> classes of objects.  "Is it a zebra?"  "Is it a cloud?"  Stuff like that.

That's  not the way I remember it.   Hmm.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.