Lecture 2 Flashcards

1
Q

what is state space search?

A

use of graph to keep track of relationships between states. each node is a state and each arc (edge) is a operator to move from one state to another.

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

what does open and closed list mean?

A

open - current fringe of search

closed - states already visited

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

explain 4 steps to solve search problem

A

state representation (f w g c), initial state (E E E E), goal state (W W W W), operators (farmer goes alone, farmer takes wolf etc)

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

explain breadth-first-search with example

A

searches state level by level, doesn’t store pathway to go to that state to store pathway at each state store a pair (current state, parent state)

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

characteristics of breadth first search

A

nodes at level n are examined before preceding to level n+1, solutn guaranteed to be shortest, good when simple solutn is known to exist, if each node has large # of descendants BAD, B = avg # of children B^n states on n level, space complexity makes it hard for large problems

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

explain depth first search

A

explores root then all children before moving on to sibling

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

characteristics of depth first search

A

gets to deep search space quickly, if search path is long, doesn’t waste time searching “shallow” space, can get lost and miss short solutions, Bxn states to go n deep, using depth limit is good for making it a bit better.

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

4 factors for evaluating search strategies

A

completeness (guaranteed to find solutn), time complexity how long to find solutn (measured in # of nodes), space complexity (usually maximum size node list becomes), optimality/admissibility (is solutn is found it is guaranteed to be optimal (minimum cost))

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

evaluate bedth-first-search

A

completeness - yes, time complexity 1 + b + b^2 + b^3 + … + b^d = O(b^d), space complexity O(b^d), optimality and admissibility - yes.

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

evaluate depth-first search and DFS with depth limit and iterative deepening

A
DFS/depthlimit/ID
completeness = no/yes if I > d/yes
time = O(b^n)/O(b^I)/O(b^d)
space = O(BM), O(BI), O(BD)
optimaland admissible = no/no/yes
b - branching factor, d - depth of solutn, m - maximum depth of tree, I - depth limit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

difference between heuristic search strategies and non-heuristic (depth and breadth)

A

heuristic - have some way of telling how close a state is to goal state.
non-heuristic - goal state larger = further away

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

what heuristics state do we use if 2 have same value?

A

use one closer to root, depth can be added to heuristic value. f(n) = g(n) + h(n). g(n) = length of path from start to end, h(n) = heuristic estimate (length from n to goal)

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

what is admissibility and informedness?

A

admissible - when a heuristic finds shortest path to goal its said to be admissible.
informedness - how much better one heuristic search is better than another

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

what is f*(n)?

A

it is admissible and f(n) = g(n) + h(n). evaluates a function. g(n) - is cost of shortest path from start node to node n. h*(n) - actual cost of shortest path from node n to the goal

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

what if h = 0, what type of search is made? (in heuristic search models)

A

we get a breadth first search, that is NOT very informed

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

properties of A* search

A

complete(guaranteed to find solutn)
admissible(guaranteed to find solutn)
space : O(b^d) (worst case)
time: O(b^d) (worst case)

17
Q

explain best-first-search

A

still has open and closed but each state ha a heuristic # associated with it. arrange open from smallest to largest. close the state on the left of the open list until the leftmost state state in open list is goal state

18
Q

give 2 heuristic ideas and apply to 8-tile-puzzle

A
  • count how many tiles are out of place in state.

- add distances of how out of place each tile is