search (slides3) Flashcards

1
Q

tree search basic idea

A

offline, simulated exploration of state space by generating successors of already explored states (a.k.a ~expanding states)

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

tree-search general pseudocode

A
function Tree-Search(problem, strategy)
returns a solution, or failure
initialize the search tree using the initial state of problem
loop do
-if there are no candidates for expansion then   return failure
  • choose a leaf node for expansion according to strategy
  • if the node contains a goal state then return the corresponding solution
  • else expand the node and add the resulting nodes to the search tree
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

state

A

representation of physical configuration

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

node

A

data structure constituting part of a search tree includes state, parent node, action, path cost g(x), sometimes the depth

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

expand function

A

creates new nodes, filling in the various fields and using the Successor Function of the problem to create the corresponding states
-frontier is usually organized as FIFO, LIFO, or Priority Queue

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

general tree search implementation (Tree-search)

A
function Tree-Search(problem, fringe) returns a solution, or failure
  fringe<-- InsertAll(Expand(node,problem), fringe)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

general treesearch implementation (Expand)

A

function Expand(node, problem) returns a set of nodes
successors<–Depth[node] + 1
add s to successors
return successors

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