Quiz 1 Prep Flashcards

the first quiz will cover lectures 1-9 and tutorials 1-3

1
Q

the elements of a set can be any sort of (possibly abstract) object, e.g.

A

vectors, words, shapes, sets themselves

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

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

A

every element of R is an element of S (for all x, if x ∈ R then x ∈ S)

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

equality of sets: two sets S_1, S_2 are said to be equal, denoted S_1 = S_2, if and only if

A

S_1 ⊆ S_2 and S_2 ⊆ S_1 (S_1 and S_2 have exactly the same elements)

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

if R is not a subset of S (denoted R ⊄ S), then

A

there is at least one element of R that is NOT an element of S

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

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

a subset of every set

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

power sets: given a set S, the power set of S, denoted P(S) is the collection of all subsets of S, i.e.

A

P(S) = {all subsets of S} (including the empty set)

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

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.

A

|0| = 0, |{0}| = 1

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

Suppose S is a set for which |S|= n. Using plain language, briefly explain why |P(S)| should be a power of 2.

A

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.

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

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.

A

x ∈ A U B if and only if x ∈ A or x ∈ B (or both)

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

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.

A

x ∈ A ∩ B iff x ∈ A and x ∈ B

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

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.

A

x ∈ A \ B iff x ∈ A and x ∉ B

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

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.

A

x ∈ A^c iff x ∈ U \ A

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

disjoint sets: two sets A and B are said to be disjoint if

A

A ∩ B = 0

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

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.

A

S_i ∩ S_j = 0 for all i ≠ j and S_1 U S_2 U … U S_n = X

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

set builder notation: if S is a set, we can define a subset R ⊆ S by

A

R = {x ∈ U | x ∈ A or x ∈ B}

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

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

A x B = { (a, b) | a ∈ A and b ∈ B}

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

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

a “link” or “connection” between v_1 and v_2

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

simple graph

A

no multi-edges or loops

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

multigraph

A

multi-edges

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

pseudograph

A

loop

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

Without doing any calculations, explain why the sum of the degrees of all vertices must be an even number.

A

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)

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

directed graphs: a directed graph, or digraph, is a graph G = (V, A), where A is its arc set. Here, an arc is an ordered pair of vertices. For example, the arc (ab) represents

A

the directed edge from a to b (here (ab) ≠ (ba))

23
Q

in-degree and out-degree: for a digraph, the in-degree of a vertex v, deg_in(v) or deg^-(v), is

the out-degree of a vertex v, deg_out(v) or deg^+(v), is

A

