Pages: [1] 2 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Taedrin
Kushan Industrial
119
|
Posted - 2011.10.21 02:20:00 -
[1] - Quote
An intriguing challenge from a friend of a friend, which a group of us already solved.
A prince from Far, Far Away visits a castle with the intention of wooing the princess there. The castle has a (straight) corridor with 17 rooms lined side-by-side. Each of the rooms have two doors connecting each other (except for the rooms on the ends), and another door connected to the corridor. A guard stops the prince and tells him that the princess is one of these rooms. However, the prince is allowed to knock on only a single door from the corridor. If the princess is in the room, he will be able to woo her and live happily ever after. If the princess is not in the room, he must leave and come back tomorrow to try again. Every night, the princess moves to an adjacent room. She never spends more than a single night in a room at a time.
Unfortunately, the prince already has his plane ticket for his return flight in 30 days. Can the prince conquer the princess? Prove your answer to be correct. |

Isometric Isotope
Republic Military School Minmatar Republic
0
|
Posted - 2011.10.21 02:34:00 -
[2] - Quote
Taedrin wrote:An intriguing challenge from a friend of a friend, which a group of us already solved.
A prince from Far, Far Away visits a castle with the intention of wooing the princess there. The castle has a (straight) corridor with 17 rooms lined side-by-side. Each of the rooms have two doors connecting each other (except for the rooms on the ends), and another door connected to the corridor. A guard stops the prince and tells him that the princess is one of these rooms. However, the prince is allowed to knock on only a single door from the corridor. If the princess is in the room, he will be able to woo her and live happily ever after. If the princess is not in the room, he must leave and come back tomorrow to try again. Every night, the princess moves to an adjacent room. She never spends more than a single night in a room at a time.
Unfortunately, the prince already has his plane ticket for his return flight in 30 days. Can the prince conquer the princess? Prove your answer to be correct. this be the kinda riddles people make up when they are high on something Kinda like the one about the lien guard and the truthful guard its a conundrum that has no real value other then making my head spin for your pleasure
Grazzles You have done this successfully |

Taedrin
Kushan Industrial
119
|
Posted - 2011.10.21 02:36:00 -
[3] - Quote
Isometric Isotope wrote: this be the kinda riddles people make up when they are high on something Kinda like the one about the lien guard and the truthful guard its a conundrum that has no real value other then making my head spin for your pleasure
Grazzles You have done this successfully
I aim to please. I am merely reciprocating the pain and suffering that my Calc professor has inflicted upon me by tricking me into joining a mathematics competition on November 5th. |

Surfin's PlunderBunny
Sebiestor Tribe Minmatar Republic
29
|
Posted - 2011.10.21 03:20:00 -
[4] - Quote
The answer is you get Chuck Norris to kick in a door every night, eventually she'll run out of places to hide  |

