Life In 19x19 http://lifein19x19.com/ |
|
Logical puzzles http://lifein19x19.com/viewtopic.php?f=8&t=2434 |
Page 5 of 6 |
Author: | daniel_the_smith [ Sat Dec 04, 2010 8:09 pm ] |
Post subject: | 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... |
Author: | daniel_the_smith [ Sat Dec 04, 2010 8:27 pm ] |
Post subject: | Re: Logical puzzles |
Sample output for N = 4: In what way am I misunderstanding the problem? |
Author: | HermanHiddema [ Sat Dec 04, 2010 8:29 pm ] |
Post subject: | 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: |
Author: | ethanb [ Sat Dec 04, 2010 8:52 pm ] |
Post subject: | 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... |
Author: | Violence [ Tue Dec 07, 2010 3:12 pm ] |
Post subject: | 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? |
Author: | Magicwand [ Tue Dec 07, 2010 5:44 pm ] |
Post subject: | 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? |
Author: | averell [ Tue Dec 07, 2010 5:55 pm ] |
Post subject: | 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: |
Author: | Magicwand [ Tue Dec 07, 2010 6:03 pm ] |
Post subject: | 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 ![]() |
Author: | tj86430 [ Thu Dec 09, 2010 6:02 am ] |
Post subject: | 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. |
Author: | HermanHiddema [ Thu Dec 09, 2010 7:02 am ] |
Post subject: | 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: |
Author: | illluck [ Thu Dec 09, 2010 9:11 am ] |
Post subject: | Re: Logical puzzles |
I'm confused at the solution: Edit after 1 min to clarify: |
Author: | flOvermind [ Thu Dec 09, 2010 9:29 am ] |
Post subject: | Re: Logical puzzles |
illluck wrote: |
Author: | daniel_the_smith [ Thu Dec 09, 2010 9:40 am ] |
Post subject: | Re: Logical puzzles |
illluck wrote: I'm confused at the solution: Remember that by definition: |
Author: | Redundant [ Thu Dec 09, 2010 9:43 am ] |
Post subject: | Re: Logical puzzles |
Author: | illluck [ Thu Dec 09, 2010 10:30 am ] |
Post subject: | Re: Logical puzzles |
Ah, I think I (sort of) understand now. Thanks for the hints! |
Author: | Bill Spight [ Thu Dec 09, 2010 11:45 am ] |
Post subject: | Re: Logical puzzles |
illluck wrote: I'm confused at the solution: Edit after 1 min to clarify: Hint: |
Author: | Gresil [ Thu Dec 09, 2010 12:09 pm ] |
Post subject: | 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? |
Author: | averell [ Thu Dec 09, 2010 4:43 pm ] |
Post subject: | Re: Logical puzzles |
Gresil wrote: |
Author: | robinz [ Thu Dec 09, 2010 4:55 pm ] |
Post subject: | Re: Logical puzzles |
Author: | Stefany93 [ Fri Dec 10, 2010 12:19 pm ] |
Post subject: | Re: Logical puzzles |
I guess it will be take me a couple of years to solve it. I didn't know I am so smart ![]() |
Page 5 of 6 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |