All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
The folly of war part 1: Knights (Posted on 2005-08-23) Difficulty: 2 of 5
Consider two opposing armies of knights armed only with swords. The sizes of these armies are 500 and 300 knights.

When locked in combat with an enemy each knight has even odds of winning or losing. Knights, being chivalrous, prefer single combat and will not double up on their enemies. The extra knights in the larger army will wait until there is a free enemy to fight.

[Essentially the killing power of the larger army is proportional to the size of the smaller army.]

When the dust settles the smaller army is eliminated. How many knights (are expected to) remain in the larger army?

Generalize for two armies of size A and B where A>B.

See The Solution Submitted by Jer    
Rating: 3.4000 (5 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Full generalised derivation | Comment 21 of 24 |
This is a realy long winded way of solving it but will generalise to other coin tossing problems.

Define: f=probability of a knight from the smaller army winning=0.5.

For each round
P(Lose)=f
The knight of the larger army is still standing -0

P(win)=(1-f)
The knight of the larger army is dead -1
Goes on to fight the next knight

The question is "what is the expected number of rounds"

Define: n=number of rounds

The probability distribution of n is given by:

P(n)=f*(1-f)ⁿ

i.e. the probability of making it though n rounds without dying multiplied by the probability of dying in that round of combat.

The expected number of rounds is given by the sum 0→∞

E(n)=Σ nP(n)
i.e for this problem =0.5*Σ n*0.5ⁿ

This is a nasty infinite sum so we want to avoid having to do it.

Consider what happens if we limit our knight to a maxium of 2 rounds of combat. The expectation for this is E(n)=f*0+(1-f)*1 since we have f chance of dying and (1-f) chance of going on. But the expectation for the next round of combat is the same!

this leads to the following recursive formular

E(n)=f*0+(1-f)*(E(n)+1)

thus by rearranging

E(n)=(1-f)/f

For our problem this is 1

Thus the number of knights in large army=500-E(n)*300
=200





  Posted by Machiveli on 2005-08-28 14:24:11
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (13)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information