AQA A2 Computing 2.5 Graphs and Trees Flashcards
Graph
a diagram consisting of circles, called vertices, joined by lines, called edges or arcs; each edge joins exactly two vertices
Neighbours
two vertices are neighbours if they are connected by an edge
Degree
of a vertex, the number of neighbours for that vertex
Labelled or weighted graph
a graph in which the edges are labelled or given a value called a weight
Automation
turning an abstraction into a form that can be processed by a computer
Directed graph or digraph
a diagram consisting of circles, called vertices, joined by directed lines, called edges.
Simple graph
an undirected graph without multiple edges and in which each edge connects two different vertices
Exoplorer’s problem
the solution finds a route that traverses each road exactly once before returning to the starting point
Traveller’s problem
the solution finds a route that visits each city exactly once before returning to the starting point
Closed path or circuit
a sequence of edges that starts and ends at the same vertex and such that any two successive edges in the sequence share a vertex
Cycle
a closed path in whch all the edges are different and all the intermediate vertices are different
Tree
a connected undirected graph with no cycles
Rooted tree
a tree in which one vertex has been designated as the root and every edge is directed away from the root