Brain teaser

Your walking around in the woods with a match. You stumble across a house. Inside is an oil burning lamp. a fire place and a wood burning stove which do you lite first ?


A widow died on friday and he was shipped from new york to florida . He was burried 3 days later. What is wrong with this ?


A plane crashes on the boarder of usa / canada . Where are the survivors burried ?


I know they are corny but hey what the heck (ignore the spelling mistakes I can't spell )
 
Simon F said:
K.I.L.E.R said:
I'm trying to make a point guys.

The moment you are capable of doing as I have requested a few posts above with the dimensions, then you will be able to answer all these other inane riddles. :p
Prove it.

Have you ever worked on a problem in 16 dimensional space? FWIW the DC VQ compressor does.

I've worked with 24 dimension arrays but you sure as hell wouldn't catch me trying to draw a picture of 24 dimensions. Does this program you talk about illustrate 16 dimensions? :oops:

My original question might not have been clear enough for some people.
The idea is to draw 16 dimensions. :p
 
Xmas said:
DemoCoder said:
Try this one:
Or another one:
You are given a write once memory with 7 bits. That is, once a '1' bit is written to a position, it cannot be changed. How can you write a 3-bit number (integers 0-7) 4 times into this memory? For example, I want to write the numbers 5, 2, 6, 3 into this memory. After each write, I should be able to read the number back unambiguously.
That seems to be only possible if the sequence of numbers is known beforehands.

Nope, I'll explain.

A projective plane of order N is a plane with N^2 + N + 1 points, N+1 lines, with the following properties

1) any two points define a line
2) any two lines determine a point
3) each line contains n+1 points on it
4) each point has n+1 lines through it

Basically, a projective plane has no parallel lines. All lines intersect somewhere. See http://mathworld.wolfram.com/ProjectivePlane.html

Let's consider the special case of the projective plane of order 2. It has 7 points, 7 lines, is related to many other branches of math, and looks like this

fano.gif


I am now going to show you how to store 4 3-bit integers into 7 bits, in any order, without the sequence being known before hand.

As a general rule, if the memory is in state i and you want to store an i, then do nothing.

1) if the memory is empty, and you want to store I, write a '1' into bit position I. To read back, if memory contains only 1 bit, then that bit position represents the integer we stored.

2) if the memory contains 1 bit, and is in state I, and you want to write J, then store '1' in position K where {I,J,K} are on a line in the Fano plane. (see picture).

To read back, if memory contains just two '1' bits, then the state of the memory is the empty third position on the line in the Fano plane containing the positions. (e.g. if bits 5 and 2 are '1', then look in the plane for a line defined by 5 and 2, and that means the memory contains '3', the other point that is on the line)


3) if the memory contains 2 bits, and you want to store I, put in two more '1' bits (anywhere) such that atleast one of four 1 bits is position I, and the other 3 are on a line in the Fano plane

To read back, if memory contains 4-bits, look in the fano plane for the three points that are co-linear. The one left all by itself (not on a line) is the state of the memory.

4) to store I, if bit position I is 0, write two '1's into the other two 0 bits. If bit position I is '1', find the line containing I and J (where J is the current "state" of the memory) and put a 1 bit there.

To read back:

if memory contains 6 '1' bits, then the number stored is the only bit that is not a '1' (the 0 bit). E.g. the only point in the fano plane not "marked"

If the memory contains 5 bits, then the number stored is found by taking the two bit positions that are 0 bits, looking at the line in the fano plane containing those two points, in which case, the value stored in the third point.

Let's walk through storing 5,2,6,3.

First, let's store 5. I put a '1' bit in position 5 (numbered left from 0)

0 0 0 0 0 1 0

I can unambiguously read this back of course

Now let's store 2. There is a 1 bit already, so I follow rule two. Find the line containing 5,2 and store the third point. (look at diagram, 5,2,3 are on a line), so I write '1' in position 3

0 0 0 1 0 1 0

I can read this back easily by looking up the line with 5,3 and finding '2' as the third point.

Now let's write 6. The memory contains 2 '1' bits, so I need to write two more '1' bits for a total of 4. Atleast one of them has to be bit position 6, and the other three must form a line. Let's write bits 6 and 2

0 0 1 1 0 1 1

