Relations Flashcards

1
Q

What is a ordered n-tupes

A

an ordered collection of elements

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

What are 2-tuples called

A

ordered pairs

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

`What is the cartesian product

A

If A and B are sets, then the cartesian product of A and B, which is denoted by A x B, is the set of all ordered pairs (a,b) such that a is an element of A and b is an element of B

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

What would the answer for {r, o, w} x {a,n}

A

{r, o, w} x {a, n} = {(r,a), (r,n), (o,a), (o,n), (w,a), (w,n)}

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

Here are some examples

A

{r, o, w} x (a, n} = {(r,a), (r,n), (o,a), (o,n), (w,a), (w,n)}
= {(w,a), (r,a), (o,a), (o,n), (r,n), (w,n)}
{r, o, w, a)x {n) = {(r,n), (o,n), (w,n), (a,n)}
{r, o, w} × 0 = 0

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

What is the difference between sets and tuples

A

for sets order doesn’t matter, but for tuples it does

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

For a relation on a set to be transitive what must be true

A

every element must be related to itself

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

For a relation on a set to be symmetric what must be true

A

a relation on (a set) A is symmetric if xRy then yRx

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

For a relation on a set to be antisymmetric what must be true

A

aRb, bRa and a = b

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

What is a equivalence relation

A

When a set is transitive, symmetric and reflexive

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

What is reflexive closure

A

where you add the missing reflexive value(s) to provide the minimal values to set A and still contains R

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

What is symmetric closure

A

Symmetric closure of a binary relation R on a set A is the smallest

symmetric relation on a set A that contains R.
R$ = R U {(b, a) | (a, b) e R}

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

EXAMPLE: Let R be the relation on the set {0, 1,2 3} containing the ordered pairs (0, 1), (1,2), (2,0), (2,2) and (3,0). Find the symmetric closure

A

R = {(0, 1), (1, 1), (1, 2), (2, 0), (2, 2), (3, 0)}
A = {0, 1, 2, 3}

R(+s) = R U {(b, a) | (a,b) e R}
R(+s) = {(0, 1), (1, 1), (1, 2), (2, 0), (2, 2), (3, 0), (1,0), (2, 1), (0, 2), (0, 3)}

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

What is a transitive closure

A

Transitive closure of a binary relation R on a set A is the smallest transitive relation on a set A that contains R.
R(+ ) = R U {(a, c) | (a, b) e R ^ (b, c) e R]

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

Solve: Let R be the relation on a set {1, 2, 3] containing the ordered pairs (1, 1), (2, 3),
and (3, 1). Find the transitive closure of R.

A

Solution: R = {(1, 1), (2, 3). (3, 1)]
A = {1, 2, 3}
R$ = R U {(a, c) | (a, b)ER ^ (b, c) ER}
R$ = {(1, 1), (2, 3), (3, 1), (2, 1)]

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