1c. Problems: Functions, Relations, Binary, Equivalent Flashcards

1
Q

z->x, x^2

Injective, surjective, neither, both?

A

Not injective, + and - numbers that have same magnitude point to same output (1 and -1 map the same)
not surjective, can’t get certain values in the codomain of ints (ex, can’t get 5)

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

S = Students, C = Courses, R = someone registered for course

Form set R of ordered pairs (s,c) ∈ S x C, property = student registered for c

A

R = {(s,c) ∈ S x C | s registered for c}

subset of S x C captures relationship registered for

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

aRb if a < b

Reflexive, Symmetric, Transitive, Equivalence?

A

Transitive only bc…
Not symmetric bc don’t know if bRa holds
Not reflexive bc don’t know if equal

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

aRb if a <= b

Reflexive, Symmetric, Transitive, Equivalence?

A

Reflexive bc…
Transitive bc…
Not symmetric bc don’t know if bRa holds

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

aRb if a = b

Reflexive, Symmetric, Transitive, Equivalence?

A

Equivalence relation

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

aRb if |a - b|

Reflexive, Symmetric, Transitive, Equivalence?

A

Reflexive bc …
Not Symmetric bc…
Not Transitive bc…

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

aRb if |a| = |b|

A

Equivalence relation bc …

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

aRb if a = |b|

A

Transitive bc …
Not reflexive bc…
Not symmetric bc (-1, 1 counter example)

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

aRb if a and b are relatively prime

A

Not reflexive because there are two different prime numbers
Symmetric…?
Not transitive bc there are no common factors

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

Relation R on non-zero ints given by xRy if xy > 0 creates what equivalence classes?

A
A = {...-3, -2, -1, 1, 2, 3...}
A1 = {...3, -2, -1,} negatives
A2 = {1,2,3...) positives
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

the relation that has the same age on a set of people creates what equivalence classes?

A

groups of people who have the same age

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

On set of Natural numbers, a ≡4 b if (a mod 4) = (b mod 4)

A
are both equivalent if a%4 = b%4
[0] = {0,4,8,12,...} (4%4=0)
[1] = {1,5,9,13...}
[2] = {2,6,10,14...}
[3] = {3,7,11,15...}
[4]= ?
same equivalent class as 0 (4 divisible by 4)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A={x ∈ N | x is even and 1

A

A=2,4,6,8
B = 5,7
C = 3,5,7

1) 2,4,6,8,5,7
2) 2,4,6,8 (B-C = Ø)
3) B⋂~A = 5,7 A∆C = Ø

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

A = finite set, has k elements. How many elements does AxAxAxAxA

A

k^5

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

f: Z->Z given by f(x) = x^2+1
Injective or Surjective?
Think: is there any number I’m not gonna get?

A

Not Injective:1 and -1 have same output

Not surjective: 3, 7, 15… cannot be mapped, not using all of range

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

g: N->N given by g(x) = 2^x

A

Injective: no duplicate values for any input

Not surjective: not using odd numbers in range

17
Q

h: R->R given by h(x) = 5x-1

A

Injective: no duplicate values for any input
Surjective: bc…
both

18
Q

A = finite set. |A| = k. How many injections from A to A are there?

A

k -> k: 4 options for 1st element
k -> k-1: 3 options for 2nd element
k -> k-2: 2 options for 3rd element
k -> k-3: 1 option for 4th element

19
Q

A = {1,3,5,7}
B={2,4,6}
V={(x,y) ∈ A x B | x < y}

A

1 2 1 -> 2,3,6
3 4 3 -> 4,6
5 6 5 -> 6
7