The A* Algorithm (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What is the purpose of A*?
What is the purpose of A*?
Finding shortest path from source to target node
What algorithm does A* enhance?
What algorithm does A* enhance?
Dijkstra's algorithm
in A*
in A*
Cost from start node to current node
in A*
in A*
Heuristic estimate from current node to target
formula in A*
formula in A*
Which node does A* select each step?
Which node does A* select each step?
Node with lowest value
Manhattan Distance formula
Manhattan Distance formula
When to use Manhattan Distance
When to use Manhattan Distance
Grids with horizontal & vertical movement only
Euclidean Distance formula
Euclidean Distance formula
Admissible heuristic property
Admissible heuristic property
Never overestimates the actual cost
Effect of overestimating heuristic
Effect of overestimating heuristic
Algorithm may miss the shortest path
Which two algorithms does A* combine?
Which two algorithms does A* combine?
Dijkstra's & Greedy Best-First Search
