Logical puzzles

All non-Go discussions should go here.
User avatar
SpongeBob
Lives in gote
Posts: 499
Joined: Sat Apr 24, 2010 3:18 pm
Rank: Fox 3D
GD Posts: 325
Location: Germany
Has thanked: 213 times
Been thanked: 96 times

Re: Logical puzzles

Post by SpongeBob »

Alright, next one. It might be already known to some of you, but still:

You are in a prision with two doors. One leads to freedom and one to death. :twisted:

There is a guard before each door. You know that one always tells the truth and the other always lies and they both know it about each other, but you do not know which one is which.

You can adress one question to one of the guards. What do you ask to find out about the way to freedom?
Stay out of my territory! (W. White, aka Heisenberg)
entropi
Lives in gote
Posts: 493
Joined: Wed Apr 21, 2010 6:20 am
Rank: sdk
GD Posts: 175
Has thanked: 80 times
Been thanked: 71 times

Re: Logical puzzles

Post by entropi »

Redundant wrote:Spot
I think that a good way to characterize the new information is "If there were only one person with a red spot, that person would know that they had a red spot". Knowing this conditional is sufficient for the induction, and lacking without the proclamation of the visitor.


But for starting the induction you need more. It is ok with one red spot but why should it also work when you add more red spots?

While I think SpongeBobs logic is correct, it should be possible to explain in a simpler way. Otherwise you should also have to show the same thing for 4 red spots, 5 red spots, ....

Here is my try using induction:
If there is just one red spot, it obviously works.

If there are two red spots, everyone already knows that there is at least one red spot.

But the next level of information comes from the observer (tourist), in the form of making each one of red spots expect the other to leave the next morning. Since the other one doesn't leave, he learns that there is one more red spot except that one.

So, every day he learns that there must be one more, and this information comes from the "expectation" (expectation that other red spots should leave) created by the observer.

So for creating the induction: When you add one more red spot, you delay the expectation of leaving one more day.

Without the observer, this expectation would never be created because there is no reason for any of the red spots to expect anyone to leave. Even if a red spot knows that N other red spots exist, there is still no information relating to the color of his own spot.

What the observer does is turning the rule of leaving next morning into information related to the number of red spots via the expectation.
If you say no, Elwood and I will come here for breakfast, lunch, and dinner every day of the week.
User avatar
Redundant
Lives in sente
Posts: 924
Joined: Thu Apr 22, 2010 3:00 pm
Rank: lazy
GD Posts: 0
KGS: redundant/silchas
Tygem: redundant
Wbaduk: redundant
DGS: redundant
OGS: redundant
Location: Pittsburgh
Has thanked: 45 times
Been thanked: 103 times

Re: Logical puzzles

Post by Redundant »

entropi wrote:
But for starting the induction you need more.



No. You don't. If there were one person, and this was known, he'd leave. If there were two, then after one day, the two people will know. It goes on. The knowledge of the conditional is sufficient.

Note that this is a conditional. The new knowledge isn't that there is at least one person with a spot, but that if there were only one that person would know.
entropi
Lives in gote
Posts: 493
Joined: Wed Apr 21, 2010 6:20 am
Rank: sdk
GD Posts: 175
Has thanked: 80 times
Been thanked: 71 times

Re: Logical puzzles

Post by entropi »

Redundant wrote:
entropi wrote:
But for starting the induction you need more.



No. You don't. If there were one person, and this was known, he'd leave. If there were two, then after one day, the two people will know. It goes on. The knowledge of the conditional is sufficient.

Note that this is a conditional. The new knowledge isn't that there is at least one person with a spot, but that if there were only one that person would know.


Maybe it is just a matter of definition, but for calling a proof "induction", you would need to prove (at least) two things:
1-It is true for x=1
2-If it is true for x=N, it is also true for x=N+1

In this case what you say is that the solution of the puzzle is true for 1 red spot. But it is not immediately apparent that if N red spots leave after N days, N+1 red spots would leave after N+1 days. Probably that is what you call "conditional". If it is, then we are saying the same thing.

I formulate it as "independently of the initial number of red spots, adding one more red spot would cause one more day of delay of the expected leaving day, because each additional red spot would add one more day of uncertainty (whether he would know or not) for all the rest of the red spots".

Anyway, the more I think about it the more I appreciate the puzzle, indeed wonderful.
If you say no, Elwood and I will come here for breakfast, lunch, and dinner every day of the week.
User avatar
Redundant
Lives in sente
Posts: 924
Joined: Thu Apr 22, 2010 3:00 pm
Rank: lazy
GD Posts: 0
KGS: redundant/silchas
Tygem: redundant
Wbaduk: redundant
DGS: redundant
OGS: redundant
Location: Pittsburgh
Has thanked: 45 times
Been thanked: 103 times