I can read this back by looking at the fano plane and seeing that 5,2,3 define a line, and 6 is by itself.

Now, I want to write a '3' bit. I have to follow rule 4. Since 3 is already marked, the rule says to find the line containing the previous state (6) and the number I want to write (3), and put a 1 into the other point on the line defined by 6 and 3, that's 4.

0 0 1 1 1 1 1

I can read this by noticing bits 0 and 1 are '0', looking at those two points in the Fano plane, and seeing that the line they are on is 0,1,3, therefore 3 is the state of the memory.

Magic eh? That's why I remember this after seeing it like 9 years ago in school, an amazing result. The fano plane is beautiful as is the related structures (Latin squares, block designs, steiner triples, etc)


BTW, my fano plane is labeled differently than the one in the image I linked. Draw a triangle, label the corners 6 5 3 in clock wise fashion. In between 6 and 5 at the midpoint, label 1. In between 5 and 3, midpoint label 2. In between 3 and 6, midpoint label 4. And in the center of the triangle, put a 0.

Now draw lines 1,0, 3 2,0,6 4,0,5 and a circle 1,2,4
 
DemoCoder said:
Magic eh? That's why I remember this after seeing it like 9 years ago in school, an amazing result. The fano plane is beautiful as is the related structures (Latin squares, block designs, steiner triples, etc)
Ahh block designs. I quite liked those in my combinatorics course. Even used them again later in cryptography to try to design an optimum substition/permutation network.

Very nice puzzle BTW.
 
DemoCoder said:
BTW, my fano plane is labeled differently than the one in the image I linked. Draw a triangle, label the corners 6 5 3 in clock wise fashion. In between 6 and 5 at the midpoint, label 1. In between 5 and 3, midpoint label 2. In between 3 and 6, midpoint label 4. And in the center of the triangle, put a 0.

Now draw lines 1,0, 3 2,0,6 4,0,5 and a circle 1,2,4

I have a question... This way, shouldn't the numbers be 0 ~ 6, not 0 ~ 7?
 
pcchen said:
I have a question... This way, shouldn't the numbers be 0 ~ 6, not 0 ~ 7?
Yes, that I wondered, too. You can easily prove that it's impossible to do with numbers 0-7.
 
Simon F said:
The ceiling is 50 metres off the floor, the walls and ceiling of the tower are perfectly smooth, and the ropes are 1 metre apart. The ropes hang vertically and reach all the way to the floor. The thief is an expert at rope climbing etc, can safely land after a fall of 3 metres, and is equiped only with a knife.

Approximately how much rope can he steal?
Depending on how well he can make knots while rope climbing, approx. 98m
 
Xmas said:
Simon F said:
The ceiling is 50 metres off the floor, the walls and ceiling of the tower are perfectly smooth, and the ropes are 1 metre apart. The ropes hang vertically and reach all the way to the floor. The thief is an expert at rope climbing etc, can safely land after a fall of 3 metres, and is equiped only with a knife.

Approximately how much rope can he steal?
Depending on how well he can make knots while rope climbing, approx. 98m
He can probably do slightly better (say 98.5) but that's pretty close.
 
Here's one I posted at flipcode a while back. It goes something like this:

Stan, Eric and Kenny are held prisoners in a faraway land. One day, the authorities let them know that they have decided to exectute two of them the next day and send the remaining one home to set an example. This makes Stan pretty upset, he reckons he's got 2/3 of a chance of getting executed. Being so upset, Stan pesters the guard outside the cell to tell him if he's being executed or not. The guard refuses to tell him if he's going to be killed, but agrees to tell him which one of the other two that is going to be killed. The guard reveals that Kenny's going to get it the following morning. This makes Stan feel a bit more at ease since he now thinks his chances of surviving are 1 in 2 instead of 1 in 3. Show why Stan is wrong, and infact should be pretty worried (i.e what is the real probability that Stan gets killed). You can assume that the authorities pick who to kill randomly.

This is a variation of a fairly well known puzzle, if you know what the original one is called please don't post it so people can work it out for themselves without googling :).

And please play nicely, the last time I posted this people became really angry and upset with me and I had to spend a lot of time explaining probability theory. Look it up in the thread above if you want to, but beware that the solution is revealed fairly early in the thread.[/url]
 
