4.4 Dijkstra’s algorithm Flashcards

1
Q

What is the length of a walk in an unweighted graph + what is the distance between 2 vertices

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

What is a weighted graph

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

What are negative weights in graphs

A

May or may not be ignored (think might be on ps)

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

What is the idea behind Dikstra’s algorithm

A

BFS with weights (using priority queue). Explore all shortest paths first.

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

Prove the following:

A

Know that d(x,y) + length(y,z) is more since was not picked first

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

What is a priority queue

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

What is the psuedo-code for Dijkstra’s algorithm

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

What is the runtime of Dijkstra’s algorithm

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