Logical puzzles
- cyclops
- Lives in sente
- Posts: 801
- Joined: Mon May 10, 2010 3:38 pm
- Rank: KGS 7 kyu forever
- GD Posts: 460
- Location: Amsterdam (NL)
- Has thanked: 353 times
- Been thanked: 107 times
- Contact:
Re: Logical puzzles
I am getting more confused so I close my topic once more 
I think I am so I think I am.
- daniel_the_smith
- Gosei
- Posts: 2116
- Joined: Wed Apr 21, 2010 8:51 am
- Rank: 2d AGA
- GD Posts: 1193
- KGS: lavalamp
- Tygem: imapenguin
- IGS: lavalamp
- OGS: daniel_the_smith
- Location: Silicon Valley
- Has thanked: 152 times
- Been thanked: 330 times
- Contact:
Re: Logical puzzles
HermanHiddema wrote:Not really a hint, but a more an additional piece of information, regarding the cruel bandit puzzle:
The right strategy will make their probability of all surviving:
Can you double-check the problem statement?
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
- 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
daniel_the_smith wrote:Can you double-check the problem statement?![]()
I've reread it, and the problem statement is correct.
It was driving me nuts, so I've written a program to brute force it (obviously only for small values of N) and it has not come up with anything better than what people have proposed so far. I'm going to extend my program to try a random sampling of the permutations for larger values of N (using some subset of possible choices), but I don't expect it to come up with anything new.
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
-
Bill Spight
- Honinbo
- Posts: 10905
- Joined: Wed Apr 21, 2010 1:24 pm
- Has thanked: 3651 times
- Been thanked: 3373 times
Re: Logical puzzles
SpongeBob wrote:Since lightvector's puzzle seems to be more of a math puzzle than a logical one, let me provide one more. (Herman's puzzle is too hard for me.)
You like simple looking puzzles that turn out to be nerve-wracking? Those that keep your head real busy and make you feel stupid? Here you go:
The teacher tells his kids: "We are going to write a test next week. On the day before the test, you will not know that you will write the test on the following day."
Now Bill thinks: If only I knew for what day the test has been scheduled. Well, it can't be Friday. As this is the last day of the week, we would know on Thursay that the test will be written the following day. It can't be scheduled for Friday, it must be either Monday, Tuesday, Wednesday or Thursday. Could it be scheduled for Thursday then? Well, then we would know on Wednesday, because we already found out it can't be Friday. So Thursday is out, too. With the same logic, Bill rules out all the other days of the week.
What's going on here? Is there a flaw in Bill's reasoning or does the teacher not tell the truth, or what?
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
At some point, doesn't thinking have to go on?
— Winona Adkins
Visualize whirled peas.
Everything with love. Stay safe.
- daniel_the_smith
- Gosei
- Posts: 2116
- Joined: Wed Apr 21, 2010 8:51 am
- Rank: 2d AGA
- GD Posts: 1193
- KGS: lavalamp
- Tygem: imapenguin
- IGS: lavalamp
- OGS: daniel_the_smith
- Location: Silicon Valley
- Has thanked: 152 times
- Been thanked: 330 times
- Contact:
Re: Logical puzzles
HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
Uh... logically their strategy must be a member of the set of all combinations, no? The problem states they can't communicate in any way once the trial starts...
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
- daniel_the_smith
- Gosei
- Posts: 2116
- Joined: Wed Apr 21, 2010 8:51 am
- Rank: 2d AGA
- GD Posts: 1193
- KGS: lavalamp
- Tygem: imapenguin
- IGS: lavalamp
- OGS: daniel_the_smith
- Location: Silicon Valley
- Has thanked: 152 times
- Been thanked: 330 times
- Contact:
Re: Logical puzzles
Sample output for N = 4:
In what way am I misunderstanding the problem?
In what way am I misunderstanding the problem?
That which can be destroyed by the truth should be.
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
--
My (sadly neglected, but not forgotten) project: http://dailyjoseki.com
- 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
daniel_the_smith wrote:HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
Uh... logically their strategy must be a member of the set of all combinations, no? The problem states they can't communicate in any way once the trial starts...
I will add a hint: (this one shows why your brute force strategy doesn't work)
And another, bigger hint:
-
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
robinz wrote:PS: isn't it nice of bad guys in these kind of puzzles to always actually pose a solveable puzzle, rather than just killing the lot of them
Honestly I was more interested in the fact that there is an official village logician. Although I guess it could be a PC way of saying "witch doctor" or something...
-
Violence
- Lives in sente
- Posts: 754
- Joined: Thu Apr 22, 2010 1:12 am
- Rank: Something Dan
- GD Posts: 720
- Has thanked: 9 times
- Been thanked: 144 times
Re: Logical puzzles
Here's a fun one for you all.
A teacher says: I'm thinking of two natural numbers bigger than 1. Try to guess what they are.
The first student knows their product and the other one knows their sum.
First: I do not know the sum.
Second: I knew that. The sum is less than 14.
First: I knew that. However, now I know the numbers.
Second: And so do I.
What were the numbers?
A teacher says: I'm thinking of two natural numbers bigger than 1. Try to guess what they are.
The first student knows their product and the other one knows their sum.
First: I do not know the sum.
Second: I knew that. The sum is less than 14.
First: I knew that. However, now I know the numbers.
Second: And so do I.
What were the numbers?
- 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
Violence wrote:Here's a fun one for you all.
A teacher says: I'm thinking of two natural numbers bigger than 1. Try to guess what they are.
The first student knows their product and the other one knows their sum.
First: I do not know the sum.
Second: I knew that. The sum is less than 14.
First: I knew that. However, now I know the numbers.
Second: And so do I.
What were the numbers?
"The more we think we know about
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
-
averell
- Dies in gote
- Posts: 61
- Joined: Tue May 04, 2010 7:14 am
- GD Posts: 0
- Has thanked: 57 times
- Been thanked: 19 times
Re: Logical puzzles
Magicwand wrote:Violence wrote:Here's a fun one for you all.
A teacher says: I'm thinking of two natural numbers bigger than 1. Try to guess what they are.
The first student knows their product and the other one knows their sum.
First: I do not know the sum.
Second: I knew that. The sum is less than 14.
First: I knew that. However, now I know the numbers.
Second: And so do I.
What were the numbers?
Not quite right.
Spoiler:
Solution:
- 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
averell wrote:Not quite right.
i guess i am really tired and not thinking straight..
also..i guess these things have no corelation with go rank
"The more we think we know about
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
The greater the unknown"
Words by neil peart, music by geddy lee and alex lifeson
-
tj86430
- Gosei
- Posts: 1348
- Joined: Wed Apr 28, 2010 12:42 am
- Rank: FGA 7k GoR 1297
- GD Posts: 0
- Location: Finland
- Has thanked: 49 times
- Been thanked: 129 times
Re: Logical puzzles
HermanHiddema wrote:daniel_the_smith wrote:HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
Uh... logically their strategy must be a member of the set of all combinations, no? The problem states they can't communicate in any way once the trial starts...
I will add a hint: (this one shows why your brute force strategy doesn't work)
And another, bigger hint:
I would like to see the solution, please. If you don't want to post it here, pm me.
Offending ad removed
- 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
tj86430 wrote:I would like to see the solution, please. If you don't want to post it here, pm me.
As requested, the solution: