definitions Flashcards

1
Q

What is the order of an algorithm?

A

The order tells you how changes in the size of the problem affect its run time. Increasing the size of the problem from n to m will increase the run time by a factor of f(m)/f(n).

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

What is a subgraph?

A

A graph including vertices and edges belonging to its main graph.

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

What is the degree/valency/order of a vertex?

A

The number of edges connected to the vertex.

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

What is a walk?

A

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

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

What is a path?

A

A walk where no vertex can be visited more than once.

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

What is a trail?

A

A walk where no edge is visited more than once.

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

What is a cycle?

A

A walk that starts and ends at the same vertex and no vertex is visited more than once.

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

What is a Hamiltonian cycle?

A

A cycle where every vertex is visited.

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

What is Euler’s handshaking lemma?

A

The sum of the degrees of the vertices = 2x number of edges. Therefore the sum of odd vertices must be even.

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

What is a tree and what is a spanning tree.

A

A tree is a connected graph with no cycles, and a spanning tree is a subgraph and a tree that includes every vertex.

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

What is a complete graph?

A

A graph in which every vertex is directly connected by a single edge to each of the other vertices.

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

What is an isomorphic graph?

A

Graphs that represent the same information but drawn differently.

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

What is a planar graph?

A

A graph that can be drawn so that no two edges cross each other except at a vertex.

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

What is a Eulerian graph?

A

A graph that has a trail that starts and ends at the same vertex and contains every edge. If all the vertices of a graph are even, the graph is Eulerian.

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

What is a semi-Eulerian graph?

A

A graph that has a trail that starts and ends at different vertices and contains every edge. If exactly two vertices are odd, the graph is semi-Eulerian.

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

What is a tour?

A

A walk which visits every vertex and returns to its starting vertex. (can visit vertices more than once)

17
Q

What is the aim of the TSP?

A

To find a tour of minimum weight.

18
Q

What is the difference between the classical and practical TSP?

A

Classical: each vertex is visited exactly once before returning to the start.
Practical: each vertex is visited at least once before returning to the start.