Network Algorithms Flashcards

(14 cards)

1
Q

What do you use Djjkstra’s algorithm for

A

To find the shortest distance between two points

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

What are minimal spanning trees

A

They are trees of minimum weight required to connect all vertices of a network

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

What is krusksals algorithm used for

A

Finding minimal spanning trees on a network

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

What is prims algorithm used for

A

Finding the minimal spanning tree on a network and also on an adjacency matrix

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

What is Kruskal’s algorithm

A

find all of the shortest edges that are present in a network and do so so that all nodes are connected and no cycles are created

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

How is prims algorithm done on a network

A

Find the shortest edge connected to a point, then find the shortest edge connected to either of those two points without creating a cycle and repeat

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

How is prims algorithm done on an adjacency matrix

A

Cross through the entries in the starting row, and mark the column 1.

Choose a minimum entry that is uncircled in a mark column

Repeat first step

Until there are no longer any weights to choose

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

What is the order of prims and kruskal’s algorithm

A

O(N^3)

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

What is the order of djjkstras algorithm

A

O(n^2)

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

How do you find the upper bound for a least weight cycle

A

Using the neareast neighbour method

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

How do you find the lower bound for a least weight cycle

A

You remove a given vertex and all arcs that are directly connected to that vertex.

Find the minimum spanning tree for the reduced network

Add the weight of this minimum connector to the two least weight arcs that had been deleted

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

What is used for the least weight route using every arc

A

The route inspection algorithm

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

If the graph is eulerian in a least weight arc problem what can be done

A

There is a closed path that uses every arc once so that’s the solution

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

What is the route inspection algorithm

A

Start with a list of the odd degree vertices

For each pair of odd nodes, find the connecting path of least weight

Group the odd nodes so that the sum of weights of the connecting paths is minimised

Add this sum to the total weight of the graph

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