1870 im quite apprehensive

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/194

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:19 PM on 5/22/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

195 Terms

1
New cards

Set

A collection of objects called elements.

2
New cards

Domain

The set of all possible input values for a function or relation.

3
New cards

Codomain

The set of all possible output values of a function.

4
New cards

Image/Range

The set of all ACTUAL output values of a function.

{b ∈ B | a ∈ A such that f(a) = b}

5
New cards

Function

A function from sets A to B is a subset of ordered pairs obtained from the Cartesian Product A x B, where ∀a ∈ A, there exists a single ordered pair with a as the first element.

6
New cards

Function Composition Requirement

For the composition of functions g⋅f to be valid, the image of f must be a subset of the domain of g.

In other words, the actual output values of f must be valid inputs for g

7
New cards

Function Composition Uncommutativity

In general, g⋅f does not equal f⋅g.

8
New cards

Function Composition Associativity

In general, for functions f, g, and h, (f⋅g)⋅h = f⋅(g⋅h).

9
New cards

What is the empty set?

The empty set is a set that contains no elements. It is denoted by \emptyset or {}{}.

10
New cards

What is set-builder notation?

Set-builder notation is a way to define a set by specifying a property that its elements must satisfy. For example, {{x | x > 0}} resents the set of all x such that x is greater than 0.

11
New cards

Express even numbers using set-builder notation.

xx=2n,nZ{x | x = 2n, n \in \mathbb{Z}}

12
New cards

Define the union of two sets.

The union of two sets A and B, denoted ABA \cup B, is the set containing all elements that are in A, or in B, or in both.

In set-builder notation, AB= {x x A x B}

13
New cards

Define the intersection of two sets.

The intersection of two sets A and B, denoted ABA \cap B , is the set containing all elements that are common to both A and B.

In set-builder notation, A\capB = {x | x ∈ A ∧ x ∈ B}

14
New cards

Define the relative complement of set B in set A.

The relative complement of B in A, denoted ABA - B or ABA \setminus B, is the set of elements in A but not in B. In other words ‘A without B’

15
New cards

Define the symmetric difference of sets A and B.

The symmetric difference of A and B, denoted ABA \triangle B , is the set of elements which are in either A or B but not in their intersection. AB=(AB)(BA)A \triangle B = (A - B) \cup (B - A)

16
New cards

What are Venn diagrams used for?

Venn diagrams are used to visually represent sets and their relationships, such as unions, intersections, and complements. They consist of overlapping circles within a rectangle representing the universal set.

17
New cards

What is an ordered pair?

An ordered pair is a pair of elements (a,b)(a, b) where the order matters. (a,b)(a, b) is different from (b,a)(b, a) unless a=ba = b.

18
New cards

Define the Cartesian product of two sets A and B.

The Cartesian product of A and B, denoted A×BA \times B, is the set of all ordered pairs (a,b)(a, b) where aAa \in A and bBb \in B. A×B=(a,b)aA,bBA \times B = {(a, b) | a \in A, b \in B}

19
New cards

Define the identity function.

The identity function is a function that maps every element to itself.

It's often denoted as I(x)=xI(x) = x.

20
New cards

Define the inverse of a function.

The inverse of a function f(x)f(x), denoted as f1(x)f^{-1}(x), is a function that, when composed with f(x)f(x), yields the identity function: f(f1(x))=f1(f(x))=xf(f^{-1}(x)) = f^{-1}(f(x)) = x.

21
New cards

Relation.

A set of ordered pairs. It describes a relationship between two sets of information. If AA and BB are sets, then a relation from AA to BB is a subset of A×BA \times B.

22
New cards

Injective Function

Image is loyal.

A one-to-one function, where each element of the range is associated with at most one element of the domain.

Formally, f:ABf: A \rightarrow B is injective if for all x,yAx, y \in A, if f(x)=f(y)f(x) = f(y), then x=yx = y.

23
New cards

Surjective (onto) function

Image is cozy.

A surjective function, also known as an onto function, is a function where every element of the range is the image of at least one element from the domain. Formally, f:ABf: A \rightarrow B is surjective if for all bBb \in B, there exists an aAa \in A such that f(a)=bf(a) = b.

24
New cards

Bijective function.

Injective and Surjective, perfectly one-to-one

25
New cards

Criteria for function inverse

Passes horizontal line test (injective)

Bijection

26
New cards

Reflexive (Relation)

All relation vertices have loops.

For every element a ∈ A, (a, a) ∈ R.

27
New cards

