D1 glossary 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 (of a problem)

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 (of an algorithm)

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

Middle position

A

In a list containing N items the ‘middle’ item has position (1/2)(N+1) if N is odd and (1/2)(N+2) if N is even.

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

What is a graph?

A

A graph G consists of points (vertices or nodes) which are connected by lines (edges or arcs).

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

Subgraph

A

A subgraph of G is 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
7
Q

Network

A

If a graph has a number associated with each edge (usually called its weight) then the graph is called a weighted graph or network.

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

Degree

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
9
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
10
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
11
Q

Connected

A

Two vertices are connected if there is a path between them. A graph is connected if all its vertices are connected.

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

Digraph

A

If the edges of a graph have a direction associated with them they are known as directed edges and the graph is known as a digraph.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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
14
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
15
Q

Eulerian Graph

A

An Eulerian graph is a graph with every vertex of even degree.

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

Eulerian Cycle

A

An Eulerian cycle is a cycle that includes every edge of a graph exactly once.

17
Q

Semi-Eulerian Graph

A

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

18
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.

19
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.

20
Q

Isomorphic

A

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

21
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.

22
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.

23
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.

24
Q

Tour

A

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

25
Q

Total Float

A

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