Docsity

Branching Factor - Artificial Intelligence - Exam, Exams of Artificial Intelligence

Toggle sidebar
bg1
1
CS-271, Intro to A.I. โ€” Mid-term Exam โ€” Winter Quarter, 2013
YOUR NAME AND EMAIL ADDRESS:
YOUR ID: ID TO RIGHT: ROW: NO. FROM RIGHT:
The exam will begin on the next page. Please, do not turn the page until told.
When you are told to begin the exam, please check first to make sure that you
have all nine pages, as numbered 1-9 in the bottom-right corner of each page.
The exam is closed-notes, closed-book. No calculators, cell phones, electronics.
Please clear your desk entirely, except for pen, pencil, eraser, a blank piece of
paper (for scratch pad use), and an optional water bottle. Please write your name
and ID# on the blank piece of paper and turn it in with your exam.
This page summarizes the points available for each question so you can plan your time.
1. (5 pts total, -2 for each error, but not negative) TASK ENVIRONMENT.
2. (10 pts total, -2 for each error, but not negative) OPTIMALITY OF A* SEARCH.
3. (15 pts total, 3 pts each) CONSTRAINT SATISFACTION PROBLEMS.
4. (10 pts total, 1 pt each) State-Space Search.
5. (15 pts total, -2 for each error, but not negative) MINIMAX WITH ALPHA-BETA PRUNING.
6. (10 pts total, -2 each wrong answer, but not negative) STATE SPACE SEARCH PROPERTIES.
7. (5 pts total, -2 pts each error, but not negative) LOCAL SEARCH PROPERTIES.
8. (5 pts total, -1 for each wrong answer, but not negative) GENETIC ALGORITHMS.
9. (10 pts total, 1 pt each) Puzzle-Solving.
10. (15 pts total, -2 pts each error, but not negative) Constraint Satisfaction Problems.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Branching Factor - Artificial Intelligence - Exam and more Exams Artificial Intelligence in PDF only on Docsity!

CS-271, Intro to A.I. โ€” Mid-term Exam โ€” Winter Quarter, 2013

YOUR NAME AND EMAIL ADDRESS:

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

The exam will begin on the next page. Please, do not turn the page until told.

When you are told to begin the exam, please check first to make sure that you

have all nine pages, as numbered 1-9 in the bottom-right corner of each page.

The exam is closed-notes, closed-book. No calculators, cell phones, electronics.

Please clear your desk entirely, except for pen, pencil, eraser, a blank piece of

paper (for scratch pad use), and an optional water bottle. Please write your name

and ID# on the blank piece of paper and turn it in with your exam.

This page summarizes the points available for each question so you can plan your time.

**1. (5 pts total, -2 for each error, but not negative) TASK ENVIRONMENT.

  1. (10 pts total, -2 for each error, but not negative) OPTIMALITY OF A* SEARCH.
  2. (15 pts total, 3 pts each) CONSTRAINT SATISFACTION PROBLEMS.
  3. (10 pts total, 1 pt each) State-Space Search.
  4. (15 pts total, -2 for each error, but not negative) MINIMAX WITH ALPHA-BETA PRUNING.
  5. (10 pts total, -2 each wrong answer, but not negative) STATE SPACE SEARCH PROPERTIES.
  6. (5 pts total, -2 pts each error, but not negative) LOCAL SEARCH PROPERTIES.
  7. (5 pts total, -1 for each wrong answer, but not negative) GENETIC ALGORITHMS.
  8. (10 pts total, 1 pt each) Puzzle-Solving.**

10. (15 pts total, -2 pts each error, but not negative) Constraint Satisfaction Problems.

3. (15 pts total, 3 pts each) CONSTRAINT SATISFACTION PROBLEMS. This problem asks about the Map Coloring Problem. Each region must be colored one of Red (R), Green (G), or Blue (B).

Neighboring regions must be a different color. The map (left) and constraint graph (right) are below.

3.a. (3 pts) FORWARD CHECKING. Consider the partial assignment below. Variable E has been assigned value R as shown. Cross out all values that would be eliminated by Forward Checking (FC) after the assignment to variable E.

A B C D E F

R G B R G B R G B R G B R R G B

3.b. (3 pts) ARC CONSISTENCY. Consider the partial assignment below. Variables A and B have been assigned values as shown. Cross out all other values that would be eliminated by Arc Consistency (AC, also called AC-3 in your book).

A B C D E F

R G R G B R G B R G B R G B

3.c. (3 pts) MINIMUM-REMAINING-VALUES HEURISTIC. Consider the partial assignment below. Variable A is already assigned value R, and Arc Consistency is already done. List all unassigned variables that might possibly be selected by the Minimum-Remaining-Values (MRV) Heuristic: .

