Unit 5 - Shortest Path Problem Flashcards

1
Q

Diagraph or Directed graph

A

Is a graph in which the edges have a direction.
The pair of nodes (i,j) is always an ordered pair, starting node i and ending node j.

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

In-degree

A

Indicates how many directed edges leads to this node.

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

Out-degree

A

Indicates how many directed edges leads away from this node.

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

How to calculate the degree of a node in a diagraph?

A

The degree of a node in a diagraph is the sum of the input and output nodes.

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

The adiacent matrix of a diagraph is symmetric?

A

Generally no, because an arrow connects a node to another in only one direction.

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

Weighted graph

A

It’s a graph where there’s a mapping that assigns to every edge a weight.

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

Unweighted graph

A

A graph without a weight function.

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

How to assign a weight?

A

Wij = w({ Vi,Vj })

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

What’s the weight of the elements on the main diagonal of a weighted graph?

A

0, it cost nothing to stay in one node.

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

Dijkstra’s algorithm

A

Determines the shortest path from a starting node to all other nodes in a weighted simple graph with non-negative weights.

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

Dijkstra’s algorithm steps

A

The algorithm iteratively goes to the successor node with the shortest path known so far and tests wether a shorter path to one of the neighboring nodes can be found via this node.

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