Discrete Math Flashcards

1
Q

Counting: Rule of sum

A

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.

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

Counting: Rule of Product

A

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.

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

Counting: A bijection definition (non-formal)

A

A bijection between two sets X, Y is a “matching up”, or “pairing “.

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

Counting: formal definition of bijection

A

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.

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

One - to- one function ( or injective)

A

A function f: A → B is:

one-to-one If different elements of A always result in different images in B.

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

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”.

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

What is a function?

A

A function is a way of matching the members of a set “A” to a set “B”.

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

Injective, Surjective and Bijective

What do those terms tell us about the function?

A

“Injective, Surjective and Bijective” tells us about how a function behaves

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

Surjective function definition (non-formal)

A

Surjective means that every “B” has at least one matching “A” (maybe more than one).

There won’t be a “B” left out.

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

Can a one-to-one function be reversed?

A

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”)

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

a domain of a function ?

A

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.

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

range of the function?

A

is the set of all values that f (function) takes.

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

Bijective means…

A

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)

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

Surjective (Also Called “Onto”)… (formal definition)

A

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.

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

general, injective, surjective, bijective graphic meaning in Cartesian coordinates

A

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.

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

⇔ (iff)

meaning?

A

‘if and only if’

17
Q

f: XY means?

A

means the function f maps the set X into the set Y

18
Q

A

x, P(x) means P(x) is true for all x.

19
Q

∃!

A
  • there exists exactly one
  • there exists;

there is;
there are

  • is an element of;
  • such that
20
Q

Permutation definition (formal)

A

A permutation of a set X is a bijection from X to itself.

21
Q

Informal definition of a permutation

A

A linear arrangement of (distinct) objects is called a permutation of the objects.

22
Q

{ } indicate… which set?

A

unordered

23
Q

(1, 2, 3) indicate which set?

A

ordered

24
Q

the formula for linear arrangements count (no repetitions of objects are allowed)

A

P(n,r) = n!/(n-r)!

25
Q

the formula for linear arrangements count if repetitions are allowed

A

P(n,r) = nr

26
Q

the formula for linear arrangements count if there are indistinguishable objects

A

P(n,r) = n!/(n1! n2! ··· nr!)