On March 17 2009 16:15 semioldguy wrote:
#1 When is a door not a door?
#1 When is a door not a door?
What its ajar! (a jar) I knew this one without looking it up, go me.
Forum Index > General Forum |
Spartan
United States2030 Posts
On March 17 2009 16:15 semioldguy wrote: #1 When is a door not a door? What its ajar! (a jar) I knew this one without looking it up, go me. | ||
LaughingTulkas
United States1107 Posts
On March 17 2009 16:15 semioldguy wrote: #3 People who are dead eat this, but if a living person eats this, they die. What is it? + Show Spoiler + Which road would your twin tell me to take. Then take the opposite. | ||
ZerG~LegenD
Sweden1179 Posts
On March 17 2009 08:38 LaughingTulkas wrote: @ zerg legend I simply meant that my previous elimination method would not work, but on my rethink I went down a totally different track. As for your follow up question, I don't recall it, I'll have to go back and see, and then perhaps tomorrow when I'm free for a bit again (: I enjoyed the riddle though! edit: Went back and the only follow up question I can see is whether the ball is heavier or lighter, which I did mention in the solution I posted ![]() + Show Spoiler + If it's the codes I picked, it's heavier, or if it's the "reciprocal" code then it's lighter. I meant this one: "Given n balls and k weightings, when is it the answer to the riddle 'yes'?" | ||
LTT
Shakuras1095 Posts
It is yes when n < (3^k - 3)/2. Basically, it is yes when the possible number of outcomes for the weighing is less than the number of balls weighed. Each weighing has 3 possibilities (Left heavier, Right heavier, or equal.). With k weighings, that means that there are 3^k outcomes. 3^k Because we are constructing our system in such a way that all Left heaver or all Right heavier or all equal are not viable outcomes, those 3 cases are subtracted from our possible outcomes. 3^k - 3 Since we do not know if the odd ball is heavier or lighter, we have half as many outcomes to work with. (3^k - 3)/2 For 3 weighings, this gives us (3^3 - 3)/2 = (27 - 3)/2 = 24/2 = 12 outcomes, so we can determine the odd ball out of a maximum of 12 balls. | ||
![]()
TanGeng
Sanya12364 Posts
On March 17 2009 10:46 terr13 wrote: There are 100 prisoners in solitary cells. There's a central living room with one light bulb; this bulb is initially off. No prisoner can see the light bulb from his or her own cell. Everyday, the warden picks a prisoner equally at random, and that prisoner visits the living room. While there, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting that all 100 prisoners have been to the living room by now. If this assertion is false, all 100 prisoners are shot. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world could always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity. The prisoners are allowed to get together one night in the courtyard, to discuss a plan. What plan should they agree on, so that eventually, someone will make a correct assertion? + Show Spoiler + There is a sure way to get this right, but it takes a long time. The prisoners create a process of selecting a leader. The other prisoners will be ordinary prisoners. The leader has the job of declaring all 100 prisoners have been to the room. The first time an ordinary prisoner enters the room and finds the light bulb turned off, the prisoner turns the light bulb on. If the light bulb is on, the prisoner does nothing. If the prisoner enters the room and finds the light bulb turned off a second time, the prisoner does nothing. Whenever the leader enters the room, the leader turns the light bulb off if it is on. If the leader does this, the leader adds 1 to the tally. When the tally reaches 99, the leader declares that all prisoners have been inside the room. Optimally, the leader is the prisoner that enters the room on the second day. The process takes 20+ years on average. + Show Spoiler + The alternate solution is to use statistical probability such that the probability of getting all 100 prisoners into the room is so high that it might as well be certainty. Something like a 1000 days is enough time to wait. Each prisoner expects to enter the room 10 times during that long a duration. The probability of each prisoner never going to the room is near zero, but over 100 prisoners, it still adds up. Yet there is still more than 99% probability. So spend 3 years in jail and take your chances. Easy enough right? | ||
opsayo
591 Posts
On March 17 2009 21:53 TanGeng wrote: Show nested quote + On March 17 2009 10:46 terr13 wrote: There are 100 prisoners in solitary cells. There's a central living room with one light bulb; this bulb is initially off. No prisoner can see the light bulb from his or her own cell. Everyday, the warden picks a prisoner equally at random, and that prisoner visits the living room. While there, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting that all 100 prisoners have been to the living room by now. If this assertion is false, all 100 prisoners are shot. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world could always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity. The prisoners are allowed to get together one night in the courtyard, to discuss a plan. What plan should they agree on, so that eventually, someone will make a correct assertion? + Show Spoiler + There is a sure way to get this right, but it takes a long time. The prisoners create a process of selecting a leader. The other prisoners will be ordinary prisoners. The leader has the job of declaring all 100 prisoners have been to the room. The first time an ordinary prisoner enters the room and finds the light bulb turned off, the prisoner turns the light bulb on. If the light bulb is on, the prisoner does nothing. If the prisoner enters the room and finds the light bulb turned off a second time, the prisoner does nothing. Whenever the leader enters the room, the leader turns the light bulb off if it is on. If the leader does this, the leader adds 1 to the tally. When the tally reaches 99, the leader declares that all prisoners have been inside the room. Optimally, the leader is the prisoner that enters the room on the second day. The process takes 20+ years on average. This is one of my favorite riddles. I don't want to give away what I'm getting at, so I'll hint at it. Your solution is definitely a start that some people will figure out. However, is it the only way? If not, is it the most efficient? Don't the prisoners want to get out as soon as possible? See if you can think of another one. hint: + Show Spoiler + Your solution has one "leader" to tally up counts. This usually takes around 10,000+ days, or ~28 years. What's interesting is that we can optimize even more. You chose the leader to be the person who enters the room on the second day. If we choose the leader to be the first person to enter the room twice. That is, if the light is still on, then only unique prisoners have entered on everyday. This means that if I enter the room on the 40th day (and it's my second time) and the light is still on, then I know for a fact that 39 unique prisoners have entered the room already. This does a somewhat significant slimming on the solution time (~9000 days instead of ~10,000). Now with this track of mind, we have been using only one leader to count. But... What happens if you use more than one? How much does this reduce the average time? Lastly, what do you need to add or change to the prisoner's planning in order to make it work with the new plan? For those who think this is too easy, can you think of a better solution if the room now has two lightbulbs instead of 1? What if there are n prisoners and k light bulbs? (I really love this riddle, at first glance many find it impossible, and upon hearing one solution people fail to realize how deep the rabbit hole can go). | ||
![]()
TanGeng
Sanya12364 Posts
| ||
opsayo
591 Posts
A) The prisoners would rather escape than be in prison. B) The prisoners would rather be alive in prison than (risk being) dead. There is no amount of certainty worth guessing that all prisoners have been in the room unless it is with 100% certainty. It is logical to assume that counting the probability of every prisoner being in the room is close to 1 after ~3000 days (or so), but that's no fun! At the same time due to the random selection, even the most optimal solution might never resolve if the warden's random picking never picks a certain prisoner or two. | ||
ZerG~LegenD
Sweden1179 Posts
On March 17 2009 21:44 LTT wrote: + Show Spoiler + It is yes when n < (3^k - 3)/2. Basically, it is yes when the possible number of outcomes for the weighing is less than the number of balls weighed. Each weighing has 3 possibilities (Left heavier, Right heavier, or equal.). With k weighings, that means that there are 3^k outcomes. 3^k Because we are constructing our system in such a way that all Left heaver or all Right heavier or all equal are not viable outcomes, those 3 cases are subtracted from our possible outcomes. 3^k - 3 Since we do not know if the odd ball is heavier or lighter, we have half as many outcomes to work with. (3^k - 3)/2 For 3 weighings, this gives us (3^3 - 3)/2 = (27 - 3)/2 = 24/2 = 12 outcomes, so we can determine the odd ball out of a maximum of 12 balls. + Show Spoiler + Nice job. Though LLL/RRR is a usable outcome, so you're one off. | ||
15vs1
64 Posts
On March 17 2009 05:32 Badjas wrote: Take an elastic that can stretch to infinity, an infinitely long straight track, and a bicycler and snail who never tire. The biker is standing still on the track, with the elastic on the end of his bike, the elastic is further fixed to a point at the beginning of the track. The snail is crawling at the fixed point of the elastic at distance 0. The biker starts biking at distance > 0 and at a constant speed stretching the elastic. The snail crawls at a constant speed towards the biker, but it crawls slower than the biker bikes. Does the snail ever reach the biker? (I do not know the answer, but I was once told what the answer was. I don't get it X-| perhaps some smart people here want to crack this one) + Show Spoiler + The velocity of the snail is the summ of 2 terms: the velocity of the snail relatively elastic and the velocity of elastic (each point of elastic is moving while it stretching). ![]() where ![]() with new variables ![]() this equation will take simple form ![]() and the solution (after returning to the original variables) will be ![]() Now from the equation ![]() we can find time T required to catch up the bicycle and this time will be ![]() | ||
![]()
Pholon
Netherlands6142 Posts
On March 17 2009 16:15 semioldguy wrote: #2 You come to a fork in the road. You know that one direction leads to certain death while the other will provide safe passage. At this fork you know there is a pair of identical twins except that one of them will always tell the truth and the other will always tell a lie. You can only ask one twin one question before choosing which direction to go. What do you ask to ensure safe passage? + Show Spoiler + Ask twin A "What would twin B say which way I should pick not to die?" If the answer is left, you go right. | ||
Prose
Canada314 Posts
On March 16 2009 16:09 jinwoooooooo wrote: Show nested quote + On March 16 2009 13:09 Tensai176 wrote: A man is facedown in the middle of the dessert dead. If he had opened his knapsack he would have survived. What was in his backpack? + Show Spoiler + Guys, the key here is 'dessert'. He was unknowingly about to devour a strawberry cheesecake, but he has a deadly allergy to strawberry. If he had opened his knapsack, he would have taken the chocolate pudding in there which just so happens to be his favorite food, and would have eaten that instead thus saving his life. LOLLLL Mmm... dessert. | ||
![]()
Ares[Effort]
![]()
DEMACIA6550 Posts
On March 15 2009 16:00 imBLIND wrote: A man was shot multiple times in a house. There were 10 holes in the victim's body; 4 were exit wounds. The bullets were nowhere to be seen in the room even though there were visible bullet holes and ricochets. Where did the bullets go? Afterwards, they also noticed that the gun was missing. The dogs could not smell it and the metal detectors could not find it. They know its a handgun or revolver and that it is in the house. All they know about the murderer is that he is a dancer. Where is the gun? I can't figure this out =( can someone solve this or imBLIND can you tell us?? | ||
Geo.Rion
7377 Posts
You are on the top of a mountain, which is 1000m high. On halfway down you have some sort of rock where you can stop. You got a rope which is 750m long, and a knife. How do you get down from the mountain alive, without using any other stuff. You can seize your rope only at halfway/top of the mountain. | ||
JeeJee
Canada5652 Posts
On March 18 2009 03:46 EffOrt wrote: Show nested quote + On March 15 2009 16:00 imBLIND wrote: A man was shot multiple times in a house. There were 10 holes in the victim's body; 4 were exit wounds. The bullets were nowhere to be seen in the room even though there were visible bullet holes and ricochets. Where did the bullets go? Afterwards, they also noticed that the gun was missing. The dogs could not smell it and the metal detectors could not find it. They know its a handgun or revolver and that it is in the house. All they know about the murderer is that he is a dancer. Where is the gun? I can't figure this out =( can someone solve this or imBLIND can you tell us?? + Show Spoiler + the solution was something retarded with ice bullets, except they're pretty much impossible to make so the solution could be whatever the hell you think it is. i say the bullets were made of fairy dust and disappear upon contact. | ||
terr13
United States298 Posts
| ||
Shinshady
Canada1237 Posts
On March 17 2009 16:15 semioldguy wrote: #2 You come to a fork in the road. You know that one direction leads to certain death while the other will provide safe passage. At this fork you know there is a pair of identical twins except that one of them will always tell the truth and the other will always tell a lie. You can only ask one twin one question before choosing which direction to go. What do you ask to ensure safe passage? + Show Spoiler + Ask one of the twins if the other twin would say that a(choose either) passage is the safe one to go. If its the correct passage the liar would say it isn't. Even if it was the truth teller he'd say it isn't also. If its the unsafe passage the liar would say its safe and the truth teller would say it isnt safe. This way the passage that is always "unsafe" is the correct one. | ||
![]()
TanGeng
Sanya12364 Posts
On March 18 2009 05:10 terr13 wrote: I believe the solution you had for the 100 prisoners had an average running time of 28.5 years or so. I think the furthest they've got in optimizing a solution is about 10-11 years. A little brainstorm here, and I'll have to work out the mechanics and maybe write a simulation. + Show Spoiler + It looks like a mutli-tiered counting approach would work faster. The fastest is to tier by counting to as close to e as possible. That is 3, and so that gives 4 tiers, and all 100 prisoners have to be involved in one way or another, but the goal is to minimize their involvement. (strange 4 tiers of 3 = 12, but 6 tiers of 2 = 12 - except with more tiers - don't know what this means - perhaps I want to use 2 instead?) So that looks like that will be 66->22->8->3->1 which gives a total of exactly 100. nice. But there's no way to coordinate when the first tier is done - or when any tier is done. Only the last 1 can know when it's down. Hmmm, that means that the prisoners have to guess by calendar date, and there will need to be a way to return to any or all of the tiers if necessary if they are unlucky. Ahh yes, they have to set calendar dates ahead of time in order to coordinate all the prisoners, and they'll also have to work out calendar dates for when they redo the tiers. On the first pass, prisoners will want to be lightweight and progress through each cycle with a reasonable chance of 100% completion. If they are too conservative, then they are just wasting time, since if they miss 100% completion, they can just go back through a redo cycle. On the redos they need at least 100 day per tiers to make meaningful progress. A redo cycle has to be effective at matching up 1 countee and 1 counter. The first redo cycle maybe might have to be more conservative. And there needs to be some kind of tier transition mechanism. I'll have to work that out first. A programming exercise is probably in order. Conservatively, I would have to think that it would take 4 tier * 3 counts * 3 probability estimate * 100 men = 3600 days or 10 years. Ha! | ||
terr13
United States298 Posts
| ||
![]()
motbob
![]()
United States12546 Posts
On March 18 2009 03:57 Geo.Rion wrote: Riddle: You are on the top of a mountain, which is 1000m high. On halfway down you have some sort of rock where you can stop. You got a rope which is 750m long, and a knife. How do you get down from the mountain alive, without using any other stuff. You can seize your rope only at halfway/top of the mountain. + Show Spoiler + Cut the rope into 2 pieces, one 500m and one 250m. Make a noose at the end of the 250m piece Slip the 500m piece through. You now have a rope that is 500m. Slide down to the rock and stop. Pull the rope through the noose Slide down the the bottom | ||
| ||
![]() StarCraft 2 StarCraft: Brood War Britney Dota 2![]() ![]() Bisu ![]() Flash ![]() BeSt ![]() EffOrt ![]() Nal_rA ![]() firebathero ![]() actioN ![]() Dewaltoss ![]() Rush ![]() [ Show more ] League of Legends Counter-Strike Heroes of the Storm Other Games Organizations
StarCraft 2 • printf StarCraft: Brood War![]() • tFFMrPink ![]() ![]() • LUISG ![]() • IndyKCrew ![]() • AfreecaTV YouTube • intothetv ![]() • Kozan • sooper7s • LaughNgamezSOOP • Migwel ![]() Dota 2 Other Games |
BSL20 Non-Korean Champi…
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
BSL20 Non-Korean Champi…
BSL20 Non-Korean Champi…
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Sparkling Tuna Cup
Online Event
uThermal 2v2 Circuit
The PondCast
Replay Cast
Korean StarCraft League
[ Show More ] CranKy Ducklings
|
|