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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is an informed search

A
  • being able to estimate the cost to goal (usually through heuristics)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is an admissible heuristic

A

heuristic of node (n) <= minimum cost to reach goal from n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly