Save
Computer science OCR A Level
2.3.5 Path Finding Algorithms
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Aanya Sinha
Visit profile
Cards (14)
What does Dijkstra’s algorithm find in a weighted graph?
The shortest path between two
nodes
View source
How can graphs be used in real life?
To model
networks
and represent
entities
View source
In a network scenario, what does Dijkstra’s algorithm determine?
The optimal
route
for forwarding
packets
View source
What data structure is commonly used to implement Dijkstra’s algorithm?
A
priority queue
View source
What is the process of using Dijkstra’s algorithm to find the shortest path?
Start from the
root node
.
Add distances to neighbouring nodes to the
priority queue
.
Remove the node with the smallest distance.
Update distances for
connected nodes
.
Repeat until the goal node is reached.
View source
What is the initial distance for nodes that cannot be reached in Dijkstra’s algorithm?
∞ (
infinity
)
View source
What should be filled in the 'Node' column when using Dijkstra’s algorithm?
Nodes connected to the
root
node
View source
What happens when the total distance through a removed node is smaller?
Update the distance to the
smaller value
View source
What are the two cost functions in the A* algorithm?
Actual cost
and
approximate cost
View source
What is a heuristic in the context of the A* algorithm?
An approximate cost to the
final node
View source
How is the total cost calculated in the A* algorithm?
Add the approximate cost to the
actual cost
View source
What happens if a node with a lower actual cost is rejected in A* algorithm?
It may be due to a
lower
total cost
View source
What is the process of using the A* algorithm to find the shortest distance?
Add a
heuristic
column to the table.
Calculate total cost by adding heuristic to
actual cost
.
Select the
route
with the lowest total cost.
Repeat until the shortest route is found.
View source
What does the effectiveness of the A* algorithm depend on?
The accuracy of the
heuristics
used
View source