CSCI 301 L14 Notes

Lecture 14 - Notes

Relations

Announcements

Please fill out Week 4 survey by tonight!

Midterm Exam is one week from today!

Tentative notes/exercises for the rest of this week are posted.

Relations

Example:

Let \(A = \{1, 2, 3\}\). The relation \(R\) meaning “greater than equal to” is a subset of \(A \times A\): \[ R = \{(1, 1), (2, 1), (2, 2), (3, 3), (3, 2), (3, 1)\} \subseteq A \times A \] We can also draw a diagram representing this relation:

where each element of \(A\) is a dot, and each ordered pair in the relation is drawn as an arrow from its first element to its second element.

Do Exercises Part A

Properties of Relations

properties

Consider \(R\) from above. Is it:

Do Exercises Part B

equivdef

Example:

Show that \(\equiv \pmod{3}\) (that is, congruence mod 3 is an equivalence relation.

Recall: \(a \equiv b \pmod{n}\) means \(n \mid (a-b)\).

Do Exercises Part C