CS37 - Search Flashcards

1
Q

Trying to figure out what to do in a situation

A

Search

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

Entity that perceives its environment
and acts upon that environment

A

agent

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

a configuration of the agent and
its environment

A

state

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

the state in which the agent begins

A

initial state

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

choices that can be made in a state

A

actions

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

ACTIONS(s) returns the set of actions that can be executed in state s

A

actions

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

a description of what state results from performing any applicable action in any state

A

transition model

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

RESULT(s, a) returns the state resulting from
performing action a in state s

A

transition model

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

the set of all states reachable from the initial state by any sequence of actions

A

state space

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

way to determine whether a given state is a goal state

A

goal test

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

numerical cost associated with a given path

A

path cost

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

Basis of search problem

A
  • initial state
  • actions
  • transition model
  • goal test
  • path cost function
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

a sequence of actions that leads from the initial state to a goal state

A

solution

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

a solution that has the lowest path cost among all solutions

A

optimal solution

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

a data structure that keeps track of:
- a state
- a parent
- an action
- a path cost

A

node

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

what does a node keeps track of

A
  • a state
  • a parent
  • an action
  • a path cost
17
Q

Process of approach

A
  • Start with a frontier that contains the initial state.
    Repeat:
  • If the frontier is empty, then no solution.
  • Remove a node from the frontier.
  • If node contains goal state, return the solution.
  • Expand node, add resulting nodes to the frontier
18
Q

Process of Revised Approach

A
  • Start with a frontier that contains the initial state.
  • Start with an empty explored set.
    Repeat:
  • If the frontier is empty, then no solution.
  • Remove a node from the frontier.
  • If node contains goal state, return the solution.
  • Add the node to the explored set.
  • Expand node, add resulting nodes to the frontier if they
    aren’t already in the frontier or the explored set
19
Q

last-in first-out data type

A

stack

20
Q

what’s the difference between an approach and revised approach

A

revised approach has an explored set

21
Q

search algorithm that always expands the
deepest node in the frontier

A

depth-first search

22
Q

search algorithm that always expands the
shallowest node in the frontier

A

breadth-first search

23
Q

first-in first-out data type

A

queue

24
Q

search strategy that uses no problem-specific knowledge

A

uninformed search

25
Q

search strategy that uses problem-specific
knowledge to find solutions more efficiently

A

informed search

26
Q

search algorithm that expands the node
that is closest to the goal, as estimated by a
heuristic function h(n)

A

greedy best-first search

27
Q

search algorithm that expands node with
lowest value of g(n) + h(n)

A

A* search

28
Q

A* search is optimal if:

A
  • h(n) is admissible (never overestimates the
    true cost), and
  • h(n) is consistent (for every node n and
    successor n’ with step cost c, h(n) ≤ h(n’) + c)
29
Q

What does DFS use

A

stack

30
Q

What does BFS use

A

queue

31
Q

Approach process

A

Start with a frontier that contains the initial state
Repeat:
If the frontier is empty, then no solution
Remove a node from the frontier
If node contains goal state, return the solution
Expand node, add resulting nodes to the frontier

32
Q

What could go wrong with the approach?


A

There is a possibility that it will enter an endless loop and the goal can never be found

33
Q

Revised Approach process

A

Start with a frontier that contains the initial state
Start with an empty explored set
Repeat:
If the frontier is empty, then no solution
Remove a node from the frontier
If node contains goal state, return the solution
Add the node to the explored set
Expand node, add resulting nodes to the frontier if they aren’t already in the frontier or the explored set

34
Q

What’s the difference between approach and revised approach?


A

Revised Approach has an explored set

35
Q
A