Counting Flashcards

1
Q

Are sets dependent on order?

A

No - so
{1,5,3,4,2}
is the same as {1,2,3,4,5}

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

What is the cardinality of a set?

A

The number of elements that a set has

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

What is the cardinality of the empty set?

A

0, denoted by an angled theta.

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

What is the definition of a finite set?

A

If there is a one-to-one correspondence with another set, {1, …, n}
So if it can be numbered from 1,2 … n.

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

Can countable sets be infinite or finite?

A

Both - but not all infinite sets are countable, all finite ones are.

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

How can a set be countable and inifinte?

A

If there is a bijection between that set and the set of all natural numbers.

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

What is the sum rule for disjoint sets?

A

(A U B) = #A + #B

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

What is the generalisation of the sum rule?

A

That for task T, which can be executed in one of n1, n2 … nm ways,
the total amount of ways to execute that task are
n = (m (sigma) i = 1 ) ni

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

What is the formal definition of the product rule?

A

For T1, T2, Tm tasks, executable in ni different ways,
n = (m (product) i = 1) ni

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

What is the product rule for finite sets?

A

(AxB) = #A#B

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

What is a subset?

A

A total overlap of sets - so if all of set A is in set B, then set A is a subset of set B.

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

What is the subtraction rule?

A

Fixing the overcount present in the sum rule - #(A U B) = #A + #B - #(A∩B)
So cardinality of both sets, minus the cardinality of the intersection

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

How is the subtraction rule used for larger unions? (Inclusion/exclusion)

A

Include the cardinality of odd-way intersections (e.g. third, first) and exclude the cardinality of even-way intersections (e.g. second).

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

What is the formal notation for larger unions with the subtraction rule? (Inclusion/Exclusion)

A

(-1)^n-1 #(A ∩ B ∩ ….)

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

What is the division rule?

A

If there are n(a) ways to do a task, but d of the ways are equivalent/identical, then there are really n = n(a)/d ways to do said task.

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

What do the floor and ceiling functions do?

A

Floor rounds down to the nearest int, ceiling rounds up to the nearest int.

17
Q

What is the pigeonhole principle?

A

That if there are n items put into m boxes, n > m, then at least one box must have more than one item.

18
Q

What is the mathematical expression for the pigeonhole princp.?

A

ceiling(n/m)

19
Q

What is the proof by contradiction for the pigeonhole principle?

A

If none of the boxes have more than (ceiling(n/m) -1), then the total number of objects cannot be more than m times that. However, ceiling(x) < x + 1, so
m(ceiling(n/m)-1) < m((n/m +1)-1;
m(ceiling(n/m) - 1) < n, a contradiction as there are n items.

20
Q

What is a permutation?

A

A set of arrangements made from a set of elements, where the order is RELEVANT.
E.g. a passcode

21
Q

What is a combination?

A

A set of arrangements made from a set of elements, where the order is IRRELEVANT.
E.g. a fruit bowl

22
Q

What are the sets of permutations and combinations from flipping a coin twice?

A

Combinations: {HH, HT, TT}
Permutations: {HH, TH, HT, TT}

23
Q

What is nCr?

A

The number of subsets with r elements selected from a set with n elements.

24
Q

What is choosing r from n the same as?

A

Choosing r from n is the same as choosing (n-r) from n.

25
Q

What is the formula for permutations with repitition?

A

n^r

26
Q

What is the formula for permutations without rep?

A

n!/(n-r)!

27
Q

What is the formula for combinations with rep?

A

(r+n-1)! / r!(n-1)!

28
Q

What is the formula for combinations without rep?

A

n! / r!(n-r)!

29
Q

What is the magnitude of permutations, combinations, and repititions?

A

There are more permutations than combinations, and more perms/combs with repititions than without.

30
Q

What is Pascal’s identity?

A

(n) = (n - 1) + (n-1)
(r) = (r - 1) + (r)
Where r <= n

31
Q

What is a derangement?

A

A permutation that leaves no objects in their original position

32
Q

How do you calculate !n?

A

!n = n! - n!/1! + n!/2! - n!/3!…..

33
Q

What is !n approximately equal to?

A

!n = n!/e, always correct if you round it.

34
Q
A