Networks Flashcards

Vocabulary/language, minimum connector problems, route inspection problems and the travelling salesperson problem.

1
Q

A network is…

A

a weighted graph.

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

A minimum spanning tree is…

A

a subset of the edges of a connected, edge-weighted graph that connects all the vertices together without any cycles and with the minimum possible total edge weight (i.e. a tree that minimises the weights of the edges of said tree).

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

List three methods for finding a minimum spanning tree:

A

> Remove arcs in order of decreasing weights/select arcs in order of decreasing weight.
Apply Prim’s algorithm.
Apply Kruskal’s algorithm.

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

Describe Prim’s algorithm.

A
  1. Start at any vertex and choose the edge of least weight that is connected to it.
  2. Choose the edge of least weight that is connected to any of the vertices already connected, and does not connect to another vertex that is already in the tree.
    (If there is a choice of the edges of equal weight, either can be selected)
  3. Repeat STEP 2 until all of the vertices are added to the tree.

*Cycles are avoided by only adding edges that are not already connected at one end.

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

Describe Kruskal’s algorithm.

A
  1. Sort the edges in terms of increasing weight.
  2. Select the edge of least weight (if there is more than one edge of the same weight, either may be used).
  3. Select the next edge of least weight that has not already been chosen and add it to your tree provided that it does not make a cycle with any of the previously selected edges.
  4. Repeat STEP 3 until all of the vertices in the graph are connected.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the difference between Prim’s algorithm and Kruskal’s algorithm?

A

Prim’s algorithm selects a root vertex to begin from and then traverses from vertex to vertex. Whereas, Kruskal’s selects weighted arcs starting from the arc with the lowest weight.

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

The number of edges in a minimum spanning tree will always be…

A

one less than the number of vertices in the graph.

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

A minimum spanning tree cannot contain…

A

any cycles.

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

The Chinese postman/route inspection problem finds…

A

the shortest route that covers all of the arcs at least once, returning to the start if required.

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

For the Chinese postman/route inspection problem to be solved a network needs to fulfil one of these three conditions:

A

> Eulerian if they have no odd nodes.
semi-Eulerian if they have two odd nodes.
neither Eulerian or semi-Eulerian if they have four or more odd nodes.

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

What is the difference between the Chinese postman/route inspection problem and the travelling salesperson problem?

A

The travelling salesman problem can not visit a node more than once. The path produced will consist of all different nodes/cities. The Chinese postman/route inspection problem can have duplicate nodes in the path produced (but not duplicate edges).

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

The travelling salesperson problem…

A

finds the shortest route that visits all of the nodes of a networks at least once, returning to the start.

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

The nearest neighbour algorithm is…

A

a systematic way of finding the upper bound for the minimum weight Hamiltonian cycle.

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

In the classical travelling salesman problem the following conditions are observed:

A

> the graph is complete.
the direct route between two vertices is the shortest route.

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

What are the steps of the nearest neighbour algorithm?

A
  1. Choose a starting vertex.
  2. Follow the edge of least weight from the current vertex to an adjacent unvisited vertex (if there is more than one edge of least weight pick one at random).
  3. Repeat STEP 2 until all vertices have been visited.
  4. Add the final edge to return to the starting vertex.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The shortest path (Dijkstra’s) algorithm is…

A

an algorithm for finding the shortest paths between nodes in a weighted graph.

17
Q

What are the steps of the shortest path (Dijkstra’s) algorithm algorithm?

A