• 沒有找到結果。

Artificial Intelligence 2007 Spring Homework 3

N/A
N/A
Protected

Academic year: 2022

Share "Artificial Intelligence 2007 Spring Homework 3"

Copied!
1
0
0

加載中.... (立即查看全文)

全文

(1)

Artificial Intelligence 2007 Spring Homework 3

Due date: April 19, 2007 April 13, 2007

1. Constrain Satisfaction Problem

We have only four variables: A, B, C and D and each of them have only two legal values, which we will write as: A1, A2 (for variable A), B1, B2 (for variable B), C1, C2 (for variable C) and D1, D2 (for variable D). The only legal assignments for each pair of variables are:

A-B: A1-B1, A2-B1 A-C: A1-C1, A2-C2 B-D: B1-D1

C-D: C2-D1 B-C: No constraint.

A-D: No constraint.

No other combination of variable values is legal. Let’s say that that ”an assignment is generated” every time a variable in the problem gets a new (tentative) assignment. We assume that the variables are examined in alphabetical order and the values in numerical order . Below, we ask you to solve this problem using pure backtracking and also by using backtracking with forward checking. Stop when a valid solution is found.

The search tree for this problem is given below. Each node (except the root) is labeled with the value involved in the assignment, the variable involved is obvious given the value. Your answers will be a space-separated sequence of these values involved in the assignments as they are generated during the appropriate search. For example, A1 B1 etc.

(a) Pure backtracking: How many total assignments are made before finding an answer?

(b) Pure backtracking: Show the assignments in order.

(c) Backtracking with forward checking: How many assignments are made before finding an answer?

(d) Backtracking with forward checking: Show the assignments in order.

1

參考文獻

相關文件

(a),(b) The steps that examine these variables in alphabetical order and assign values in numerical order to these variables using pure backtracking are in Table 1:. (c),(d)

In “背景” mode, the search engine is called in the beginning of the game, and it will be terminated only when the game is over. A: What if I want to compare the search engine for

Trace the operation of the A* search algorithm applied to the problem of getting to Bucharest from Lugoj using the straight-line distance heuristic.. That is, show the sequence of

Show a state space with varying step costs in which GRAPH-SEARCH using iterative deepening finds a suboptimal

Solutions to this equation are called Legendre function, named after

Then you get zero point if the answer is not

As an example of a waiting-for-occurrence application, consider a telephone operator who, on the average, handles five calls every 3 minutes.. What is the probability that there will

A1: Whenever a contributor ceases to be employed as a teacher in a grant school, his Grant Schools Provident Fund account will be closed and the benefits paid to him, unless