15.08.2013 Views

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

1.1.4 Relations <strong>and</strong> Functions<br />

Problem 1.8 (Associativity of Relation Composition)<br />

Let R, S, <strong>and</strong> T be relations on a set M. Prove or refute that the composition operation <strong>for</strong><br />

relations is associative, i. e. that<br />

Solution:<br />

Proof:<br />

P.1 Let 〈x, y〉 ∈ ((T ◦ S) ◦ R).<br />

P.2 ∃z1 ∈ M.〈x, z1〉 ∈ R ∧ 〈z1, y〉 ∈ (T ◦ S)<br />

(T ◦ S) ◦ R = T ◦ (S ◦ R)<br />

P.3 ∃z1, z2 ∈ M.〈x, z1〉 ∈ R ∧ (〈z1, z2〉 ∈ S ∧ 〈z2, y〉 ∈ T )<br />

P.4 ∃z2 ∈ M.〈x, z2〉 ∈ (S ◦ R) ∧ 〈z2, y〉 ∈ T<br />

P.5 〈x, y〉 ∈ (T ◦ (S ◦ R)).<br />

9

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

Saved successfully!

Ooh no, something went wrong!