GLOSSARY Flashcards
What is the efficiency of an algorithm?
A measure of the ‘run-time’ of the algorithm and in most
cases is proportional to the number of operations that must be carried out (proportional to order/complexity)
What is the size of a problem?
A measure of its complexity and so in the case of algorithms on
graphs it is likely to be the number of vertices on the graph.
(In a list it would be the number of items)
What is the order of an algorithm?
A measure of its efficiency as a function of the size of the problem
If an algorithm has order f(n), then increasing the size of the problem from n to m will increase the runtime of an algorithm by a factor of f(n)/f(m)
How to calculate middle items
1/2(N+1) for odd sets, 1/2(N+2) for even sets
What does a graph consist of?
Points (vertices/nodes) which are connected by lines (edges/arcs)
What is a subgraph of a graph G?
A graph each of whose vertices belong to G, and edges belong to G
What is a weighted graph, and give an alternate name for it
A graph whose edges have a number associated with them,
Also called a network
What is the degree/valency of a vertex?
The number of edges incident on it
What are odd/even vertices?
Odd vertices have odd degree, even vertices have even degree
What is a path?
A finite sequence of edges, such that the end vertex of one edge in the sequence is the start vertex of the next, and in which no vertex appears more then once
What is a walk?
A finite sequence of edges such that the end vertex of one edge is the
start vertex of the next.
What is a trail?
A walk where no edge is visited more than once
tr”aidgel”
What is a cycle/circuit?
A closed path, i.e. the end vertex of the last edge is the start vertex of
the first edge.
What does it mean for vertices to be connected, and what does it mean for a graph to be connected?
Two vertices are connected if there is a path between them. A graph is connected if all its
vertices are connected.
What is a digraph, and what are the edges in a digraph known as?
A digraph contains edges that have a direction associated with them, which are called directed edges