06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“mcs” — 2017/3/3 — 11:21 — page 122 — #130<br />

122<br />

Chapter 4<br />

Mathematical Data Types<br />

Class Problems<br />

Problem 4.36.<br />

Let A D fa 0 ; a 1 ; : : : ; a n 1 g be a set of size n, and B D fb 0 ; b 1 ; : : : ; b m 1 g a set<br />

of size m. Prove that jA Bj D mn by defining a simple bijection from A B to<br />

the nonnegative integers from 0 to mn 1.<br />

Problem 4.37.<br />

Let R W A ! B be a binary relation. Use an arrow counting argument to prove the<br />

following generalization of the Mapping Rule 1.<br />

Lemma. If R is a function, and X A, then<br />

jXj jR.X/j:

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

Saved successfully!

Ooh no, something went wrong!