Lecture 5 - Relations Flashcards

1
Q

What is a relation?

A

A relation R from X to Y is a subset of X x Y. If (x,y) is an element of R, then we write x R y. The inverse of R is denoted by R^-1

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

What does it mean if a relation is reflexive?

A

It means (x,x) is an element of the relation. In other words, you put in x, you get back x.

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

What does it mean if a relation is symmetric?

A

It means that for all (x,y) in R where x =/= y, (y,x) is in R. In other words, if you put in 3 and get back 4, you can put in 4 and get back 3.

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

What does it mean if a relation is anti-symmetric?

A

That for all (x,y) in R where x =/= y, (y,x) does not exist in R. In other words, if you put in 3 and get back 4, you will not get back 3 if you put in 4.

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

How do you draw a matrix representation of a relation?

A

Draw possible values for x on one axis (generally 1-4) and possible values for y on the other (also 1-4). Mark 1’s where the relation holds true, 0’s where it does not.

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

What is required in order for a relation R on X to be a partial order?

A

It must be reflexive, anti-symmetric and transitive

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

What are the components of a digraph?

A

Vertices - Represent elements
Directed Edge - (relation) Represents an element (x,y) being present in the relation. In other words, if you put in x and get y.
Loop - Represents an element (x,x) being present in the relation. In other words, if you put in x and get x.

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