The A* Algorithm (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What does the A* algorithm find between a source and target node?
What does the A* algorithm find between a source and target node?
The shortest path
In A*, what does the formula represent?
In A*, what does the formula represent?
The total estimated cost
What does represent in the A* algorithm?
What does represent in the A* algorithm?
Cost from start to current node
What does represent in the A* algorithm?
What does represent in the A* algorithm?
Heuristic estimate to target
Which node does A* select from the open set to evaluate next?
Which node does A* select from the open set to evaluate next?
Node with lowest
When is Manhattan Distance used as a heuristic in A*?
When is Manhattan Distance used as a heuristic in A*?
For horizontal and vertical only
What is the formula for Euclidean Distance in A*?
What is the formula for Euclidean Distance in A*?
What does it mean for a heuristic to be admissible?
What does it mean for a heuristic to be admissible?
It never overestimates cost
In the example, what is the total cost of the shortest path A → B → D → E?
In the example, what is the total cost of the shortest path A → B → D → E?
8
What two algorithms does A* combine aspects of?
What two algorithms does A* combine aspects of?
Dijkstra's and Greedy Best-First
What problem can occur if a non-admissible heuristic is used?
What problem can occur if a non-admissible heuristic is used?
May miss the shortest path
What is the purpose of the cameFrom map in A*?
What is the purpose of the cameFrom map in A*?
Reconstruct the path