Gamecat:
[EDIT] Re-read the puzzle - I recognise the "parent" puzzle but the way you've worded this one was a bit confusing at first.

The difference, of course, from the original puzzle, where the probability changes if you make a different choice, is that the Stan doesn't get a choice so the odds stay the same:) [/edit]
 
GameCat said:
The guard refuses to tell him if he's going to be killed, but agrees to tell him which one of the other two that is going to be killed.

That reads like you're saying one of the other two is killed, and the second of the two won't be killed. I assume that's not what is meant, and the guard only reveals that Kenny is killed, without implying anything about Eric. (Otherwise this woulnd't be a good puzzle. ;) )

GameCat said:
This makes Stan feel a bit more at ease since he now thinks his chances of surviving are 1 in 2 instead of 1 in 3. Show why Stan is wrong, and infact should be pretty worried (i.e what is the real probability that Stan gets killed). You can assume that the authorities pick who to kill randomly.

Actually, I think the answer is "it depends". ;)

On one hand, there is Kenny's line of thought: either he or Eric is gonna die, so 1/2 probability of being killed.

On the other hand, the guard didn't tell Stan anything that he didn't already know: either Eric or Kenny is going to die, so that doesn't change his situation at all, and he still has a 2/3 probability of being killed.

Why I say "depends", is that it depends on if the decisions on execution are made in a serial or parallel fashion. If all of the decisions have already been made (the guard knows everyone to be executed), then Stan has a 2/3 probability.

However, if the guard just then decided that Kenny will die, and will choose the next victim based on who's left, (and that decision has not yet been made) then Stan has a 1/2 probability of being executed, and should be a bit relieved.

I'm going to go with the assumption that the decisions have already been made, and the guard knows the fate of everyone. The guard is just revealing one of two whom he knows will be executed. Therefore, Stan still has a 2/3 possibility of being executed, so he should be no less worried than he was to begin with.
 
I'm going to go with the assumption that the decisions have already been made, and the guard knows the fate of everyone. The guard is just revealing one of two whom he knows will be executed. Therefore, Stan still has a 2/3 possibility of being executed, so he should be no less worried than he was to begin with.

Yes, the decision on who will survive has already be made, and the selection is random, i.e. everyone had an equal chance of being selected for survival. The guard simply mentions one of the two people being executed randomly, with the provision that he will never mention Stan.

What do you think Eric's chances of survival are? Should Eric be worried?

If the guard just revealed one of the two people who are going to be executed randomly (i.e he could possibly mention Stan), would that change anything?

You're defininitely on the right track. I won't reveal what the correct answer is just yet...
 
GameCat said:
Yes, the decision on who will survive has already be made, and the selection is random, i.e. everyone had an equal chance of being selected for survival. The guard simply mentions one of the two people being executed randomly, with the provision that he will never mention Stan.

OK, this is the "parallel decision" making branch, so my ultimate guess (Stan still has 2/3 probability of being killed) will stand. :)

What do you think Eric's chances of survival are? Should Eric be worried?

Well, after I gave my answer, I read your linked thread and found the "parent" problem, so I know the answer without "really thinking" it through. I won't reveal it here in case others want to take a stab at it. ;)
 
The guard refuses to tell him if he's going to be killed, but agrees to tell him which one of the other two that is going to be killed.
It's this line which is rather confusing. This implies that Stan IS going to die.

If OTOH you meant to write "...but tells Stan that Kenny is going to die" then Eric should be a bit happier but Stan's still got a 66% chance of execution. I think.... :)
 
Yeah that line IS confusing. Bad wording on my part. However, quoting myself:

The guard simply mentions one of the two people being executed randomly, with the provision that he will never mention Stan.

So you're wrong nelg. Stans chance of being executed is 2/3 just like Joe said. The thread I linked to has elaborate explanations of all this. The really funny part is that the probability that Eric gets killed is 1/3, so Stan would be better off "switching places" with him if it was possible.
 
Similar to the one by GameCat.

You are a prisoner being given one last chance for freedom. The guard show you three doors where two leads to the execution chamber and one to freedom.

You get to pick a door.

After the choice is made one of the remaining doors are opened and shown to have led to your death.

You now get the opportunity to alter your choice.

What do you do, and why?
 
Back
Top