Discrete Maths Flashcards
Existence
Determining whether there is a solution
Construction
Involves finding a solution
Enumeration
Finding out how many solutions there are
Optimisation
Finding out the best solution, according to some measure, perhaps the shortest of cheapest or most profitable
Partition
A partition is a collection of disjoint subsets of a given set such that the union of the subsets must equal the original set
Pigeon Hole principle
If there are m pigeonholes and n pigeons where m is smaller than n, there will be at least one pigeonhole with more than one pigeon
What does nPr mean
The number of permutations of r objects selected from n objects
n!/(n-r)!
What does nCr mean
The number of combinations or selections of r objects chosen from n objects
N!/(n-r)!r!
Degree
Number of arcs incident to that vertex
Adjacent
For vertices- joined by an edge
For edges- share a common vertex
Tree
Simply connected graph with no cycles
Simple
No multiple edges or loops
Connected
Exists a path between every pair of vertices
Walk
Set of arcs where the end vertex of one is the start vertex of the next
Trail
Walk where no arcs are repeated
Path
Trail where no nodes are repeated
Cycle
Closed path
Route
Can be a walk trail or path or a closed walk rail or path
Complete Kn
Kn is a complete graph of n vertices
A Graph where every two vertices share exactly one edge and where there are no loops
No of edges = n•(n-1)/2
A bipartite graph
The vertices can be divided into two sets with edges only joining a vertex in one set to a vertex in the other
A complete bipartite graph
Km,n
Each of the m vertices on one side is connected exactly once to each of the n vertices on the other
It has nm edges
Eulerian
It is possible to travel round a graph without repeating any edges (along a trail) so that all the edges in the graph are covered. If the trial ends at its starting point it is Eulerian.
If it has no odd vertices, it is Eulerian
Semi Eulerian
It is possible to travel round a graph without repeating any edges (along a trail) so that all the edges in the graph are covered. But the trail does not end at it’s starting point
If just two of the vertices are odd.
It is semi-Eulerian.
Hamiltonian graph
Finding a route around a graph that visits all the vertices exactly once. And returns to the staring point
Edges cannot be repeated as this would mean a vertex is repeated. Not all edges must be traversed.
Hamiltonian cycle
A cycle which visits all the vertices of a graph exactly once and returns to the starting point
Hamilton path
Visits all the vertices exactly once but may not be a cycle
Travelling salesperson
ORES THEOREM
a sufficient though not necessary condition for a graph to be Hamiltonian is that for a simply connected graph G with n ≥ 3 vertices, G will be Hamiltonian if deg v + deg w ≥ n for every pair of non-adjacent vertices
K-colourable
A graph is k-colourable if each of its vertices can be assigned one of k colours in such a way that no two adjacent vertices have the same colour
Bipartite requires two colours
Isomorphic
Two graphs are isomorphic if one can be distorted in some way to produce the other
(Same no vertices, each same degree and their vertices must be connected in the same way)
Construct isomorphism by explicit labelling of vertices
Having the same degree sequence is necessary but NOT SUFFICIENT!!! To show isomorphism
Indegree
Outdegree
In a directed graph the in-degree is the number of edges leading in to a vertex and an outdegree is the number of edges leading away from the vertex
Planar
A graph is planar if it can be distorted in such a way that it’s edges do not cross
A subdivision
A subdivision is obtained by inserting a new vertex of degree 2 into an edge one or more times (zero also counts)
Edge contraction
An edge contraction occurs when an edge is removed and the two vertices that were joined to it are merged, any edges which were incident to either of the original vertices now become incident to the nw vertex
Include the notation (AB) for the vertex created by contraction of the arc AB
Euler’s formula
V+R=E+2
Kurotowski’s theorem
A finite graph is planar if and only if it does not contain a sub graph which a subdivision of of K5 or K3,3
Subgraph is a graph that is formed from some of the vertices and edges of another graph
A vertex may be isolated can an edge has to have a vertex at each end
A subdivision is obtained by inserting a new vertex into an edge