Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#501 2011-04-08 19:47:42

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Yes, that's the reason I gave a possible solution of combining A and B in the states in #467.
Start with A6B6, or let it be 66 for short, it goes to 65 or to DB. From 65 to 55 or DA. From 55 to 55,54,45,DA or DB.
So, from 55 through 12, each state will have 5 possible transitions. Finally, 11 will have 4 possible transitions including BA.

*edit: Whoops, some more states: 50,40,30,20,10,05,04,03,02,01

Last edited by gAr (2011-04-08 20:04:51)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#502 2011-04-08 20:03:19

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

What makes it go from 66 to 65? It seems that would be the loss of a bullet. How can we change states if no bullet is fired? The states are labeled according to how many bullets A or B has. 6 means 6 bullets. If you change states on empty chambers then it is possible to end the game with no bullets being fired. Especially with A2, A1, B2, B1 who most likely will not kill anyone. Should not the game end on a death or no more bullets?

Supposing we say that when A pulls the trigger and it is empty that he must pass it to the next B. Then the longest number of trigger pulls is 12. Less when someone is killed but never more than 12.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#503 2011-04-08 20:09:50

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

66 to 65 is same as A6 to B5 - the shot misses the target.

From 55 to 55,54,45,DA or DB

It remains in that state if no shot is fired.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#504 2011-04-08 20:19:16

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Have you made a transition matrix out of that?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#505 2011-04-08 20:25:06

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

I'm preparing one.
May take time, 41 states!

I'll take a 40 mins break, see you later.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#506 2011-04-08 20:34:40

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Okay gAr, have a good break! I am going to relax a little too.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#507 2011-04-08 23:54:35

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

The process for inverse calculation is running for more than 20 minutes, I don't know when it'll finish.
Here is the P matrix.

#


#
It is not displaying the latex code above, here is the plain text of the matrix:

[0,1/2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1/2,0],
[0,0,1/2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1/2],
[0,0,1/36,5/72,0,0,0,0,5/72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5/12,5/12],
[0,0,0,1/18,1/18,0,0,0,0,5/36,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5/12,1/3],
[0,0,0,0,1/12,1/24,0,0,0,0,5/24,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0],
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]

You may be knowing of more efficient algorithms.

Last edited by gAr (2011-04-08 23:58:16)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#508 2011-04-09 02:28:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

I was able to latex your matrix. But not in one piece. I think there is a limit on the size this latex will support.

Append these 3 rows to the bottom of P.

If you want you can paste this into your post, then I will delete this post here.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#509 2011-04-09 02:46:40

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

It's okay, it looks huge.
Maybe I'll post only the final probabilities I get.
It's slightly different from what we got.

Both alive: 3.17065746753247e-6 
A lives: 0.624998414671266 
B lives: 0.374998414671266


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#510 2011-04-09 03:06:50

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Maybe it's wrong, getting low values for expected number of shots.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#511 2011-04-09 03:09:01

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

Are you happy with both alive being so low?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#512 2011-04-09 03:44:35

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Probabilities are ok, but expected number of shots not ok.
Or were you sarcastic by not reading "e-6" at the end?!


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#513 2011-04-09 03:56:57

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

Not at all. I was just asking that probability is almost zero. I would thought it would be higher. The states A3,A2,A1 and B3,B2,B1 miss alot.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#514 2011-04-09 04:10:47

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Yes, it should have been higher.
I'm out of ideas!


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#515 2011-04-09 08:54:52

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

It is a hard problem.

Do you have an estimate as to what you think the expected numbers should be?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#516 2011-04-09 15:05:59

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Ok.
I expect the number of trigger pulls to be less than 30.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#517 2011-04-09 16:04:31

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

I expect it to be a around 3 or maybe 4. The A6 A5 B6 B5 are just going to be too efficient in hitting the target.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#518 2011-04-09 16:24:53

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Ah, yes!
I forgot it is the average. I gave an estimate of highest number such that no one is shot.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#519 2011-04-09 17:03:12

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

When only one person gets the chance to fire, I find the expected number to be 5233/2310.

And hmmm,
I'm beginning to think that the matrix in #509 may be right.
When both can shoot, the expected number should get less, isn't it?

The time to absorption is:

Last edited by gAr (2011-04-09 18:05:31)


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#520 2011-04-09 18:23:40

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

I agree, it should be less for two of them shooting.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#521 2011-04-09 18:41:15

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

The first markov chain gives 2.1710782777134774, this is also agreeable.
Is a simulation possible for this problem?


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#522 2011-04-09 21:26:08

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Yes: But I do not understand your model well enough to do it.

I am going to get a little rest. If you want I will do it first thing when I get up. Can you give me in words what happens on each possibility?  I need to know exactly what happens in your model on a hit, a miss and and a empty chamber. Try to simplify it because simple models run faster and are easier to program.

I think that we will get different answers depending on how we define the three possibilities ( hit, miss, empty chamber ). So lets start with yours and see if we can get the math to agree.

I have built another model that has sligtly different rules than your big one and I am getting 2.14555 as the expected number of pulls.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#523 2011-04-09 22:09:53

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi,

Let's forget that big matrix, it's probably wrong.
I'm trying to approach it in other ways.
Your answer is very close to the post above that.


See you later.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

#524 2011-04-10 04:19:59

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Is this cool with you?

Hi gAr;

I am beginning to think that how we handle a blank chamber is arbitrary. You can think of it one way or another each will produce different answers.

It has to be defined before answers will agree. The rule for that should also be stated in the problem. Since you posed the problem you have the honor of explicitly defining what should be done on a blank chamber.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#525 2011-04-10 05:03:06

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: Is this cool with you?

Hi bobbym,

Ok.
I'll try to define the problem again clearly:

There are two players with a revolver each, with a capacity of 6 bullets. They start with their revolvers fully loaded.
Each player tries to shoot the other person in turns, A gets the first turn.
They spin the cylinder before shooting. After they pull the trigger, whether the bullet goes off or not, the other player gets the turn if he's not dead yet.
Each of them have a 50 percent probability of hitting the target.

What is the probability that i) A will be dead ii) B will be dead iii) Both are alive ?


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

Board footer

Powered by FluxBB