A B C D E F

R G B G B G B R G B R G B

3.d. (3 pts) DEGREE HEURISTIC. Consider the partial assignment below. (It is the same assignment as in problem 3c above.) List all unassigned variables that might possibly be selected by the Degree Heuristic:.

A B C D E F

R G B G B G B R G B R G B

3.e. (3 pts) MIN-CONFLICTS HEURISTIC. Consider the complete but inconsistent assignment below. E has just now been selected to be assigned a new value. List all new values that might be chosen below for E by the Min-Conflicts Heuristic?.

A B C D E F

R G B R? B

A

F

E

C

B

D

C

A

B E

D

F

4. (10 pts total, 1 pt each) State-Space Search. Execute Tree Search through this graph (do not remember visited nodes, so repeated nodes are possible). It is not a tree, but pretend you donโ€™t know that. Step costs are given next to each arc, and 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. (Note: D is a successor of itself). As usual, successors are returned in left-to-right order (The successors of S are A,B; of B are D,C). The start node is S and the goal node is G. For each search strategy below, indicate (1) the order in which nodes are expanded, and (2) the path to the goal that was found, if any. Write โ€œNoneโ€ for the path if the goal was not found. The first one is done for you, as an example.

4.a. DEPTH-FIRST SEARCH: 4.a.(1) Order of expansion: S A B D D D D ... 4.a.(2) Path to goal found: None 4.b. BREADTH-FIRST SEARCH:

4.b.(1) Order of expansion:

4.b.(2) Path to goal found: 4.c. ITERATIVE DEEPENING SEARCH:

4.c.(1) Order of expansion:

4.c.(2) Path to goal found: 4.d. UNIFORM COST SEARCH:

4.d.(1) Order of expansion:

4.d.(2) Path to goal found: 4.e. GREEDY BEST FIRST SEARCH:

4.e.(1) Order of expansion:

4.e.(2) Path to goal found: 4.f. A SEARCH:*

4.f.(1) Order of expansion:

4.f.(2) Path to goal found:

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

S

A B

D G

h=

h=

h=15 h=

h=

7. (5 pts total, -2 pts each error, but not negative) LOCAL SEARCH PROPERTIES. Label the following statements as True (T) or False (F).

7.a. Local search algorithms generally operate only on one (or a few) current node(s).

7.b. Local search algorithms generally are used to find the globally optimal solution.

7.c. In tabu search recently visited states are temporarily excluded from being visited again.

7.d. Simulated annealing is more likely to accept a bad move late in the search than earlier.

7.e. Local beam search retains the k best successors of the k states in the previous step.

7.f. Hill-climbing moves to the best successor of the current state.

8. (5 pts total, -1 for each wrong answer, but not negative) GENETIC ALGORITHMS. You are performing genetic algorithm search for the 8-queens problem. Perform cross-over on these pairs of chromosomes at the indicated division points.

8.a.

8.b.

3 2 7 5 2 4 1 1 2 4 4 1 5 1 2 4

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

9. (10 pts total, 1 pt each) Puzzle-Solving. The sliding-tile puzzle has three black tiles (B), three white tiles (W), and an empty space (blank). The initial starting state is:

The goal is to have all the white tiles to the left of all the black tiles. The position of the blank is not important.

The puzzle has two legal moves with associated costs:

(1) A tile may move into an adjacent empty location. This has a cost of 1.

(2) A tile may jump over one or two other tiles into the empty location. This has a cost equal to the number of tiles jumped over (1 or 2).

9.a. What is the branching factor?

9.b. Does the search space have loops (cycles)? (Y=yes, N=no)

9.c. Is breadth-first search optimal? (โ€œY" = yes, โ€œN" = no)

9.d. Is uniform-cost search optimal? (โ€œY" = yes, โ€œN" = no)

9.e. Is iterated-deepening search optimal? (โ€œY" = yes, โ€œN" = no)

9.f. Consider a heuristic function h1(n) = number of black tiles to the left of the left-most white tile.

Is this heuristic admissible? (โ€œY" = yes, โ€œN" = no)

9.g. Consider a heuristic function h2(n) = number of black tiles to the left of the right-most white tile.

Is this heuristic admissible? (โ€œY" = yes, โ€œN" = no)

9.h. Consider a heuristic function h3(n) = number of black tiles to the left of the right-most white tile plus the number of white tiles to the right of the left-most black tile.

Is this heuristic admissible? (โ€œY" = yes, โ€œN" = no)

9.i. Consider a heuristic function h4(n) = h3(n) / 2.

Is this heuristic admissible? (โ€œY" = yes, โ€œN" = no)

9.j. Will A* search with an admissible heuristic find the optimal solution?

(โ€œY" = yes, โ€œN" = no)

B B B W W W