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 400 — #408<br />

400<br />

Chapter 10<br />

Directed graphs & Partial Orders<br />

(c) Prove that every finite tournament digraph has a ranking.<br />

Optional<br />

(d) Prove that the greater-than relation > on the rational numbers Q is a DAG and<br />

a tournament graph that has no ranking.<br />

Homework Problems<br />

Problem 10.11.<br />

Let R be a binary relation on a set A. Regarding R as a digraph, let W .n/ denote<br />

the length-n walk relation in the digraph R, that is,<br />

(a) Prove that<br />

a W .n/ b WWD there is a length n walk from a to b in R:<br />

W .n/ ı W .m/ D W .mCn/ (10.11)<br />

<strong>for</strong> all m; n 2 N, where ı denotes relational composition.<br />

(b) Let R n be the composition of R with itself n times <strong>for</strong> n 0. So R 0 WWD Id A ,<br />

and R nC1 WWD R ı R n .<br />

Conclude that<br />

<strong>for</strong> all n 2 N.<br />

(c) Conclude that<br />

R n D W .n/ (10.12)<br />

R C D<br />

jAj<br />

[<br />

where R C is the positive length walk relation determined by R on the set A.<br />

iD1<br />

R i<br />

Problem 10.12.<br />

We can represent a relation S between two sets A D fa 1 ; : : : ; a n g and B D<br />

fb 1 ; : : : ; b m g as an n m matrix M S of zeroes and ones, with the elements of<br />

M S defined by the rule<br />

M S .i; j / D 1 IFF a i S b j :<br />

If we represent relations as matrices this way, then we can compute the composition<br />

of two relations R and S by a “boolean” matrix multiplication ˝ of their

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

Saved successfully!

Ooh no, something went wrong!