Vocab Flashcards
Graph
A group of vertices connected by arcs
Subgraph
A graph where all vertices and edges belong to another graph
Degree
Number of edges incident to a vertex
Valency
Number of edges incident to a vertex
Path
A route along edges where no vertex is visited more than once
Walk
A route along a graph through edges from one vertex to the next
Trail
A route along edges where no edge is visited more than once
Cycle
A route along edges where the end vertex is the same as the start vertex AND no vertex is visited more than once
Hamiltonian cycle
A route along edges that includes EVERY vertex only once, and returns to its start vertex
Eulerian cycle
A route along edges where no edge is visited more than once, and starts and finishes at the same vertex, AND ALL EDGES ARE INCLUDED
Connected graph
A graph where there is a path between any two vertices
Loop
An edge that starts and finishes at the same vertex
Simple graph
One where there are no loops AND not more than one edge connecting any pair of vertices
Digraph
Edges have directions associated with them
Explain why total valency must be even
Each edge adds 2 to the total valency, so the total valency will always be a multiple of 2
Euler’s Handshaking lemma
Sum of degrees = 2 x number of edges
Eulerian graph order of vertices
Every vertex has even degree
semi eulerian graph
Exactly two vertices have an odd degree
Order of an algorithm
Measure of an algorithm’s efficiency as a function of the size of the problem
Efficiency of an algorithm
measure of the ‘run-time’ of the algorithm and in most cases is proportional to the number of operations that must be carried out.
Weighted graph
Graph where numbers are associated with each edge
Tree
Connected graph with no cycles
Spanning tree
Subgraph which includes all vertices of G and is a connected graph with no cycles
Planar graph
A graph that can be drawn on a single plane so that no edges cross each other