Decision Maths Glossary Flashcards
What is 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
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
What is the order of an algorithm?
A measure of its efficiency as a function of the size of the problem
A list contains N items, where N is odd, what is the position of the middle item?
1/2 (N+1)
A list contains N items, where N is even, what is the position of the middle item?
1/2 (N+2)
What does a graph consist of?
Points (vertices/nodes) connected by lines (edges/arcs)
What is a subgraph of graph G?
A graph, each of whose vertices belongs to G and each of whose edges belongs to G
What is a weighted graph?
A graph with numbers associated with each edge
What is the degree/valency of a vertex?
Number of edges incident to it
What is a cycle?
A closed path
When are two vertices connected?
A path between them
When is a graph connected?
All its vertices are connected
What is a digraph?
If the edges of a graph have a direction associated with them
What is a tree?
A connected graph with no cycles
What is a spanning tree?
A subgraph which includes all the vertices and is also a tree