stoicfaux
309
|
Posted - 2011.10.21 03:23:00 -
[5] - Quote
Quote:Can the prince conquer the princess? Prove your answer to be correct.
Yes, it is possible to conquer the princess. He just has to guess lucky within 30 tries. Or did you want to know if there was a 100% guaranteed method to find the princess?
Aside from bypassing the guard, asking the guard, etc., there is no 100% way to win because the prince and princess can always leapfrog each other: Prince checks room 1 while princess is in room 2. Next day prince checks room 2, but princess has moved to room 1.
Also, as you describe it: * the end rooms (#1 and #17) have no doors to adjacent rooms, * the rooms' two doors could open to the same room (room #4 has two doors to room #5, instead of one door to #3 and one door to #5
Tinfoil. It should be at the top of everyone's food pyramid.
|

Surfin's PlunderBunny
Sebiestor Tribe Minmatar Republic
29
|
Posted - 2011.10.21 03:31:00 -
[6] - Quote
Actually screw the doors, just have Chuck Norris kick down the walls. |

Cherry Nobyl
Shadow Strike Syndicate
21
|
Posted - 2011.10.21 03:45:00 -
[7] - Quote
Taedrin wrote:An intriguing challenge from a friend of a friend, which a group of us already solved.
A prince from Far, Far Away visits a castle with the intention of wooing the princess there. The castle has a (straight) corridor with 17 rooms lined side-by-side. Each of the rooms have two doors connecting each other (except for the rooms on the ends), and another door connected to the corridor. A guard stops the prince and tells him that the princess is one of these rooms. However, the prince is allowed to knock on only a single door from the corridor. If the princess is in the room, he will be able to woo her and live happily ever after. If the princess is not in the room, he must leave and come back tomorrow to try again. Every night, the princess moves to an adjacent room. She never spends more than a single night in a room at a time.
Unfortunately, the prince already has his plane ticket for his return flight in 30 days. Can the prince conquer the princess? Prove your answer to be correct.
the smarmy answer is very similar to this
another smarmy answer is to observe from the hillside which window has the light in it and use that as a reference. a slight variation would be to rappel over the side of the castle through a window.
love knows no bounds, but it does flirt with the human equivalent of p/np.
|

Taedrin
Kushan Industrial
119
|
Posted - 2011.10.21 03:47:00 -
[8] - Quote
stoicfaux wrote:Quote:Can the prince conquer the princess? Prove your answer to be correct. Yes, it is possible to conquer the princess. He just has to guess lucky within 30 tries. Or did you want to know if there was a 100% guaranteed method to find the princess? Aside from bypassing the guard, asking the guard, etc., there is no 100% way to win because the prince and princess can always leapfrog each other: Prince checks room 1 while princess is in room 2. Next day prince checks room 2, but princess has moved to room 1. Also, as you describe it: * the end rooms (#1 and #17) have no doors to adjacent rooms, * the rooms' two doors could open to the same room (room #4 has two doors to room #5, instead of one door to #3 and one door to #5 You want to prove, or disprove the existence of a 100% guaranteed method to find the princess.
TO clarify - the end rooms have one door to their adjacent room. Each room has exactly one door to each adjacent room. There is nothing strange or special about the room's layout. the rooms are laid out as a straight line, and you can use the doors to travel through each room without needing to go into the corridor.
Your leapfrog argument is a nice, but does not constitute proof. I will even go so far as to say that it is flawed - what happens if the prince checks room #2 twice in a row? |

Taedrin
Kushan Industrial
119
|
Posted - 2011.10.21 03:52:00 -
[9] - Quote
Cherry Nobyl wrote:Taedrin wrote:An intriguing challenge from a friend of a friend, which a group of us already solved.
A prince from Far, Far Away visits a castle with the intention of wooing the princess there. The castle has a (straight) corridor with 17 rooms lined side-by-side. Each of the rooms have two doors connecting each other (except for the rooms on the ends), and another door connected to the corridor. A guard stops the prince and tells him that the princess is one of these rooms. However, the prince is allowed to knock on only a single door from the corridor. If the princess is in the room, he will be able to woo her and live happily ever after. If the princess is not in the room, he must leave and come back tomorrow to try again. Every night, the princess moves to an adjacent room. She never spends more than a single night in a room at a time.
Unfortunately, the prince already has his plane ticket for his return flight in 30 days. Can the prince conquer the princess? Prove your answer to be correct. the smarmy answer is very similar to thisanother smarmy answer is to observe from the hillside which window has the light in it and use that as a reference. a slight variation would be to rappel over the side of the castle through a window. love knows no bounds, but it does flirt with the human equivalent of p/np.
I personally argued that the Prince should simply buy a gun and... negotiate... with the guard. But that was not deemed to be a correct answer for some reason 
|

stoicfaux
309
|
Posted - 2011.10.21 04:01:00 -
[10] - Quote
Taedrin wrote:Your leapfrog argument is a nice, but does not constitute proof. I will even go so far as to say that it is flawed - what happens if the prince checks room #2 twice in a row?
The princess moves to room #4.
OTOH, there's an odd number of rooms, and the princess can be forced to be two rooms away, which means if you wait in room 1 for X time, you can... hrm... let me do some doodling.
Tinfoil. It should be at the top of everyone's food pyramid.
|
|

Alara IonStorm
Caldari State
96
|
Posted - 2011.10.21 05:05:00 -
[11] - Quote
Surfin's PlunderBunny wrote:Actually screw the doors, just have Chuck Norris kick down the walls. How does her having Sex with Chuck Norris help his case. He will never be able to satisfy her... ever after that.
The answer is obvious, man up and stab the guard in the face then knock on whatever door he damn well pleases.
Being bothered by the Help, he is a price for god sakes. |

Isometric Isotope
Republic Military School Minmatar Republic
0
|
Posted - 2011.10.21 05:42:00 -
[12] - Quote
obviously all he needs to do is create a stable worm hole generator and use that to go to her room Why knock when you can go where ever you darn well please lol |

Surfin's PlunderBunny
Sebiestor Tribe Minmatar Republic
29
|
Posted - 2011.10.21 05:52:00 -
[13] - Quote
Can't we just dump the stuck up ***** and date some chick that doesn't sleep in a different room every night? |

Xercodo
Xovoni Directorate Not Usually Killing Everyone.
114
|
Posted - 2011.10.21 06:04:00 -
[14] - Quote
This is as close as I can to coming up with a 100%...
The Guard said nothing about being able to use the doors within the rooms, only that he may use one from the corridor.
He tries the first door, if he is not lucky then he uses the doors from the other rooms to find the princess. But the guard's condition was that he can only woo her is he finds her via a corridor door. So he notes her current position and tries again the next day.
He waits until she is in an end rooms that her only possible direction to move is the one next to it and he can nab her there.
This solution has the flaw of the possibility of her never reaching an end room. Because of that possibility I claim that there is no 100% way to get to her because it is possible that even knowing her current position that he lucks out on the 50/50 chance every time.
The only way to guarantee success is to know she is on an end room. The Drake is a Lie |

Isometric Isotope
Republic Military School Minmatar Republic
0
|
Posted - 2011.10.21 06:09:00 -
[15] - Quote
Xercodo wrote:This is as close as I can to coming up with a 100%...
The Guard said nothing about being able to use the doors within the rooms, only that he may use one from the corridor.
He tries the first door, if he is not lucky then he uses the doors from the other rooms to find the princess. But the guard's condition was that he can only woo her is he finds her via a corridor door. So he notes her current position and tries again the next day.
He waits until she is in an end rooms that her only possible direction to move is the one next to it and he can nab her there.
This solution has the flaw of the possibility of her never reaching an end room. Because of that possibility I claim that there is no 100% way to get to her because it is possible that even knowing her current position that he lucks out on the 50/50 chance every time.
The only way to guarantee success is to know she is on an end room. worm hole generator.... all he needs why bother even knocking or a cloning device clone him self a billion times and knock on every door that way :) but then he'd have to kill the clones and thats just messy business
|

Taedrin
Kushan Industrial
119
|
Posted - 2011.10.21 06:14:00 -
[16] - Quote
Xercodo wrote:This is as close as I can to coming up with a 100%...
The Guard said nothing about being able to use the doors within the rooms, only that he may use one from the corridor.
He tries the first door, if he is not lucky then he uses the doors from the other rooms to find the princess. But the guard's condition was that he can only woo her is he finds her via a corridor door. So he notes her current position and tries again the next day.
He waits until she is in an end rooms that her only possible direction to move is the one next to it and he can nab her there.
This solution has the flaw of the possibility of her never reaching an end room. Because of that possibility I claim that there is no 100% way to get to her because it is possible that even knowing her current position that he lucks out on the 50/50 chance every time.
The only way to guarantee success is to know she is on an end room.
Sadly, this is a loop hole due to the way I recounted the problem. I don't think the original wording allowed for this loop hole.
The "correct" answer takes advantage of no loop holes, or any non-linear thinking. It does not require any advanced or tricky mathematics. Once you see the proof, you will be surprised about how simple it is. |

stoicfaux
311
|
Posted - 2011.10.21 14:25:00 -
[17] - Quote
If the Prince selects room #2 twice in a row, then he is guaranteed that room #1 does not contain the Princess. I think the trick is going to requiring relying on the fact that the Princess must move every night.
For example: If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 1. On turn two, the Princess must move to room 2. By selecting room 2 two days in a row, the Prince either catches the Princes or can guarantee that the Princess is not in room 1.
If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 3, then by selecting room 2 again, then the princess has to move to room 4 (or she moves to room 2 and is caught.) T M F 1: 2 3 2: 2 4 (cannot move from room 3 to room 2, so must move to room 4) 3: 3 5 (cannot move from room 4 to room 3, so must move to room 5) ... repeat until princess is cornered in room 17.
Once the princess is guaranteed to be two rooms away in a particular direction, then the Prince will find her assuming he has enough turns left.
However, you still have to worry about being leapfrogged, but you can compensate for that by jumping back two rooms: T M F 1: 2 4 2: 2 3 3: 3 2 (Princess just leapfrogged the Prince) 4: 1 3 (Princess must move to room 4 next turn) 5: 2 4 (Princess is now two rooms away and will be caught) 6: 3 5 The Princess must move to room 3 on turn 4, which means she's two rooms away and will be caught.
I'm mostly sure that you can always catch the princess, but I still need to work out the pattern/formula for preventing leapfrogs for the proof.
Tinfoil. It should be at the top of everyone's food pyramid.
|

Myfanwy Heimdal
Heimdal Freight and Manufacture Inc
8
|
Posted - 2011.10.21 15:00:00 -
[18] - Quote
stoicfaux wrote:If the Prince selects room #2 twice in a row, then he is guaranteed that room #1 does not contain the Princess. I think the trick is going to requiring relying on the fact that the Princess must move every night.
For example: If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 1. On turn two, the Princess must move to room 2. By selecting room 2 two days in a row, the Prince either catches the Princes or can guarantee that the Princess is not in room 1.
If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 3, then by selecting room 2 again, then the princess has to move to room 4 (or she moves to room 2 and is caught.) T M F 1: 2 3 2: 2 4 (cannot move from room 3 to room 2, so must move to room 4) 3: 3 5 (cannot move from room 4 to room 3, so must move to room 5) ... repeat until princess is cornered in room 17.
Once the princess is guaranteed to be two rooms away in a particular direction, then the Prince will find her assuming he has enough turns left.
However, you still have to worry about being leapfrogged, but you can compensate for that by jumping back two rooms: T M F 1: 2 4 2: 2 3 3: 3 2 (Princess just leapfrogged the Prince) 4: 1 3 (Princess must move to room 4 next turn) 5: 2 4 (Princess is now two rooms away and will be caught) 6: 3 5 The Princess must move to room 3 on turn 4, which means she's two rooms away and will be caught.
I'm mostly sure that you can always catch the princess, but I still need to work out the pattern/formula for preventing leapfrogs for the proof.
That''s excellent but the danger is that on the move before you go to Room 3 she moves to Room 4 from Room 5. Thus then next she she can either go back to Room 5 or leap frog you into Room 3 as you go to Room 4. |

Zagam
Incompertus INC Fatal Ascension
187
|
Posted - 2011.10.21 15:17:00 -
[19] - Quote
The riddle only says the prince can "knock" on one door.
Why not just open the freakin' door? |

Myfanwy Heimdal
Heimdal Freight and Manufacture Inc
8
|
Posted - 2011.10.21 15:25:00 -
[20] - Quote
Zagam wrote:The riddle only says the prince can "knock" on one door.
Why not just open the freakin' door?
"Who's that knocking on my door? Who's that knocking on my door?, cried the fair young maiden "It's only me from across the sea, Said Barnacle Bill the Sailor."
Best stop here before the forum's PhilopKDock cuss-o-filter kicks in. |
|

Rabb Darktide
Ordo Eventus Inception Alliance
0
|
Posted - 2011.10.21 15:46:00 -
[21] - Quote
Taedrin wrote:An intriguing challenge from a friend of a friend, which a group of us already solved.
A prince from Far, Far Away visits a castle with the intention of wooing the princess there. The castle has a (straight) corridor with 17 rooms lined side-by-side. Each of the rooms have two doors connecting each other (except for the rooms on the ends), and another door connected to the corridor. A guard stops the prince and tells him that the princess is one of these rooms. However, the prince is allowed to knock on only a single door from the corridor. If the princess is in the room, he will be able to woo her and live happily ever after. If the princess is not in the room, he must leave and come back tomorrow to try again. Every night, the princess moves to an adjacent room. She never spends more than a single night in a room at a time.
Unfortunately, the prince already has his plane ticket for his return flight in 30 days. Can the prince conquer the princess? Prove your answer to be correct.
Simple.. Knock on the same door every night. If she is not there in the first night, she will be there sometime within the next 16 nights, leaving him just shy of two weeks to knock her up, have a shotgun wedding, and still catch his flight. |

Gavin DeVries
JDI Industries
13
|
Posted - 2011.10.21 16:05:00 -
[22] - Quote
That won't actually work. Nothing says the princess has to only move in one direction. She could quite easily just flip-flop between rooms 16 and 17, always moving back to the other, while you keep knocking on room 1.
My first through would be to walk up and down the corridor calling for her, then only knock on the door where she answers, but I suspect that's not allowed.
So, question 1: can you look through the keyholes?
Question 2: can you hear, once inside a room, if an adjacent room is occupied? If yes, then it's easy. Start at room 2, and see if either rooms 1 or 3 is occupied by the princess. If yes, knock on 2 again the following night. If she was in 1, you've caught her. If she ways in 3, there's a 50% chance you caught her and a 50% chance she's now in 4. If neither 1 nor 3 was occupied the first day, move to 3 the following day, and proceed down the corridor on successive days until the adjacent room has an occupant. Any time you do, knock on the same door the following day. Eventually she'll either move into the room you've chosen that day and you win, or you'll trap her at the far end and force her to choose your room. Either way you finish before the 30 days expires. PVP is a question with no single right answer, but a lot of wrong ones. |

Taedrin
Kushan Industrial
120
|
Posted - 2011.10.21 16:14:00 -
[23] - Quote
stoicfaux wrote:If the Prince selects room #2 twice in a row, then he is guaranteed that room #1 does not contain the Princess. I think the trick is going to requiring relying on the fact that the Princess must move every night.
For example: If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 1. On turn two, the Princess must move to room 2. By selecting room 2 two days in a row, the Prince either catches the Princes or can guarantee that the Princess is not in room 1.
If the prince (M for male) selects door 2 on day 1 (T for turn,) and the Princess (F for female) happens to be in room 3, then by selecting room 2 again, then the princess has to move to room 4 (or she moves to room 2 and is caught.) T M F 1: 2 3 2: 2 4 (cannot move from room 3 to room 2, so must move to room 4) 3: 3 5 (cannot move from room 4 to room 3, so must move to room 5) ... repeat until princess is cornered in room 17.
Once the princess is guaranteed to be two rooms away in a particular direction, then the Prince will find her assuming he has enough turns left.
However, you still have to worry about being leapfrogged, but you can compensate for that by jumping back two rooms: T M F 1: 2 4 2: 2 3 3: 3 2 (Princess just leapfrogged the Prince) 4: 1 3 (Princess must move to room 4 next turn) 5: 2 4 (Princess is now two rooms away and will be caught) 6: 3 5 The Princess must move to room 3 on turn 4, which means she's two rooms away and will be caught.
I'm mostly sure that you can always catch the princess, but I still need to work out the pattern/formula for preventing leapfrogs for the proof.
You are exactly half way there. However, you have taken a wrong turn with trying to prevent the princess from leapfrogging you.
Here's another hint: if the princess is able to leapfrog you, her location has a certain property depending upon the "turn" it is. Think evens and odds. |

Taedrin
Kushan Industrial
120
|
Posted - 2011.10.21 16:22:00 -
[24] - Quote
Gavin DeVries wrote:That won't actually work. Nothing says the princess has to only move in one direction. She could quite easily just flip-flop between rooms 16 and 17, always moving back to the other, while you keep knocking on room 1.
My first through would be to walk up and down the corridor calling for her, then only knock on the door where she answers, but I suspect that's not allowed.
So, question 1: can you look through the keyholes?
Question 2: can you hear, once inside a room, if an adjacent room is occupied? If yes, then it's easy. Start at room 2, and see if either rooms 1 or 3 is occupied by the princess. If yes, knock on 2 again the following night. If she was in 1, you've caught her. If she ways in 3, there's a 50% chance you caught her and a 50% chance she's now in 4. If neither 1 nor 3 was occupied the first day, move to 3 the following day, and proceed down the corridor on successive days until the adjacent room has an occupant. Any time you do, knock on the same door the following day. Eventually she'll either move into the room you've chosen that day and you win, or you'll trap her at the far end and force her to choose your room. Either way you finish before the 30 days expires.
This is a math riddle, so no loop holes are needed to solve the problem. You can not look through keyholes, she will not respond to you if you call to her, if you destroy or damage her castle she will be quite cross with you and you will be unable to woo her, she has taken ninja classes so you will not be able to hear her nor see any evidence of her having occupied a room, etc etc...
The only important information is:
1) The 17 rooms are connected to each other, much like a "Linked List", and there are 2 ends - i.e. the rooms do not loop. 2) The princess can only move to an adjacent room 3) The princess MUST move every night 4) The prince can only check one room a day 5) The prince only has 30 chances.
The key to this problem is constraints #2 and #3, as this forces the princess's location to have one of two properties - both of which are exploitable. The question is if you do it in 30 days. |

