Solving Problems by Searching Flashcards
What is a heuristic?
A function that estimates how close a state is to a goal; designed for a particular search problem
What is a Greedy Search?
Expand the code that seems closest
Heuristic: estimate of distance to nearest goal for each state
What is A* Search?
Combination of uniform cost search (backward cost) and greedy search (forward cost) [Estimates the forward cost]
- Best-first search
- Relies on an open and closed list to find a path that is both optimal and complete
What is an admissible heuristic?
Used to estimate the cost of reaching the goal state in an informed search algorithm.
Difference between UCS and A*
UCS expands equally in all directions
A* expands mainly towards the goal, but does hedge its bets to ensure optimality
What is Manhattan distance?
Distance between two points measured along axes at right angles
| |
| |_____ X
|
|_______________>
Heuristics form a semi-lattice which is _______.
max of admissible heuristics is admissible.
What is the idea of a graph search?
Never expand a state twice
*Think of it as a binary tree
T or F: Estimated heuristic costs <= actual costs
True.
When is A* optimal on a tree search?
When its heuristic is admissible.
When is A* optimal on a graph search
When its heuristic is consistent.
- Consistency implies admissibility