Symmetric (Relation)

Every relation arrow is 2-way.

For every (a, b) ∈ R, (b, a) ∈ R.

28
New cards

Anti-symmetric (Relation)

No 2-way relation arrows except loops.

For every (a, b) and (b, a) ∈ R, a = b.

29
New cards

Transitive (Relation)

Pass-through arrows. In Hasse Diagrams, these extra arrows aren’t drawn.

(a, b) ∈ R and (b, c) ∈ R implies (a, c) ∈ R.

30
New cards

Equivalence Relation

A relation that is reflexive, symmetric and transitive.

31
New cards

Partial Order

A relation that is reflexive, anti-symmetric and transitive.

32
New cards

Implication Operator

A => B, or ‘A implies B’. Equivalent to not A B.

33
New cards

Equivalence

A <=> B. A and B are the same.

34
New cards

Predicate

A statement that contains variables and whose truth depends on the values of these variables.

For example, P(x)P(x) represents 'x is greater than 5'.

35
New cards

Quantifiers

Symbols used to express how many elements of a set satisfy a given predicate. The two main are universal and existential.

36
New cards

Universal quantifier

Denoted by \forall, asserts that a predicate is true for all elements in a domain.

For example, xP(x)\forall x P(x) means 'for all x, P(x) is true'.

37
New cards

Existential quantifier

Denoted by \exists, asserts that there exists at least one element in a domain for which a predicate is true.

For example, xP(x)\exists x P(x) means 'there exists an x such that P(x) is true'.

38
New cards

Negating a universally quantified statement

Change the universal quantifier to an existential quantifier and negate the predicate.

For example, the negation of xP(x)\forall x P(x) is x¬P(x)\exists x \neg P(x).

This translates to 'There exists an x such that P(x) is not true'.

39
New cards

Negating an existentially quantified statement?

Change the existential quantifier to a universal quantifier and negate the predicate.

For example, the negation of xP(x)\exists x P(x) is x¬P(x)\forall x \neg P(x) .

This translates to 'For all x, P(x) is not true'.

40
New cards

Logical argument

Formed from a collection of statements called premises, and a final one called the conclusion.

41
New cards

Valid Argument

If the conclusion is true whenever all the premises are true. Its arguments and conclusion must form a tautology.

Validity depends on the form of the argument, not the truth of the premises.

42
New cards

Consistent Proof System

Impossible to derive a contradiction from the premises, e.g. A => B∧¬B.

43
New cards

Complete Proof System

Any valid argument can be proven.

In other words, if an argument is valid, a proof can be constructed to show that the conclusion logically follows from the premises.

44
New cards

Tautology

A statement that is always true, regardless of the truth values of its components. In propositional logic, it is an expression that is true in every possible interpretation.

45
New cards

Contrapositive Proof

X => Y <=> ¬Y => ¬X

46
New cards

Countably Infinite

A set that can form a bijection with the set of natural numbers, Z+.

|Set| = |Z+|

47
New cards

Uncountably Infinite

A set that can form a bijection with the set of realnumbers, R.

|Set| = |R|

48
New cards

Natural Numbers

N=0,1,2,3,\mathbb{N} = {0, 1, 2, 3, … }

49
New cards

Set of Integers

Including negative numbers, zero, and positive numbers, denoted as Z=,2,1,0,1,2,\mathbb{Z} = {…, -2, -1, 0, 1, 2, …}

50
New cards

Rational Numbers

All numbers which can be expressed as a fraction p/qp/q where p and q are integers and q is not zero.

Denoted as Q=p/qp,qZ,q0\mathbb{Q} = {p/q \mid p, q \in \mathbb{Z}, q \neq 0}

51
New cards

Real Numbers

The set of all real numbers, which includes both rational and irrational numbers. Denoted as R\mathbb{R}.

52
New cards

Addition principle (cardinalities)

If A and B are disjoint (mutually exclusive) sets, the cardinality of their union is the sum of their individual cardinalities: AB=A+B|A \cup B| = |A| + |B|. This extends to any finite number of disjoint sets.

53
New cards

Multiplication principle (cardinalities)

If constructing elements by making a sequence of independent choices, the total number of possible constructions is the product of the number of choices for each step.

If set A has cardinality m and set B has cardinality n, then the cardinality of A×BA \times B is m×nm \times n.

54
New cards

Binomial Theorem

For any positive integer n: (a+b)n=k=0n(nk)ankbk(a + b)^n = \sum_{k=0}^{n} {n \choose k} a^{n-k} b^k, where (nk)=n!k!(nk)!{n \choose k} = \frac{n!}{k!(n-k)!} represents the binomial coefficient.

