Quiz 1 Prep Flashcards
the first quiz will cover lectures 1-9 and tutorials 1-3
the elements of a set can be any sort of (possibly abstract) object, e.g.
vectors, words, shapes, sets themselves
subsets: formally a set R is included in a set S (or R is a subset of S), denoted R ⊆ S, if and only if
every element of R is an element of S (for all x, if x ∈ R then x ∈ S)
equality of sets: two sets S_1, S_2 are said to be equal, denoted S_1 = S_2, if and only if
S_1 ⊆ S_2 and S_2 ⊆ S_1 (S_1 and S_2 have exactly the same elements)
if R is not a subset of S (denoted R ⊄ S), then
there is at least one element of R that is NOT an element of S
the empty set: the empty set, denoted ∅ (or {})m is the unique set that does not contain any elements. as a result, the empty set is technically
a subset of every set
power sets: given a set S, the power set of S, denoted P(S) is the collection of all subsets of S, i.e.
P(S) = {all subsets of S} (including the empty set)
cardinality: for a finite set S, the cardinality of S, denoted |S| (or #S), is the number of the (unique) elements in S, e.g.
|0| = 0, |{0}| = 1
Suppose S is a set for which |S|= n. Using plain language, briefly explain why |P(S)| should be a power of 2.
Suppose we want to construct a subset of S. For each element of S, we have 2 choices: include or exclude. Therefore, we can construct 2^n subsets.
union: given sets A and B, the union of A with B, denoted A U B, is the set of all elements that belong to either A or B (or both), i.e.
x ∈ A U B if and only if x ∈ A or x ∈ B (or both)
intersection: given sets A and B, the intersection of A with B, denoted A ∩ B, is the set of all elements that belong to both A and B, i.e.
x ∈ A ∩ B iff x ∈ A and x ∈ B
set difference: given two sets A and B, the difference of B within A (or A minus B) denoted A \ B (or A - B), is the set of all elements in A that are not in B, i.e.
x ∈ A \ B iff x ∈ A and x ∉ B
complements: given a set A, the complement of A, denoted A^c (or A bar or -A), is the set of all elements in the local universe set U that are not in A, i.e.
x ∈ A^c iff x ∈ U \ A
disjoint sets: two sets A and B are said to be disjoint if
A ∩ B = 0
partitions: given a set X, a (finite) partition of X is a collection of mutually disjoint non-empty sets S_1, S_2, … , S_n whose union is X, i.e.
S_i ∩ S_j = 0 for all i ≠ j and S_1 U S_2 U … U S_n = X
set builder notation: if S is a set, we can define a subset R ⊆ S by
R = {x ∈ U | x ∈ A or x ∈ B}
cartesian product: in calculus, you saw that R^2 = { (x, y) | x, y ∈ R }. R^2 is an example of a Cartesian product of two sets. In general, given sets A and B, the Cartesian product is the set
A x B = { (a, b) | a ∈ A and b ∈ B}
graphs: a graph G consists of a set of vertices (or nodes) V and a set of edges (or links) E, and we write G = (V, E). Here, an edge is an unordered pair of vertices (v_1v_2) and, intuitively, models
a “link” or “connection” between v_1 and v_2
simple graph
no multi-edges or loops
multigraph
multi-edges
pseudograph
loop
Without doing any calculations, explain why the sum of the degrees of all vertices must be an even number.
sum of the degrees = 2|E| (even). In adding the degrees of all the vertices, we count every edge exactly twice (each edge has 2 endpoints), so the sum of all degrees = 2 x (# edges) (even)