deg_in(v) = (# arcs that end in v)
deg_out(v) = (# arcs that start at v)

24
Q

order: the order of a graph G = (V, E) is the

A

number of vertices in G, i.e. |V|

25
Q

degree: the degree of a vertex v, denoted deg(v), is the

A

number of edges in G that have v as an endpoint, i.e. the number of edges incident to v. loops count twice

26
Q

injections: a function f: A → B is an injection (1-1) if

A

f(x_1) ≠ f(x_2) whenever x_1 ≠ x_2

27
Q

surjections: a function f: A → B is a surjection (onto) if

A

for every y ∈ B, there is x ∈ A with f(x) = y

28
Q

bijections: a function f: A → B is a bijection if

A

it is both an injection and a surjection

29
Q

isomorphic graphs: two graphs, G_1 = (V_1, E_1) and G_2 = (V_2, E_2), are isomorphic if there is a bijection f: V_1 → V_2 such that

A

(a, b) ∈ E_1 if and only if (f(a)f(b)) ∈ E_2 (roughly, f provides a pairing of the vertices between G_1 and G_2 that preserves the structure of the graph)

30
Q

isomorphic graph properties: suppose G_1 and G_2 are isomorphic graphs. then, any of the following properties that one graph has, the other must also have; that is, if G_1 _________ then so too must G_2 (where n, m, and k are non-negative integers)

A
  • is connected
  • has n vertices
  • has m edges
  • has m vertices of degree k
  • has a cycle of length k
  • has an Eulerian circuit
  • has a Hamiltonian circuit
31
Q

adjacency matrix: given a graph G with n vertices, the adjacency matrix A for the graph is the matrix for which a_ij =

A

edges from v_i to v_j (direction only matters for digraphs)

32
Q

for an undirected graph, a_ij =

A

a_ji

33
Q

walk: a walk in a graph G is

A

a sequence of vertices so that there is an edge between consecutive vertices (possibly repeating vertices and/or edges)

34
Q

trail: a trail in a graph G is

A

a walk with no repeated edge

35
Q

path: a path in a graph G is

A

a trail with no repeated vertex (trail implies no repeated edge too)

36
Q

length: the length of a walk (or path) is

A

the number of edges (counting repetitions) in the walk or path

37
Q

distance: the distance between vertices a and b in a graph G is

A

the length of the shortest path (no repeated edges/vertices) between a and b (if there is no path between them, then the distance between them is ∞)

38
Q

connected graphs and connected components: a graph G is said to be connected if

A

there is a path (no repeated vertex/edge) between any pair of distinct vertices

39
Q

a connected component (or component) of G = (V, E) is a connected subgraph of G that is not part of any larger connected subgraph. the components of G

A

partition the vertex set

40
Q

circuits and cycles: a circuit in a graph G is a closed trail (no repeated edges), i.e.

A

a trail (no repeated edges) that starts and ends at the same vertex

41
Q

a cycle is a

A

closed path (no repeated vertices or edges), i.e. a path that starts and ends at the same vertex

42
Q

eulerian circuits and trails: an eulerian circuit (or trail - no repeated edges) is a circuit (or trail) that contains

A

every edge and every vertex of G (contains each edge exactly once and can repeat vertices)

43
Q

eulerian graph

A

a graph that has an eulerian circuit is said to be

44
Q

semi-eulerian

A

a graph that does not contain an eulerian circuit but contains an eulerian trail

45
Q

a graph G is eulerian if and only if
1. _____
2. _____

A
  1. G is connected
  2. all vertices are of even degree
46
Q

a graph G is semi-eulerian if and only if
1. ____
2. ____

A
  1. G is connected
  2. exactly 2 vertices have odd degree
47
Q

eulerization: given a connected graph G = (V, E), an eulerization of G is a graph G’ = (V,E’) so that:
1. ____
2. ____

A
  1. G’ is obtained by duplicating edges in G
  2. every vertex of G’ is of even degree

NOTE: we often want to find an eulerization that minimizes the number (or cost/weight) of additional edges added

48
Q

hamiltonian cycles and paths

A

a cycle (or path) - no repeated vertices in a graph G that contains EVERY vertex of G is called a Hamiltonian cycle (Hamiltonian path)
contains every vertex exactly once

49
Q

hamiltonian graph

A

any graph that contains a Hamiltonian cycle

50
Q

properties of hamiltonian graphs: if G is Hamiltonian, then
1. ____
2. ____
3. ____
4. ____
5. ____

A
  1. G must be connected
  2. no vertex of G can have degree less than 2
  3. G cannot contain a cut-vertex, i.e. cannot have a vertex whose removal disconnects the graph
  4. if G contains a vertex v of degree 2, then both edges incident to v must be included in the Hamiltonian cycle
  5. if two edges incident to a vertex v must be included in the cycle, then no other edge incident to it can be used in the cycle (otherwise v would be repeated)
51
Q

k-colouring

A

a proper k-colouring of a graph G is an assignment of colours to vertices of G such that no adjacent vertices have the same colour and exactly k colours are used

52
Q

chromatic number: the chromatic number x(G) of a graph is the

A

smallest value of k for which G has a proper k-colouring

53
Q

clique

A

when a complete graph appears as a subgraph within a larger graph

54
Q

basic strategies for vertex colouring:
1. begin with vertices of ____
2. identify locations where colours are forced rather than chosen, e.g. subgraphs consisting of ____
3. when the previous two have been exhausted, ____

A
  1. high degree
  2. odd cycles, wheel graphs, cliques
  3. colour remaining vertices while trying to avoid using new colours