"Network Algorithms" Flashcards

(3 cards)

1
Q

What is the primary purpose of Dijkstra’s Algorithm?

It solves a fundamental network problem.

A

To find the shortest path (or minimum cost path) from a given origin node to all other nodes in a network.

It builds a “shortest path tree” rooted at the origin.

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

What is the key difference in how Dijkstra’s and A* select the next node to explore?

A

Dijkstra’s uses the one with the least cost from the origin. A* uses the cost from the origin PLUS an estimated cost to the destination.

This heuristic guides A* towards the goal, making it faster.

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

Why was the A* algorithm developed as an alternative to Dijkstra’s?

It addresses a specific weakness.

A

Because Dijkstra’s can be prohibitively slow for certain large networks.

A* is often described as a “guided” or “informed” search.

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