06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

“mcs” — 2017/3/3 — 11:21 — page 778 — #786<br />

778<br />

Chapter 18<br />

Conditional Probability<br />

will be released”, then his own probability of release will drop to 1=2 because he<br />

will then know that either he or Voldemort will also be released, and these two<br />

events are equally likely.<br />

Dark Lord Sauron has made a typical mistake when reasoning about conditional<br />

probability. Using a tree diagram and the four-step method, explain his mistake.<br />

What is the probability that Sauron is released given that the guard says Foo-Foo is<br />

released?<br />

Hint: Define the events S, F and “F ” as follows:<br />

“F ” D Guard says Foo-Foo is released<br />

F D Foo-Foo is released<br />

S D Sauron is released<br />

Problem 18.8.<br />

Every Skywalker serves either the light side or the dark side.<br />

The first Skywalker serves the dark side.<br />

For n 2, the n-th Skywalker serves the same side as the .n 1/-st Skywalker<br />

with probability 1=4, and the opposite side with probability 3=4.<br />

Let d n be the probability that the n-th Skywalker serves the dark side.<br />

(a) Express d n with a recurrence equation and sufficient base cases.<br />

(b) Derive a simple expression <strong>for</strong> the generating function D.x/ WWD P 1<br />

1 d nx n .<br />

(c) Give a simple closed <strong>for</strong>mula <strong>for</strong> d n .<br />

Problem 18.9. (a) For the directed acyclic graph (DAG) G 0 in Figure 18.3, a<br />

minimum-edge DAG with the same walk relation can be obtained by removing<br />

some edges. List these edges (use notation hu!vi <strong>for</strong> an edge from u to v):<br />

(b) List the vertices in a maximal chain in G 0 .

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!