Still not as hard as Dark Souls

The video game Schmark Schmouls is an excellent video game with the latest graphics and cutting-edge gameplay and will be a surefire hit when it releases sometime in the near future (Soon™). Also, Schmark Schmouls has no relation to Dark Souls... please don't sue.

In the game, the player starts at checkpoint A A , and must pass through the checkpoints B B , C C , and D D in order. After passing checkpoint D D , the player wins the game. To pass each checkpoint (except for the starting checkpoint A A ), the player must defeat a boss.

Each time a player attempts to defeat a boss, the following outcomes could occur:

  • 1 3 \frac{1}{3} probability: The player defeats the boss and passes the checkpoint.
  • 1 3 \frac{1}{3} probability: The player loses to the boss and gets sent back to any of the previous checkpoints with equal probability. The boss at that checkpoint will not re-spawn, but all bosses in succeeding checkpoints will re-spawn.
  • 1 3 \frac{1}{3} probability: The player loses to the boss, throws the controller across the room, turns the game off, cries in the corner, and never plays Schmark Schmouls again.

The probability that a player wins the game of Schmark Schmouls can be expressed as a b \frac{a}{b} , where a a and b b are positive co-prime integers. Find a + b a+b .


The answer is 12.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Andy Hayes
May 20, 2015

I will define P ( B A ) P(B|A) to be the probability that a player eventually passes checkpoint B B , given that they are starting from checkpoint A A . All other conditional probabilities that I list in this solution will be defined in a similar way.

When player starts at checkpoint A A , he will either pass checkpoint B B with 1 3 \frac{1}{3} probability, get another chance with 1 3 \frac{1}{3} probability, or quit. Thus, P ( B A ) P(B|A) can be defined recursively as:

P ( B A ) = 1 3 + 1 3 P ( B A ) P(B|A)=\frac{1}{3}+\frac{1}{3}P(B|A)

Solving this equation for P ( B A ) P(B|A) yields P ( B A ) = 1 2 P(B|A)=\frac{1}{2} .

Now that the player is at checkpoint B B , he will attempt to pass checkpoint C C . The player will either pass checkpoint C C with 1 3 \frac{1}{3} probability, get sent back to a previous checkpoint with 1 3 \frac{1}{3} probability, or quit. If he gets sent back to a previous checkpoint, then he will either get sent back to checkpoint A A with 1 2 \frac{1}{2} probability or checkpoint B B with 1 2 \frac{1}{2} probability. Once again, we will use recursion to define P ( C B ) P(C|B) :

P ( C B ) = 1 3 + 1 3 [ 1 2 P ( C A ) + 1 2 P ( C B ) ] P(C|B)=\frac{1}{3}+\frac{1}{3}\big[\frac{1}{2}P(C|A)+\frac{1}{2}P(C|B)\big]

Using Bayes' Theorem, we can define P ( C A ) P(C|A) :

P ( C A ) = P ( B A ) × P ( C B ) = 1 2 P ( C B ) P(C|A)=P(B|A)\times P(C|B)=\frac{1}{2}P(C|B)

We can then substitute and solve for P ( C B ) P(C|B) . This yields P ( C B ) = 4 9 P(C|B)=\frac{4}{9} and P ( C A ) = 2 9 P(C|A)=\frac{2}{9}

Once a player passes checkpoint C C , he will attempt to pass checkpoint D D . This equation is set up in much the same way before. The only exception is that if the player is sent back, he has an equal 1 3 \frac{1}{3} chance to be sent back to A A , B B , or C C :

P ( D C ) = 1 3 + 1 3 [ 1 3 P ( D A ) + 1 3 P ( D B ) + 1 3 P ( D C ) ] P(D|C)=\frac{1}{3}+\frac{1}{3}\big[\frac{1}{3}P(D|A)+\frac{1}{3}P(D|B)+\frac{1}{3}P(D|C)\big]

We can use Bayes' Theorem to get P ( D A ) P(D|A) and P ( D B ) P(D|B) in terms of P ( D C ) P(D|C) :

P ( D A ) = 2 9 P ( D C ) P(D|A)=\frac{2}{9}P(D|C)

P ( D B ) = 4 9 P ( D C ) P(D|B)=\frac{4}{9}P(D|C)

We can then solve for P ( D C ) P(D|C) . This yields P ( D C ) = 9 22 P(D|C)=\frac{9}{22} . Then we can obtain P ( D A ) = 2 9 × 9 22 = 1 11 P(D|A)=\frac{2}{9}\times\frac{9}{22}=\frac{1}{11} . Thus the answer to the problem is 1 + 11 = 12 1+11=12 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...