Relations Flashcards

(32 cards)

1
Q

What is an ordered n-tuple?

A

The ordered collection that has a₁ as its first element, a₂ as its second element, and aₙ as its last element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are ordered pairs?

A

2-tuples

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you find the cartesian product of A x B x C?

A

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 ().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the binary relation R from set A to set B?

A

R ⊆ A×B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does aRb denote?

A

(a,b)∈R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a ̸Rb denote?

A

(a,b)∉R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does it mean if (a,b) belongs to R?

A

a is related to b by R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Let A = {0,1,2} and B = {a,b}. What is a relation from A to B?

A

{(0,a), (0,b), (1,a), (2,b)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1-R2?

A

{(2,2), (3,3)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R2-R1?

A

{(1,2), (1,3), (1,4)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1∩R2?

A

{(1,1)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Let R1 = {(1,1), (2,2), (3,3)} and R2 = {(1,1), (1,2), (1,3), (1,4)}. What is R1 ∪ R2?

A

{(1,1), (1,2), (1,3), (1,4), (2,2), (3,3)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you define the composition of R1 and R2 where R2 ⊆ B×C and R1⊆ A×B?

A

R2 ◦ R1 ⊆ A×C = {(a, c) | ∃b ∈ B. (a,b) ∈ R1 ∧(b,c) ∈ R2}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does it mean if a relation is reflexive?

A

A relation R on set A is reflexive iff (a,a) ∈ R for every element a ∈ A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the notation for a reflexive relation?

A

∀x. (x ∈ A→(x,x) ∈ R)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does it mean if a relation is symmetric?

A

A relation R on set A is symmetric iff (b,a) ∈ R whenever (a,b) ∈ R, for all a,b ∈ A

17
Q

What is the notation for a symmetric relation?

A

∀x.∀y. ((x,y) ∈ R→(y,x) ∈ R)

18
Q

What does it mean if a relation is antisymmetric?

A

If (a,b) ∈ R and (b,a) ∈ R, then a=b

19
Q

What is the notation for an antisymmetric relation?

A

∀x, y. ((x,y) ∈ R ∧ (y,x) ∈ R→x=y)

20
Q

What does it mean if a relation is transitive?

A

If (a,b) ∈ R and (b,c) ∈ R, then (a,c) ∈ R for all a,b,c ∈ A

21
Q

What is the notation for a transitive relation?

A

∀x, y, z. ((x,y) ∈ R ∧ (y,z) ∈ R→(x,z) ∈ R)

22
Q

What does it mean if you need to find the closure of a relation R?

A

Find all the ordered pairs that need to be added to the relation in order to satisfy the required property (reflexive, symmetric, or transitive)

23
Q

What is an equivalence relation?

A

A relation on set A is called an equivalence relation if it is reflexive, symmetric, and transitive

24
Q

What does a∼b denote?

A

a and b are equivalent

25
What is an equivalence class?
Let R be an equivalence relation on set A. The set of all elements that are related to an element a of A is called the equivalence class of a.
26
How do you denote the equivalence class of a with respect to R?
[a] little R={s |(a,s)∈R}
27
What is a representative of the equivalence class [a] little R?
If b ∈ [a] little R (if b is included in the equivalence class of a)
28
What is ["ab"] little R? (equivalence classes)
{...,“ab”,“ba”,“ac”,...}
29
What is a partition of a set S?
A collection of disjoint nonempty subsets of S that have S as their union.
30
What is a partial ordering (or partial order)?
A relation R on set S is called a partial ordering if it is reflexive, antisymmetric, and transitive
31
What is a Hasse diagram?
A visual representation of a partial ordering that leaves out edges that must be present because of the reflexive and transitive properties
32
Can you have loops from one element back to the same element again in a Hasse diagram?
No, all loops (a,a) must be removed