/ department of mathematics and computer science
Relations
Lectures 8–9 (Chapter 17)
2/16 / department of mathematics and computer science
Relation between sets
A relation R between sets A and B is a predicate on A × B. R(x, y) means ‘x ∈ A and y ∈ B are related.’
Example (Arrow Graph) A = Children B = Parents
tim sara ron anna bert clemens daphne
The relation ‘is child of’ is a predicate on Children × Parents . In this example we have: R(b, r), R(b, s), R(c, t), and R(d, r) We sometimes write bRr instead of R(b, r).
3/16 / department of mathematics and computer science
Relation between sets
A relation R between sets A and B is a subset of A × B. That is: R ⊆ A × B.
Example (Cartesian Graph)
A r s t B a b c d
R = {(b, r), (b, s), (c, t), (d, r)} . We sometimes write (b, r) ∈ R instead of R(b, r).
4/16 / department of mathematics and computer science