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...HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
Logical puzzles
- 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
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?
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
I will add a hint: (this one shows why your brute force strategy doesn't work)daniel_the_smith wrote: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...HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
-
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
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...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
-
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
Not quite right.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?
- 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
i guess i am really tired and not thinking straight..averell wrote: Not quite right.
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
I would like to see the solution, please. If you don't want to post it here, pm me.HermanHiddema wrote:I will add a hint: (this one shows why your brute force strategy doesn't work)daniel_the_smith wrote: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...HermanHiddema wrote:
Your program needs to know the prisoners' strategy, just brute forcing all combinations won't help.
And another, bigger hint:
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
As requested, the solution:tj86430 wrote:I would like to see the solution, please. If you don't want to post it here, pm me.
- 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
- 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
Remember that by definition:illluck wrote:I'm confused at the solution:
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