The inverse of relation

Relation R –1 from B to A can be defined

Let A = {2, 3, 4} and B = {2, 6, 8}, and let R be the “divides” relation from A to B:

For every ordered pair (x, y) ∈ A × B, x R yx | y.

Ordered pairs in R and R –1?

R –1 in words?

Directed graph of a relation

Directed graph

– Draw an arrow from each point of A to each related point.

– If a point is related to itself, a loop is drawn that extends out from the point and goes back to it.

스크린샷 2024-12-14 오전 3.30.16.png

N-ary relations

– A subset of a Cartesian product of two sets

What about relations with n-tuple?