Day 8 Flashcards
For this particular problem, greedy best-first search using βππΏπ· finds a solution without ever expanding a node that is not on the solution path. The solution it found does not have optimal cost
This is why the algorithm is called βgreedyββon each iteration it tries to get as close to a goal as it can, but greediness can lead to worse results than being careful
The most common informed search algorithm is A* search (pronounced βA-star searchβ), a best-first search that uses the evaluation function π π = π π + β(π)
where g(n) is the path cost from the initial state to node n, and h(n) is the estimated cost of the shortest path from n to a goal state
Greedy best-first graph search is complete in finite state spaces, but not in infinite ones.
The worst-case time and space complexity is O(|V |). With a good heuristic function, however, the complexity can be reduced substantially, on certain problems reaching O(bm)
A key property is admissibility: an admissible heuristic is one that never overestimates the cost to reach a goal
A* search is complete
With an admissible heuristic, A* is cost-optimal
With an inadmissible heuristic, A* may or may not be cost-optimal.
With an inadmissible heuristic, A* may or may not be cost-optimal.