PWrong wrote:I'll think about the case with three AI's while I'm away.
moonlord wrote:This sounds a lot like game theory to me. I'll have to do some research.
Two AI's
|0 1 2
-----------
0|2 1 0
1|1 1 0
2|0 1 0
Three AI's
|0 1 2 3
--------------
0|3 2 1 0
1|1 4/3 1 0
2|1 2/3 1 0
3|0 0 1 0
OK. I've done the table for 4 AI's by trial but there is an empty place, the EEEE one (kill zero). EDIT: I've removed the 47/108 value for GEEE, kill zero, because it's incorrect.
0 1 2 3 4
GGGG: 4 3 2 1 0
GGGE: 1 3/2 3/2 1 0
GGEE:5/6 7/8 1 1 0
GEEE: 1 3/4 1/2 1 0
EEEE: 0 3/4 0 1 0
U(n,m,k) is the function, U:Z^3->Q. n AI's, m evil AI's, k killed at round 0.
R1. if n = k then U = 0. Duh. If you kill all...
R2. if n = k + 1 then U = 1. You kill all except one.
R3. if m = 0 then U = n - k. No evil, noone kill anybody. You get what you left alive.
Two AI's
|0 1 2
-----------
0|2 1 0
1|1 1 0
2|0 1 0
Three AI's
|0 1 2 3
--------------
0|3 2 1 0
1|1 4/3 1 0
2|1 2/3 1 0
3|0 0 1 0
Four AI's
| 0 1 2 3 4
--------------------
0| 4 3 2 1 0
1|4/3 3/2 3/2 1 0
2|10/9 1 1 1 0
3| 1 3/4 1/2 1 0
4| 0 0 0 1 0
ab, ac, ad, ae, bc, bd, be, cd, ce, de
0 , 1 , 1 , 1 , 1 , 1 , 1 , 2 , 2 , 2
I'll try to work out U(n,3,0). Remember that evil guys can kill each other simultaneously. However, two bad guys can't kill the same guy simultaneously. Basically, if there are three evil guys, we simply pick three guys at random to die.
PWrong wrote:The chance of the three evil guys killing each other simultaneously is 2/(n-1)*2/(n-1)*2/(n-1)
The chance of the first two evil guys killing an evil, but the third one killing a good guy is 2/(n-1)*2/(n-1)*(n-3)/(n-1)
This can happen in a different order, so the chance of two evil guys dying is 3*2*2*(n-3)/(n-1)^3
The chance of the first evil guy killing an evil, but the other two killing good guys is 2/(n-1)*(n-3)/(n-1)*(n-3)/(n-1).
Again, this can happen in three different orders, so the chance of one evil guy dying is: 3*2*(n-3)^2 / (n-1)^3
Finally the chance of all three killing good guys is (n-3)^3 / (n-1)^3.
irockyou wrote:I started doing 5, but quickly I came to an impass:
Let's say we have GGGGE: if I kill two of them, what are the odds of killing the E? Is it 2/5, or is it 1/5 + 1/4? Do I kill two random people simultaneously or not?
Rob wrote:irockyou wrote:I started doing 5, but quickly I came to an impass:
Let's say we have GGGGE: if I kill two of them, what are the odds of killing the E? Is it 2/5, or is it 1/5 + 1/4? Do I kill two random people simultaneously or not?
It's 1/5 + 1/4. If you were to kill two people simultaneously, you wouldn't kill one person twice, so it would be the same as if you killed them seperately.
irockyou - fixed brackets wrote:U(K2)=[(1/5 + 1/4)*4] + [(4/5 + 3/4) * 1] = (9/20 * 4) + (31/20) = 33/10
It's 1/5 + 1/4. If you were to kill two people simultaneously, you wouldn't kill one person twice, so it would be the same as if you killed them seperately.
p(1) = (n-m)/n * m/(n-1)
I fixed and rearranged the formula and wrote:k=2:
p(0) = (n-m)(n-m-1) / n(n-1)
p(1) = 2 * m(n-m) / n(n-1)
p(2) = m(m-1) / n(n-1)
You're not stupid. My mistake was a lot worse (the one irockyou pointed out).Hey I'm stupid. I realised the situations should give the same formula, but didn't add them.
Users browsing this forum: No registered users and 2 guests