heuristic search Flashcards
1
Q
what is an uninformed (blind) search
A
- brute force approach
- no additional information about state or search space
- does not consider costs provided
2
Q
breadth first search
- how?
- time/space complexity?
- complete?
A
- implemented using FIFO queue data structure
- time complexity: O(b^d) [d being the shallowest solution]
- space complexity: O(b^d)
- complete: will find a solution if it exists (might not be the best one)
3
Q
depth first search
- how?
- time/space complexity?
- complete?
A
- implemented using LIFO stack data structure
- time complexity: O(b^m) [m being the max depth of any node]
- space complexity: O(bd)
- complete: depends
4
Q
BFS-Optimal
A
- considers cost from the start
- uses a priority queue ( increasing cost of path )
- guaranteed to find optimal solution
- if not explored but in pq and lower cost, replace
5
Q
what is an informed search
A
- being able to estimate the cost to goal (usually through heuristics)
6
Q
what is an admissible heuristic
A
heuristic of node (n) <= minimum cost to reach goal from n
7
Q
best first search
- how?
- time/space complexity?
A
- expand ‘most promising’ state according to heuristic
- implemented priority queue according to heuristic
- time complexity: O(b^d)
- space complexity: O(bd); O(b^d) if heuristic always 0
- not optimal, IS GREEDY
- duplicate nodes are allowed if heuristic different and not explored
8
Q
A* search
- how?
A
- considers cost so far + heuristic cost to goal
- f(n) = g(n) + h(n)
- implemented priority queue according to f(n)
- consistent admissible heuristic; optimal
- if f lower, replace and reopen node
9
Q
what is a consistent heuristic
A
- heuristic n <= sum of heuristic p and step cost from n to p
- a consistent heuristic is also admissible h(g) =0