CP 3 Relations 1 Flashcards

1
Q

what is a relation

A

a relation (R) from A to B is a subset of AxB when (a,b) are elements of R
- we say a is related to b (aRb)

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

an example of a relation

A

M=set of mothers
S= set of sons

R={(m,s)|m is the mother of s}

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

TF every relation is a function but not every function is a relation

A

T

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

What the key difference between a relation and a function

A

In a function every element in A is assigned to an element in B
- in a relation each element in A can be related to zero, one, or many elements in B

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

statement

A

given set S we say that R is a relation on S if R is a subset of SxS

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

what is reflexive

A

something is related to itself

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

what is a symmetric relation

A

if for all a,b∈ S, then

(a,b)∈R implies (b,a)∈R

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

what is antisymetric

A

if for all a,b∈ S, then

(a,b)∈R implies (b,a)∉ R

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

what is a transitive relation

A

if a,b,c∈S
(a,b)∈R and (b,c)∈R
implies
(a,c)∈R

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

TF if theres no arrows for you to apply then the definition stands

A

T, If there exists no arrows from a–>b–>c then there is no need for an arrow from a–>c thus it is transitive

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

Tf for something to be symmetric or antisymmetric not all elements must be affected

A

F, all elements must be affected properly in order for the relation to apply (but if nothing is touching that element its not included)

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

what is the criteria for a partial order

A

it must be reflexive, antisym. and transitive
(divisors or 42 graph)

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

what is the criteria for a graph

A

it must be antireflexive and symmetric

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

what is the only transitive graph

A

an empty set

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

what is the criteria for an equivalence relation

A

it must be reflexive, symmetric and transitive

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

what is a power set

A

a set w/ all subsets of X as its elements
denoted: 2^x

17
Q

example of a power set\
*notice: X has 3 elements and 2^x has 18 elements

A

X={p,q,r}
2^x= {{},{p},{q},{r},{p,q}{p,r},(q,r},{p,q,r}