Discrete Math Flashcards
Counting: Rule of sum
If task A can be performed in m ways And If task B can be performed in n ways, And both tasks cannot be performed simultaneously, Then there are m+n ways to perform one of these tasks.
Counting: Rule of Product
If a process can be broken down Into two stages, say stage A and stage B, And stage A can be performed in m ways And stage B can be performed in n ways, And the stages are independent (a choice for A does not affect a choice for B),
Then the number of ways to complete the process (in order) is m*n.
Counting: A bijection definition (non-formal)
A bijection between two sets X, Y is a “matching up”, or “pairing “.
Counting: formal definition of bijection
A bijection between two sets X, Y is a function f: X->Y that is both 1:1 and onto.
or
A function f (from set A to B) is bijective if, for every y in B, there is exactly one x in A such that f(x) = y
Alternatively, f is bijective if it is a one-to-one correspondence between those sets, in other words both injective and surjective.
One - to- one function ( or injective)
A function f: A → B is:
one-to-one If different elements of A always result in different images in B.
What this means is that it never maps distinct elements of its domain to the same element of its codomain.
or
Injective means that every member of “A” has its own unique matching member in “B”.
and
But we can have a “B” without a matching “A”.
Injective, Surjective and Bijective
What do those terms tell us about the function?
“Injective, Surjective and Bijective” tells us about how a function behaves
Surjective function definition (non-formal)
Surjective means that every “B” has at least one matching “A” (maybe more than one).
There won’t be a “B” left out.
Can a one-to-one function be reversed?
Injective functions can be reversed!
If “A” goes to a unique “B” then given that “B” value we can go back again to “A” (this does not work when two or more “A”s pointed to one “B” like in the “General Function”)
a domain of a function ?
is the same as asking
“What are all the possible x guys
that I can stick into this thing?”
Domain is all possible input values for a given function.
Usually looking for what is NOT in the domain.
range of the function?
is the set of all values that f (function) takes.
Bijective means…
Bijective means both Injective and Surjective together.
So there is a perfect “one-to-one correspondence” between the members of the sets.
(But don’t get that confused with the term “One-to-One” used to mean injective)
Surjective (Also Called “Onto”)… (formal definition)
A function f (from set A to B) is surjective if and only if for every y in B, there is at least one x in A such that f(x) = y, in other words f is surjective if and only if f(A) = B.
So, every element of the range corresponds to at least one member of the domain.
general, injective, surjective, bijective graphic meaning in Cartesian coordinates
general f-n: for every value x (in domain) there might be more then one value of y (in range).
injective f-n: for every value of x in A (domain) there is one and only one value y in B (range).
surjective f-n: if the range of f equals the codomain of f. I.e. f is a surjection if for every y € Y there exists x € X such that f(x) = y.