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 195 — #203<br />

6.4. The Stable Marriage Problem 195<br />

Problem 6.18.<br />

Suppose that Harry is one of the boys and Alice is one of the girls in the Mating<br />

Ritual. Which of the properties below are preserved invariants? Why?<br />

a. Alice is the only girl on Harry’s list.<br />

b. There is a girl who does not have any boys serenading her.<br />

c. If Alice is not on Harry’s list, then Alice has a suitor that she prefers to Harry.<br />

d. Alice is crossed off Harry’s list, and Harry prefers Alice to anyone he is<br />

serenading.<br />

e. If Alice is on Harry’s list, then she prefers Harry to any suitor she has.<br />

Problem 6.19.<br />

Prove that in a stable set of marriages, every man is the pessimal husband of his<br />

optimal wife.<br />

Hint: Follows directly from the definition of “rogue couple.”<br />

Problem 6.20.<br />

In the Mating Ritual <strong>for</strong> stable marriages between an equal number of boys and<br />

girls, explain why there must be a girl to whom no boy proposes (serenades) until<br />

the last day.<br />

Class Problems<br />

Problem 6.21.<br />

The preferences among 4 boys and 4 girls are partially specified in the following<br />

table:<br />

B1: G1 G2 – –<br />

B2: G2 G1 – –<br />

B3: – – G4 G3<br />

B4: – – G3 G4<br />

G1: B2 B1 – –<br />

G2: B1 B2 – –<br />

G3: – – B3 B4<br />

G4: – – B4 B3

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

Saved successfully!

Ooh no, something went wrong!