Key terms for d1 Flashcards

1
Q

efficiency

A

The efficiency of an algorithm is 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

Size

A

The size of a problem is 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

Order

A

The order of an algorithm is 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

Degree of a vertex

A

The degree or valency of a vertex is the number of edges incident to it. A vertex is odd
(even) if it has odd (even) degree.

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

path

A

A path is 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.

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

Cycle

A

A cycle (circuit) is a closed path, i.e. the end vertex of the last edge is the start vertex of
the first edge.

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

tree

A

A tree is a connected graph with no cycles.

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

Spanning tree

A

A spanning tree of a graph G is a subgraph which includes all the vertices of G and is also
a tree.

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

Eulerian graph

A

An Eulerian graph is a graph with every vertex of even degree. An Eulerian cycle is a
cycle that includes every edge of a graph exactly once.

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

semi-Eulerian graph

A

A semi-Eulerian graph is a graph with exactly two vertices of odd degree.

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

Hamiltonian cycle

A

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

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

Planar graph

A

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

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

Isomorphic

A

Two graphs are isomorphic if they have the same number of vertices and the degrees of
corresponding vertices are the same.

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

Travelling salesman problem

A

The travelling salesman problem is ‘find a route of minimum length which visits every
vertex in an undirected network’. In the ‘classical’ problem, each vertex is visited once only.
In the ‘practical’ problem, a vertex may be revisited.

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

triangular inequality

A

For three vertices A, B and C, the triangular inequality is ‘length AB  length AC +
length CB’, where AB is a longest length.

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

walk

A

A walk in a network is a finite sequence of edges such that the end vertex of one edge is the
start vertex of the next

17
Q

tour

A

A walk which visits every vertex, returning to its starting vertex, is called a tour.

18
Q

Float

A

The total float F(i, j) of activity (i, j) is defined to be F(i, j) = lj – ei – duration (i, j), where ei
is the earliest time for event i and lj is the latest time for event j

19
Q

Bubble sort comparisons

A

(n - 1) + (n - 2)…(2) + (1) etc

20
Q

MST prims

A

Choose any vertex to start then select arc of min weight which is connected (can be done on distance matrix)

21
Q

MST Kruskals

A

List arcs in order and choose min to start, add arcs as long as no cycle formed

22
Q

Handshaking lemma

A

Sum of degrees of vertices = 2x number of edges

23
Q

Gant chart

A

Graphical way to see range of possible start and finish times

24
Q

Scheduling diagram

A

Condensed gant chart

25
Q

Resource histogram

A

SHows number of workers that are active at any given time, events start at earliest possible time. (graph of little squares).