Myfanwy Heimdal
Heimdal Freight and Manufacture Inc
8
|
Posted - 2011.10.21 16:43:00 -
[25] - Quote
Doh! There's only one set of rooms and not two. So, one side of the corridor has no doors.
This is starting to make more sense. |

Myfanwy Heimdal
Heimdal Freight and Manufacture Inc
8
|
Posted - 2011.10.21 16:45:00 -
[26] - Quote
Prince starts in room 1. Next day room 2 Then room 1 Fourth day room 3 Fifth day room 2 Sixth day room 1
That sort of thing? |

stoicfaux
313
|
Posted - 2011.10.21 16:49:00 -
[27] - Quote
Taedrin wrote: You are exactly half way there. However, you have taken a wrong turn with trying to prevent the princess from leapfrogging you.
Here's another hint: if the princess is able to leapfrog you, her location has a certain property depending upon the "turn" it is. Think evens and odds.
I know, I know. But I'm just too brain dead to see and formalize the property. Whoever says "sleeps like a baby" to indicate peaceful sleep doesn't have kids.
Tinfoil. It should be at the top of everyone's food pyramid.
|

Rabb Darktide
Ordo Eventus Inception Alliance
0
|
Posted - 2011.10.21 17:09:00 -
[28] - Quote
Gavin DeVries wrote:That won't actually work. Nothing says the princess has to only move in one direction. She could quite easily just flip-flop between rooms 16 and 17, always moving back to the other, while you keep knocking on room 1.
Well, in that case the Prince should just find the singles bar in the castle and find a woman who doesn't want to start out the relationship by playing head games.
|

Rabb Darktide
Ordo Eventus Inception Alliance
0
|
Posted - 2011.10.21 17:09:00 -
[29] - Quote
Stupid double post.. |

Karl Planck
Labyrinth Obtaining Chaotic Kangaroos
11
|
Posted - 2011.10.21 17:16:00 -
[30] - Quote
grrrr i nearly have it but i am over by one freaking day
|
|
|
|
|
Pages: [1] 2 :: one page |
First page | Previous page | Next page | Last page |