search strategies (slides 3) Flashcards

1
Q

how is a search strategy defined?

A

by picking the order of node expansion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Strategy evaluation criterion

A

completeness-does it always find a solution?
time complexity-number of nodes generated
space complexity-max # of nodes in memory
optimality-does it always find a least cost soln?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

time and space complexity measurement

A

b: maximum branching factor of the search tree
d: dept of the least-cost solution
m: maximum depth of the state space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

uninformed search

A

use only the information available in the problem definition

  • generate successors
  • distinguish goals
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

uninformed search strategies

A
Breadth-first search
Uniform-cost search
Depth-first search
Depth-limited search
Iterative deepening search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

breadth first search

A

expand shallowest unexpanded node

fringe is a FIFO queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

breadth-first search properties

A

completeness: yes
time: O(b^(d+1)) if goal test is performed at expansion time, O(b^d) otherwise
- d = depth
space: O(b^(d+1)) if goal test is performed at expansion time, O(b^d) otherwise
optimality: yes if cost = 1 per step

space is its biggest problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

uniform-cost search

A

expand least-cost unexpanded node
implentation:
- fringe = priority queue ordered by path cost g(x)
- goal test performed at expansion time
equivalent to breadth-first if step costs all equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

uniform-cost search properties

A

completeness: Yes, if step cost => e
- if there are some 0-cost edges it may get stuck on an infinite loop

time: # of nodes with g<= cost of optimal solution, O(b^(floor(C/e) + 1) where C is the cost of the optimal solution

space: same as time
optimality: yes, nodes are expanded in increasing order of g(n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

depth-first search(problem)

A

expand deepest unexpanded node
implementation:
-fringe = LIFO queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

depth-first search properties

A

completeness: no: fails in infinite depth spaces, spaces with loops
- Modify to avoid repeated states on path
- -> complete in finite spaces
time: O(b^m): terrible if m is much larger than d
- if solns are fast, may be much better than breadth first
space: O(bm) Linear!! (node along the path + unexpanded siblings)
optimal: no

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

depth-limited search(problem,l)

A

depth first search with depth limit L.

implementation of depth first search in eclipse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

iterative deepening search(problem)

A

depth limited search with consecutively increasing depth limit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

iterative deepening search

A

completeness: yes
time: O(b^d)
space: O(bd)
optimal: Yes, if step cost = 1 (or generally non decreasing function of depth)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Graph search

A

tree search with additional data structure containing visited nodes to prevent from revisiting them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly