Graphs, Networks & Algorithms Flashcards
(79 cards)
Adjacent vertices
Two vertices are adjacent if they are connected by an edge. If vertex i is adjacent to vertex j, we write i ∼ j.
{i,j} = ε(e) for some edge e ∈ E
Describe A_n graphs
straight line of n vertices
Describe D_n graphs
n≥4
Straight line of of n-2 vertices, with an extra 2 vertex connected to the leftmost vertex
(Or a straight line of n-1 vertices, with an extra vertex connected to the second left most vertex)
Describe E_n graphs
(n≥6)
straight line of n-1 vertices, with an extra vertex connected to the third left most vertex
Circuit/cycle
a path begins and ends at the same vertex
Eulerian Path
Paths that use every edge in the graph precisely once
Power set of V [P(V) and P_n(V)]
P(V)
the set of all subsets of V
P_n(V)
the set of subsets of V containing n elements
Finite Graph
(V,E,ε)
V and E are finite sets
Loop free graph
(V,E,ε)
Im(ε) ⊂ P_2(V)
Simple graph
Loop free, and ε injective
There is at most one edge between 2 vertices
Complete graph (K_n)
Simple, and Im(ε)=P_2(V)
(No loops, and there is exactly one edge between each pair of vertices
Automorphism
of graph G is an isomorphism G->G
Define cardinality
the number of elements in a set
Define Injective function
(one-to-one function)
each element of the codomain (ouptput) is mapped to by at most one element of the domain (input)
Define surjective function
each element of the codomain (output) is mapped to by at least one element of the domain
Define Bijective function
Injective and surjective
each element of the codomain is mapped to by exactly one element of the domain
What is the relation between morphisms and cycles?
Morphisms of graphs must take cycles of a given length to cycles of the same length.
Another term for a homomorphism
morphism
Directed graph
Digraph/Quiver.
Edges are allocated one direction of travel
Quadruple (V,E,h,t)
V vertices
E edges/ARROWS
h,t: E → V declaring the head and tail of each arrow respectively
Inverse to an isomorphism (Ф,ψ)
( Ф^(-1), ψ^(-1) )
Chromatic number?
give a practical definition
The smallest number of colours needed to colour the vertices in such a way that adjacent vertices have distinct colours.
Relation between chromatic number and chromatic polynomial
By definition, the chromatic number is the smallest natural number n s.t. P_G(n) is non zero
The chromatic polynomial for the complete graph K_r
P_G(n) = n(n-1)(n-2)…(n-r+1)
Simple definition of an algorithm
A set of rules by which the answer to a problem can be found