Counting Flashcards
Are sets dependent on order?
No - so
{1,5,3,4,2}
is the same as {1,2,3,4,5}
What is the cardinality of a set?
The number of elements that a set has
What is the cardinality of the empty set?
0, denoted by an angled theta.
What is the definition of a finite set?
If there is a one-to-one correspondence with another set, {1, …, n}
So if it can be numbered from 1,2 … n.
Can countable sets be infinite or finite?
Both - but not all infinite sets are countable, all finite ones are.
How can a set be countable and inifinte?
If there is a bijection between that set and the set of all natural numbers.
What is the sum rule for disjoint sets?
(A U B) = #A + #B
What is the generalisation of the sum rule?
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
What is the formal definition of the product rule?
For T1, T2, Tm tasks, executable in ni different ways,
n = (m (product) i = 1) ni
What is the product rule for finite sets?
(AxB) = #A#B
What is a subset?
A total overlap of sets - so if all of set A is in set B, then set A is a subset of set B.
What is the subtraction rule?
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 is the subtraction rule used for larger unions? (Inclusion/exclusion)
Include the cardinality of odd-way intersections (e.g. third, first) and exclude the cardinality of even-way intersections (e.g. second).
What is the formal notation for larger unions with the subtraction rule? (Inclusion/Exclusion)
(-1)^n-1 #(A ∩ B ∩ ….)
What is the division rule?
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.