1c. Problems: Functions, Relations, Binary, Equivalent Flashcards
z->x, x^2
Injective, surjective, neither, both?
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)
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
R = {(s,c) ∈ S x C | s registered for c}
subset of S x C captures relationship registered for
aRb if a < b
Reflexive, Symmetric, Transitive, Equivalence?
Transitive only bc…
Not symmetric bc don’t know if bRa holds
Not reflexive bc don’t know if equal
aRb if a <= b
Reflexive, Symmetric, Transitive, Equivalence?
Reflexive bc…
Transitive bc…
Not symmetric bc don’t know if bRa holds
aRb if a = b
Reflexive, Symmetric, Transitive, Equivalence?
Equivalence relation
aRb if |a - b|
Reflexive, Symmetric, Transitive, Equivalence?
Reflexive bc …
Not Symmetric bc…
Not Transitive bc…
aRb if |a| = |b|
Equivalence relation bc …
aRb if a = |b|
Transitive bc …
Not reflexive bc…
Not symmetric bc (-1, 1 counter example)
aRb if a and b are relatively prime
Not reflexive because there are two different prime numbers
Symmetric…?
Not transitive bc there are no common factors
Relation R on non-zero ints given by xRy if xy > 0 creates what equivalence classes?
A = {...-3, -2, -1, 1, 2, 3...} A1 = {...3, -2, -1,} negatives A2 = {1,2,3...) positives
the relation that has the same age on a set of people creates what equivalence classes?
groups of people who have the same age
On set of Natural numbers, a ≡4 b if (a mod 4) = (b mod 4)
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)
A={x ∈ N | x is even and 1
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 = Ø
A = finite set, has k elements. How many elements does AxAxAxAxA
k^5
f: Z->Z given by f(x) = x^2+1
Injective or Surjective?
Think: is there any number I’m not gonna get?
Not Injective:1 and -1 have same output
Not surjective: 3, 7, 15… cannot be mapped, not using all of range