Decision Maths Glossary Flashcards

1
Q

What is efficiency of an algorithm?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the size of a problem?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the order of an algorithm?

A

A measure of its efficiency as a function of the size of the problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A list contains N items, where N is odd, what is the position of the middle item?

A

1/2 (N+1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A list contains N items, where N is even, what is the position of the middle item?

A

1/2 (N+2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a graph consist of?

A

Points (vertices/nodes) connected by lines (edges/arcs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a subgraph of graph G?

A

A graph, each of whose vertices belongs to G and each of whose edges belongs to G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a weighted graph?

A

A graph with numbers associated with each edge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the degree/valency of a vertex?

A

Number of edges incident to it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a cycle?

A

A closed path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When are two vertices connected?

A

A path between them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When is a graph connected?

A

All its vertices are connected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a digraph?

A

If the edges of a graph have a direction associated with them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a tree?

A

A connected graph with no cycles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a spanning tree?

A

A subgraph which includes all the vertices and is also a tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is an Eulerian graph?

A

A graph with every vertex of even degree

17
Q

What is a semi-Eulerian graph?

A

A graph with exactly two vertices of odd degree

18
Q

What is a Hamiltonian cycle?

A

A cycle that passes through every vertex of a graph once and only once, and returns to its start vertex

19
Q

What is a planar graph?

A

A graph that can be drawn in a plane such that no two edges meet each other except at a vertex to which they are both incident

20
Q

When are two graphs isomorphic?

A

Same number of vertices and the degrees of the corresponding vertices are the same

21
Q

What is the travelling salesman problem?

A

Find a route of minimum length which visits every vertex in an undirected network

22
Q

What is the difference between the classical and practical travelling salesman problems?

A

Classical: each vertex is visited only once
Practical: A vertex may be revisited

23
Q

What is the triangular inequality for the vertices A, B and C?

A

length AB =< length AC + length CB

Where AB is a longest length

24
Q

What is a walk?

A

A route through a graph along edges from one vertex to the next

25
Q

What is a tour?

A

A walk which visits every vertex and returns to its starting vertex

26
Q

What is a path?

A

A walk in which no vertex is visited more than once

27
Q

What is a trail?

A

A walk in which no edge is visited more than once

28
Q

What is a loop?

A

An edge that starts and finishes at the same vertex

29
Q

What is a simple graph?

A

A graph in which there are no loops and there is at most one edge connecting any pair of vertices