Heuristics for Problem Solving (OCR A-Level Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
What is a heuristic?
What is a heuristic?
Practical method to find solutions quickly, not always optimal
What is the purpose of heuristics?
What is the purpose of heuristics?
Find 'good enough' solutions rather than optimal ones
When are heuristics most useful?
When are heuristics most useful?
Complex problems where perfect solution takes too long
Example applications of heuristics
Example applications of heuristics
Pathfinding, optimisation problems, game strategies
What A* Algorithm combines
What A* Algorithm combines
Dijkstra's algorithm with a heuristic for efficiency
in A* Algorithm
in A* Algorithm
Actual cost to reach node from start
in A* Algorithm
in A* Algorithm
Heuristic estimate of cost to reach goal from node
A* total cost function formula
A* total cost function formula
Manhattan Distance formula
Manhattan Distance formula
Manhattan Distance purpose
Manhattan Distance purpose
Estimates distance to goal in grid-based pathfinding
Main efficiency benefit of heuristics
Main efficiency benefit of heuristics
Reduces time and computational resources required
Main drawback of heuristics
Main drawback of heuristics
May not always produce the optimal solution
Chess AI heuristic factors
Chess AI heuristic factors
Material balance, piece mobility, control of centre
