Docsity

Branching Factor - Artificial Intelligence - Quiz, Exercises of Artificial Intelligence

Toggle sidebar
bg1
CS-271, Intro to A.I., Winter Quarter, 2013 — Quiz # 1 — 20 minutes
1. NAME:
YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:
2. (30 pts total, 2 pts each) AGENT/SEARCH CONCEPTS. For each of the following terms on the left,
write in the letter corresponding to the best answer or the correct definition on the right. The first one is
done for you as an example.
A
Agent
A
Perceives environment by sensors, acts by actuators
Percept
B
All states reachable from the initial state by a sequence of actions
Performance Measure
C
Guaranteed to find a solution if one is accessible
Rational Agent
D
Process of removing detail from a representation
State Space
E
Maximum number of successors of any node
Search Node
F
Set of all leaf nodes available for expansion at any given time
Link between nodes
G
Estimates cost of cheapest path from current state to goal state
Path
H
Guaranteed to find lowest cost among all accessible solutions
Abstraction
I
Represents a state in the state space
Optimal Search
J
Sequence of states connected by a sequence of actions
Complete Search
K
Agent’s perceptual inputs at any given instant
Expand a state
L
Agent that acts to maximize its expected performance measure
Frontier
M
Apply each legal action to a state, generating a new set of states
Search Strategy
N
Represents an action in the state space
Branching Factor
O
How a search algorithm chooses which node to expand next
Heuristic Function
P
Evaluates any given sequence of environment states for utility
3. (5 pts total, -2 pts each wrong answer, but not negative) TASK ENVIRONMENT. A task
environment is a set of four things, with acronym PEAS. Fill in the blanks with the PEAS components.
P E A S
4. (15 pts total, -2 each wrong answer, but not negative) SEARCH PROPERTIES.
Fill in the values of the four evaluation criteria for each search strategy shown. Assume a tree search where
b is the finite branching factor; d is the depth to the shallowest goal node; m is the maximum depth of the
search tree; C* is the cost of the optimal solution; step costs are identical and equal to some positive ε; and
in Bidirectional search both directions use breadth-first search.
Note that these conditions satisfy all of the footnotes of Fig. 3.21 in your book.
Criterion
Complete?
Time complexity
Space complexity
Optimal?
Breadth-First
Uniform-Cost
Depth-First
Iterative
Deepening
Bidirectional
(if applicable)
**** TURN PAGE OVER AND CONTINUE ON THE OTHER SIDE ****
pf2

Partial preview of the text

Download Branching Factor - Artificial Intelligence - Quiz and more Exercises Artificial Intelligence in PDF only on Docsity!

CS-271, Intro to A.I., Winter Quarter, 2013 — Quiz # 1 — 20 minutes

1. NAME:

YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:

2. (30 pts total, 2 pts each) AGENT/SEARCH CONCEPTS. For each of the following terms on the left, write in the letter corresponding to the best answer or the correct definition on the right. The first one is done for you as an example.

A Agent A Perceives environment by sensors, acts by actuators Percept B All states reachable from the initial state by a sequence of actions Performance Measure C Guaranteed to find a solution if one is accessible Rational Agent D Process of removing detail from a representation State Space E Maximum number of successors of any node Search Node F Set of all leaf nodes available for expansion at any given time Link between nodes G Estimates cost of cheapest path from current state to goal state Path H Guaranteed to find lowest cost among all accessible solutions Abstraction I Represents a state in the state space Optimal Search J Sequence of states connected by a sequence of actions Complete Search K Agent’s perceptual inputs at any given instant Expand a state L Agent that acts to maximize its expected performance measure Frontier M Apply each legal action to a state, generating a new set of states Search Strategy N Represents an action in the state space Branching Factor O How a search algorithm chooses which node to expand next Heuristic Function P Evaluates any given sequence of environment states for utility

3. (5 pts total, -2 pts each wrong answer, but not negative) TASK ENVIRONMENT. A task environment is a set of four things, with acronym PEAS. Fill in the blanks with the PEAS components.

P E A S

4. (15 pts total, -2 each wrong answer, but not negative) SEARCH PROPERTIES. Fill in the values of the four evaluation criteria for each search strategy shown. Assume a tree search where b is the finite branching factor; d is the depth to the shallowest goal node; m is the maximum depth of the search tree; C* is the cost of the optimal solution; step costs are identical and equal to some positive ε; and in Bidirectional search both directions use breadth-first search. Note that these conditions satisfy all of the footnotes of Fig. 3.21 in your book.

Criterion Complete? Time complexity Space complexity Optimal? Breadth-First

Uniform-Cost

Depth-First

Iterative Deepening Bidirectional (if applicable)

**** TURN PAGE OVER AND CONTINUE ON THE OTHER SIDE ****

5. (50 pts total, 10 pts each) Execute Tree Search through this graph (i.e., do not remember visited nodes, so repeated nodes are possible). It is not a tree, but pretend that you don’t know that. Step costs are given next to each arc. Heuristic values are given next to each node (as h=x). The successors of each node are indicated by the arrows out of that node. Successors are returned in left-to-right order. (Note: C is a successor of itself). For each search strategy below, show the order in which nodes are expanded (i.e., to expand a node means that its children are generated), ending with the goal node that is found. Show the path from start to goal, or write “None”. The first one is done for you as an example.

5.a. DEPTH FIRST SEARCH.

Order of node expansion: S A D G

Path found: S A D G 5.b. (10 pts) UNIFORM COST SEARCH.

Order of node expansion:

Path found: 5.c. (10 pts) GREEDY (BEST-FIRST) SEARCH.

Order of node expansion:

Path found: 5.d. (10 pts) ITERATED DEEPENING SEARCH.

Order of node expansion:

Path found: 5.e. (10 pts) A SEARCH.*

Order of node expansion:

Path found: 5.f. (10 pts, -3 for each wrong answer, but not negative) OPTIMALITY.

Did Uniform Cost Search find the optimal goal? Why or why not?

Did A* Search find the optimal goal? Why or why not?

S

A (^) B

D E^ F

G1 G2 G

h=13 C

h=16 h=11 h=

h=

h=

h=