Re: Logical puzzles

Post by Redundant »

If we know that N red spots leave after N days, and we have N+1 spots.

Each of the people with red spots will see N people with red spots. If those N people don't leave after N days, on the (N+1)th day, each of these people will know they have red spots, and leave. As I'd say in about any homework assignment, "the induction is trivial".

I'm really not sure what we're disagreeing on here, now that I think about it.
User avatar
Dusk Eagle
Gosei
Posts: 1758
Joined: Tue Apr 20, 2010 4:02 pm
Rank: 4d
GD Posts: 0
Has thanked: 378 times
Been thanked: 375 times

Re: Logical puzzles

Post by Dusk Eagle »

SpongeBob wrote:Alright, next one. It might be already known to some of you, but still:

You are in a prision with two doors. One leads to freedom and one to death. :twisted:

There is a guard before each door. You know that one always tells the truth and the other always lies and they both know it about each other, but you do not know which one is which.

You can adress one question to one of the guards. What do you ask to find out about the way to freedom?

I'm sure some of us have seen this before, but it's obligatory anyway:

Image
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
User avatar
SpongeBob
Lives in gote
Posts: 499
Joined: Sat Apr 24, 2010 3:18 pm
Rank: Fox 3D
GD Posts: 325
Location: Germany
Has thanked: 213 times
Been thanked: 96 times

Re: Logical puzzles

Post by SpongeBob »

entropi wrote:
If there are two red spots, everyone already knows that there is at least one red spot.

But the next level of information comes from the observer (tourist), in the form of making each one of red spots expect the other to leave the next morning. Since the other one doesn't leave, he learns that there is one more red spot except that one.

Expecting the other to leave the next morning already involves logical reasoning by the islander based on the information given by the tourist.
Stay out of my territory! (W. White, aka Heisenberg)
ethanb
Lives in gote
Posts: 355
Joined: Sat Apr 24, 2010 10:15 am
Rank: AGA 2d
GD Posts: 0
IGS: ethanb
Has thanked: 52 times
Been thanked: 43 times

Re: Logical puzzles

Post by ethanb »

cyclops wrote:
hyperpape wrote:@cyclops
cyclops wrote:Ask A whether B wouldth confirm that C wouldth confirm that he is God.
If you get an answer then A is Random.
If he's not Random ask the similar question to B.
Now we know Random. The Others we call P and Q for God's sake.
Ask P if He confirms that da is Goddish for true. If He answers da he is True.


I believe your first question doesn't quite work, but it's on a useful track.

If A is false, B is true and C is random, A will say 'yes'. B will remain silent, because he cannot say whether C will answer, so A will be speaking falsely.

P.S. Adding to the confusingness of the puzzle, if he uses weak negation, True can say

Not(random would confirm that he is a God)

I think we're better off assuming that the Gods just fall silent when they can't answer. ;-)

Ok, I'll hide as you prefer.
Alternative first question(s): Ask A whether Random would give the same answer as A would give if asked whether he is God. If A answers he is Random himself. The last question as before.


Hmm, interesting that you guys think the logical dead-ends are the way to solve it. I posted my "solution" as a joke because I assumed that falling into one of those unanswerable positions meant you failed (hence the "struck by lightning" bit.) Haven't had time to think about it any more, but maybe that is the solution.

I kind of don't think so though, since it seems like ANY question that you pose involving Random causes the same problem, so there wouldn't be a single correct answer if that's the case. Then again, I guess nobody said there had to be. :)
entropi
Lives in gote
Posts: 493
Joined: Wed Apr 21, 2010 6:20 am
Rank: sdk
GD Posts: 175
Has thanked: 80 times
Been thanked: 71 times

Re: Logical puzzles

Post by entropi »

Redundant wrote:I'm really not sure what we're disagreeing on here, now that I think about it.


Nothing :) It is just that something is trivial to you but not to me. But apart from that the reasoning is absolutely the same.

Maybe it's a professional deformation of mine. My daily job is questioning whether an idea, a concept, etc is trivial or not (in order to issue or reject a patent)

SpongeBob wrote:
Expecting the other to leave the next morning already involves logical reasoning by the islander based on the information given by the tourist.


Yes, the amazing thing about that puzzle is, in case there are more than one red spots, what the tourist says seems to be nothing new, but still gives information indirectly. Incredibly beautiful way of giving information. It's entropy must be approaching infinity :)
If you say no, Elwood and I will come here for breakfast, lunch, and dinner every day of the week.
hyperpape
Tengen
Posts: 4382
Joined: Thu May 06, 2010 3:24 pm
Rank: AGA 3k
GD Posts: 65
OGS: Hyperpape 4k
Location: Caldas da Rainha, Portugal
Has thanked: 499 times
Been thanked: 727 times