55
New cards

Pigeonhole Principle

When mapping n elements from A to k elements in B, there is an element in B such that nk\lceil \frac{n}{k} \rceil elements from A are mapped to it.

56
New cards

Definition of Divisibility

An integer a is divisible by an integer b =/= 0 if there exists an integer k such that a=bka = bk.

If p is an integer:

  • p|p

  • 1|p

  • p|0

  • If p|a, p|ab

  • If p|a and p|b, p|(a + b

57
New cards

Quotients and Remainders

a=bq+ra = bq + r, where 0 \le r < |b||

q is the quotient,

r is the remainder

58
New cards

Definition of Modular Arithmetic

Definition: Modular arithmetic is a system of arithmetic for integers where numbers 'wrap around' upon reaching a certain value (the modulus).

Given integers a, b, and n, we say ab(modn)a \equiv b \pmod{n} if and only if n divides (ab)(a - b), This means that aa and bb have the same remainder when divided by nn.

When this happens, we say that a is congruent to b modulo n.

59
New cards

Method of Repeated Squaring

Write exponent bottom to top as running product

Square the mantissa number and mod the result continuously until you reach the last

Multiply the results together only for rows where exponent is 1, doing the modulus each time.

60
New cards

Definition of Greatest Common Divisors

The largest positive integer that divides 2 integers.

61
New cards

The Euclidean Algorithm

gcd(a, b) = gcd(b, r) where r is the remainder.

Continue this process until the remainder is 0.

The last non-zero remainder is the GCD.

62
New cards

The Extended Euclidean Algorithm

If gcd(a, b) = 1, after finding gcd(a, b), reverse back up the chain to get to 1 = ax + by, where x and y are integers such that ax + by = gcd(a, b).

63
New cards

Log base change rule

loga(m)=logb(m)loga(b)log_{a}(m) = log_{b}(m) * log_{a}(b)

64
New cards

Multigraph

A triple (tuple) with a Vertex Set, Edge Set and function Phi mapping edges to vertices (not distinct)

65
New cards

Graph

A multigraph but without multiple edges or loops - edges can be defined uniquely by their endpoints. It has a vertex set and an edge set of 2-element subsets of V.

66
New cards

Digraph

A pair (V, A) of sets where V is the vertex set and A is the arc set, or edge set, made of ordered pairs of vertices from V.

67
New cards

Degree of a vertex

The number of edges incident to the vertex.Or, the number of subsets from E which include the vertex in their elements. If there are loops, each loop counts twice.

68
New cards

Euler’s Handshaking Lemma

The sum of degrees in a graph equals double the number of edges.

69
New cards

Isomorphism

A bijection, f, mapping V(G1) → V(G2), such that edges from G1 are equivalent to edges from G2, i.e. {u, v} ∈ G1 <=> {f(u), f(v)} ∈ G2.

Informally, a mapping between two graphs that preserves their structure, meaning there is a one-to-one correspondence between their vertices and edges, regardless of orientation,

70
New cards

Subgraph

A graph where the vertex set and edge set are subsets of the original.

71
New cards

Spanning Subgraph

A subgraph containing all the vertices of the original.

i.e., V(G’) == V(G)

72
New cards

Proper Subgraph

A subgraph that does not contain all the vertices or edges of the original graph, meaning it has at least one vertex or edge (or both) removed.

i.e., G’ =/= G

73
New cards

Induced Subgraph

A subgraph containing all the edges from G wherever it contains the vertices of the original graph G.

i.e. If G’ contains all the edges x,y ∈ E(G) wherever x, y ∈ V(G), it’s an induced subgraph.

74
New cards

Walk

The most basic: A sequence of alternating k+1 vertices and k edges. We only need to write the vertices.

75
New cards

Every walk from u to v contains a path from u to v.

(Path contains no repeat vertices)

Proof: r=repeated vertex
Go from u to r-1, then skip to last appearance of r, then go from r to v. Repeat for every repeat vertex.

76
New cards

Minimum Degree

Degree of the vertex with the lowest degree in the graph.

77
New cards

Connectivity

A graph is connected if there is a path between any 2 vertices.

i.e., for any vertices, u, v ∈ V(G) there’s a path from u to v.

78
New cards

Connected Component

The ‘parts’ of a graph that are connected but not connected to other parts.

Formally:

An inclusion maximal connected (induced) subgraph of G. This means that, for any subgraph C’ in G, where your connected component C is a proper subgraph of C’, C’ is not connected. (Meaning from your component C, adding stuff to reach C’ will make it not connected anymore, therefore nothing else can be added).

79
New cards

Eulerian Trail

A trail (no repeating edges) in a graph that visits every edge once.

80
New cards

Eulerian Tour

An Eulerian Trail that starts and ends at the same vertex.

81
New cards

Euler’s Theorem

A connected graph with at least one edge has an Eulerian Tour if and only if every vertex has even degree.

Proof: Eulerian Tour => All vertices have even degree

If an Eulerian Tour exists, it is traversed by going to a vertex and leaving a vertex, repeated until the starting vertex is reached once again. Therefore each traversal is done in groups of 2 edges. Therefore each vertex must have an even number of edges for this to be possible, so every vertex has even degree.

Proof: All vertices have even degree => Eulerian Tour exists

Imagine the maximal-length trail in G, called C.

First we prove it has to be closed by contradiction. Imagine it is not closed. Since every vertex has even degree, the endpoint of C has an extra edge which isn’t added, so we add it. So C wouldn’t be maximal anymore. Therefore by contradiction it has to be closed.

We now have a closed trail. To prove that it’s actually Eulerian, all that’s left is to prove that it contains every edge. So for the sake of contradiction, let’s assume it doesn’t include every edge. Therefore since G is connected, so there’s no separate vertices, there would exist a vertex with an edge not in C, but then C could be extended to include this edge, contradicting the maximality of C. Thus, it must contain every edge and therefore it’s an Eulerian Tour.

82
New cards

A connected graph with at least one edge contains an Eulerian Trail if and only if it contains either 0 or 2 vertices of odd degree.

Proof:

Let G be a connected (multi)graph with at least one edge.

(=>) Eulerian Tour => 0 or 2 odd vertices:

Let T be a Eulerian Trail in G, where the start vertex = u and the end vertex = v. If we consider the scenario where u=v, this means that T is a closed Eulerian Trail. By definition this is a Eulerian Tour, and it is known that a connected graph with at least one edge is a Eulerian Tour if it is a closed Eulerian Trail. Next, we consider the scenario where u =/= v. Since T is a Eulerian Trail, we can then add a single edge, uv, to T, creating T*. Since T was a Eulerian Trail, T* now closes the cycle, and therefore T* is an Eulerian Tour. This, by the previously-used Euler’s Theorem, means that all vertices have even degree. Now once again considering T, this would mean that if uv was removed, the vertices u and v are the only ones with an odd number of vertices, and hence an Eulerian Trail contains 2 vertices of odd degree.

(<=)

If a graph contains 0 vertices of odd degree, this means all vertices have even degree. By Euler’s Theorem, this means that it is an Eulerian Tour. An Eulerian Tour is a closed Eulerian Trail, and therefore the graph is an Eulerian Trail.

Next, we can consider a graph with 2 vertices of odd degree. Now, We proved that the graph is an Eulerian Trail. Now, remove the edge between 2 of the vertices u and v. Now, we know that each vertex except u and v remain even in degree, but u and v are odd. These now form the start and endpoints of an Eulerian Trail, but cannot be an Eulerian Tour anymore since it is no longer closed. Therefore, the graph is an Eulerian Trail.

83
New cards

Complete Graph

A graph where every pair of distinct vertices are adjacent, meaning there’s an edge between every pair. Denoted by Kn, where n is the number of vertices.

84
New cards

Bipartite Graph

A graph where the vertices can be partitioned into 2 disjoint sets, and each edge in the Edge set intersects V1 and V2.This means that no two vertices within the same set are adjacent.

85
New cards

Complete Bipartite Graph

A bipartite graph where every vertex in the one of the disjoint sets is adjacent to every vertex in the other disjoint set. So every v∈V1 and v∈V2 are adjacent. Kn,m denotes one where there are n vertices in the first set and m vertices in the second.

86
New cards

Adjacency Matrix

An n x n matrix where pairs of vertices are connected by an edge.

Formally:

For i ∈ [n], j ∈ [n], M[i, j] = 1 if {vi, vj} ∈ E and 0 otherwise.

87
New cards

Incidence Matrix

An n x m matrix that shows what edges are connected to each vertex.

Formally:

For i ∈ [n], j ∈ [m], M[i, j] = 1 if vi ∈ ej and 0 otherwise.

88
New cards

Biadjacency Matrix

An r x s matrix that shows how a bipartite graph is connected between its sets.

Formally:
For i ∈ [r], j ∈ [s], M[i, j] = 1 if {ui, vj} ∈ E and 0 otherwise.

89
New cards

Adjacency List

A list of vertices with their adjacent vertices listed next to them.

Example:

Lv1: [v2, v3]

Lv2: [v1]

90
New cards

For every i, j ∈ [n], the number of walks of length k from vi to vj are given by the adjacency matrix AkG[i, j].

Proof (by induction):

Base case, k=1: We can observe that with the original adjacency matrix, it is defined as A[i, j] = 1 when {vi, vj} ∈ E(G), and 0 otherwise. So it gives the number of walks of length 1 (edges) between each vertex. Since G is a graph and not a multigraph, there can only be 1 edge between each pair of vertices, and hence it’s true for k=1.

IH - For all k>1, for every i, r ∈ [n], the number of walks of length k-1 from vi to vr are given by the adjacency matrix Ak-1G[i, r].

Inductive Step:

Now, we recognise that:

knowt flashcard image

<p>Proof (by induction):</p><p>Base case, k=1: We can observe that with the original adjacency matrix, it is defined as A[i, j] = 1 when {v<sub>i</sub>, v<sub>j</sub>} ∈ E(G), and 0 otherwise. So it gives the number of walks of length 1 (edges) between each vertex. Since G is a graph and not a multigraph, there can only be 1 edge between each pair of vertices, and hence it’s true for k=1.</p><p></p><p>IH - For all k&gt;1,  for every i, r ∈ [n], the number of walks of length k-1 from v<sub>i</sub> to v<sub>r</sub> are given by the adjacency matrix A<sup>k-1</sup><sub>G</sub>[i, r].</p><p></p><p>Inductive Step: </p><p>Now, we recognise that:</p><img src="https://knowt-user-attachments.s3.amazonaws.com/95bf0675-d80e-452c-b63b-003965e94425.png" data-width="100%" data-align="center" alt="knowt flashcard image"><p></p>
91
New cards

Shortest path

The distance dist(vi, vj) between 2 vertices in a graph, where if they’re equal it’s 0, if they aren’t connected it is infinity, and otherwise it is the minimum value of A[i, j] from 1 to n.

92
New cards

Forest

Graph not containing a cycle, connected or disconnected

93
New cards

Tree

Connected acyclic graph

94
New cards

Cycle

A closed trail of non-zero length where all vertices are distinct except the starting and ending vertex.

95
New cards

Any tree with at least 2 vertices has at least 2 leaves

Proof:

Let G be the tree with at least 2 vertices. Let P be the longest path in G. Call the endpoints of P u and v. There’s at least 1 edge, since there are 2 vertices and it’s connected, so u is not v.

Let u’ and u’’ be neighbours of u. The vertex u’ can be in P, since it doesn’t violate the endpoint rule. However, having both u’ and u’’ in P means you can travel from u→u’’→…→u’→u which contradicts the acyclic property of trees as it forms a cycle. Also, uu’’ can’t be in P because then the edge can be added to P and this contradicts the assumption that P was the longest path in G. Therefore, u has 1 neighbour and therefore it is a leaf. The same logic can be applied to v.

96
New cards

Cut-edge

An edge in a connected graph where removing the edge will cause the resultant graph to be disconnected.

97
New cards

In a connected graph, an edge is not a cut edge if and only if it belongs to a cycle.

Proof:
Let G be a connected graph.

(=>)

Let e be an edge xy ∈ E(G), between vertices x and y. Assume e is not a cut edge. If e is not a cut edge, this means that when e is removed, the graph obtained, G’, is still connected. This means you can reach x from y (and vice versa) through another path in G. Now, add back the edge xy to this path. This forms a cycle. As a result, the edge xy which is not a cut edge belongs to a cycle.

(<=)

Let C be a cycle in G. This means that for 1 <= i < j <= n , vi ∈ C, there exists a path from vi to vj, and there exists a path from vj to vi. Let C’ be the graph obtained from removing an edge ij from C.

98
New cards

Spanning Tree

A subgraph of a connected graph which is a spanning subgraph of G and is also a tree (connected acyclic graph).

99
New cards

Characterisation of Trees

Trees are connected and acyclic

Trees are acyclic and have n-1 edges

Trees are connected and have n-1 edges

Each 2 vertices have 1 path between them

100
New cards

Matching

A set of edges in a graph where each vertex incident to an edge has a degree of 0 or 1. The edges are non-overlapping.