What is an ordered n-tuple?
The ordered collection that has a₁ as its first element, a₂ as its second element, and aₙ as its last element
What are ordered pairs?
2-tuples
How do you find the cartesian product of A x B x C?
List all the possible combinations where the first element is from set A, the second is from set B, and the 3rd element is from set C. The whole answer is in {} and each tuple is in ().
What is the binary relation R from set A to set B?
R ⊆ A×B
What does aRb denote?
(a,b)∈R
What does a ̸Rb denote?
(a,b)∉R
What does it mean if (a,b) belongs to R?
a is related to b by R
Let A = {0,1,2} and B = {a,b}. What is a relation from A to B?
{(0,a), (0,b), (1,a), (2,b)}
Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1-R2?
{(2,2), (3,3)}
Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R2-R1?
{(1,2), (1,3), (1,4)}
Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1∩R2?
{(1,1)}
Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1 ∪ R2?
{(1,1), (1,2), (1,3), (1,4), (2,2), (3,3)}
How do you define the composition of R1 and R2 where R2 ⊆ B×C and R1⊆ A×B?
R2 ◦ R1 ⊆ A×C = {(a, c) | ∃b ∈ B. (a,b) ∈ R1 ∧(b,c) ∈ R2}
What does it mean if a relation is reflexive?
A relation R on set A is reflexive iff (a,a) ∈ R for every element a ∈ A
What is the notation for a reflexive relation?
∀x. (x ∈ A→(x,x) ∈ R)
What does it mean if a relation is symmetric?
A relation R on set A is symmetric iff (b,a) ∈ R whenever (a,b) ∈ R, for all a,b ∈ A
What is the notation for a symmetric relation?
∀x.∀y. ((x,y) ∈ R→(y,x) ∈ R)
What does it mean if a relation is antisymmetric?
If (a,b) ∈ R and (b,a) ∈ R, then a=b
What is the notation for an antisymmetric relation?
∀x, y. ((x,y) ∈ R ∧ (y,x) ∈ R→x=y)
What does it mean if a relation is transitive?
If (a,b) ∈ R and (b,c) ∈ R, then (a,c) ∈ R for all a,b,c ∈ A
What is the notation for a transitive relation?
∀x, y, z. ((x,y) ∈ R ∧ (y,z) ∈ R→(x,z) ∈ R)
What does it mean if you need to find the closure of a relation R?
Find all the ordered pairs that need to be added to the relation in order to satisfy the required property (reflexive, symmetric, or transitive)
What is an equivalence relation?
A relation on set A is called an equivalence relation if it is reflexive, symmetric, and transitive
What does a∼b denote?
a and b are equivalent