Re: Logical puzzles

Post by hyperpape »

@ethanb
There are solutions that do not involve stumping the gods. The range of solutions is extremely wide--there are many logically equivalent ways to phrase the same question, and there are many distinct questions.
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Logical puzzles

Post by Magicwand »

i dont get this puzzle answer.
dont they already have that same info by looking at other's red spot?
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
Redundant
Lives in sente
Posts: 924
Joined: Thu Apr 22, 2010 3:00 pm
Rank: lazy
GD Posts: 0
KGS: redundant/silchas
Tygem: redundant
Wbaduk: redundant
DGS: redundant
OGS: redundant
Location: Pittsburgh
Has thanked: 45 times
Been thanked: 103 times

Re: Logical puzzles

Post by Redundant »

Magicwand

You can see that there is new information by looking at whether everyone knows the statement "If there were only one person with a red spot, would he know".

Without the visitor, they don't know this statement, but with the visitor's statement they do.
User avatar
HermanHiddema
Gosei
Posts: 2011
Joined: Tue Apr 20, 2010 10:08 am
Rank: Dutch 4D
GD Posts: 645
Universal go server handle: herminator
Location: Groningen, NL
Has thanked: 202 times
Been thanked: 1086 times

Re: Logical puzzles

Post by HermanHiddema »

Redundant wrote:Magicwand

You can see that there is new information by looking at whether everyone knows the statement "If there were only one person with a red spot, would he know".

Without the visitor, they don't know this statement, but with the visitor's statement they do.


Another important aspect is that the tourist provides an element of timing. He synchronizes the islanders, so to speak. Suppose that the tourist had, instead of speaking, simply left a sign on the island saying "There is at least one person with a red spot on the island". And over the course of a few days or weeks, all islanders come upon this sign and read it. Then the puzzle wouldn't work anymore...
User avatar
Magicwand
Tengen
Posts: 4844
Joined: Wed Apr 21, 2010 5:26 am
Rank: Wbaduk 7D
GD Posts: 0
KGS: magicwand
Tygem: magicwand
Wbaduk: rlatkfkd
DGS: magicwand
OGS: magicwand
Location: Mechanicsburg, PA
Has thanked: 62 times
Been thanked: 504 times

Re: Logical puzzles

Post by Magicwand »

Redundant wrote:Magicwand

You can see that there is new information by looking at whether everyone knows the statement "If there were only one person with a red spot, would he know".

Without the visitor, they don't know this statement, but with the visitor's statement they do.


yes..only time the info is useful is when there is only 1 person.
but if more than 1 person then it is same info as tourist's info everyone are aware of the fact that there are at least one red spot.
if that is the case then there is only 1 possiblity for that island. there was only 1 red spot when tourist announce the info.

what am i missing?
"The more we think we know about
The greater the unknown"

Words by neil peart, music by geddy lee and alex lifeson
User avatar
flOvermind
Lives with ko
Posts: 295
Joined: Wed Apr 21, 2010 3:19 am
Rank: EGF 4 kyu
GD Posts: 627
Location: Linz, Austria
Has thanked: 21 times
Been thanked: 43 times

Re: Logical puzzles

Post by flOvermind »

Magicwand wrote:what am i missing?


Let's assume there are 10 people with a red spot, and let's assume you are one of them.

You see 9 people with a red spot. That is, you know there are either 9 or 10 people with a red spot, since you don't know whether you have a red spot or not.

Now if I ask you "How many red spots are there?" you'll answer "9 or 10". Let's call that question A.

But what if I ask you "What would this other person with a red spot answer to question A?" (let's call that question B)? For all you know, this person might only see 8 red spots (you don't know that you have one yourself). And the person doesn't know either, so the answer has to be "either '8 or 9', or '9 or 10'". Of course, if you'd actually ask that person, the answer would be "9 or 10". But you can't know that, since you don't know you have a spot yourself.

Now what if I ask you "What would this other person with a red spot answer to question B?". And by the same reasoning, you'll have to answer "7,8,9 or 10". And again you can call that question C, and if I ask you what someone else would answer to question C, the answer will be "6,7,8,9 or 10".

You can play that game until you're down at an answer containing 0. But with comment of the tourist, everyone will know there is "at least 1" red spot, and everyone knows that everyone knows there is "at least 1" red spot, and everyone knows that everyone knows that, and so on... So before the tourist, while everyone might have known that there is at least 1 red spot, and also that everyone knew that there is at least one red spot, and so on, nobody could say whether (everyone knew that (everyone knew that (everyone knew that *repeat 10 times* (there is at least 1 red spot)))))))))). That's the additional information provided.
Post Reply