Docsity

Advanced Artificial Intelligence Final Exam, Exams of Artificial Intelligence

Toggle sidebar
bg1
CS 5346: Advanced Artificial Intelligence
Sample Final Exam, Fall 2022
Time: 2 hours and 30 minutes
Max. Points: 100
Note: Answer TWO and only TWO questions. If you answer more than two
questions, you will lose the best answer. The distribution of points among questions
is given below:
1a: 20 2a: 30 3a: 30
1b: 30 2b: 20 3b: 20
1. a. Consider the Wumpus environment E as a 4 X 4 grid of rooms (E2,3 represents 2nd row and
3rd column). Sensors have detected the following facts:
B2,1; B1,2; B2,3; B3,2 Where B i, j indicates Breeze in the i-th row and j-th column.
Breeze is not detected in any other room.
Write rules in propositional logic and change them into Conjunctive Normal Form. Using
resolution rule, develop a proof tree to determine the location of the Pit. You must write
each step clearly.
1. b. Transform the following English sentences first into a predicate logic form and then to the
conjunctive normal form:
Everyone who loves all animals is loved by someone.
Anyone who kills an animal is loved by no one.
Jack loves all animals.
Either Jack or Curiosity killed the cat, who is named Tuna.
Using the refutation rule develop the proof tree and prove that ‘Curiosity killed Tuna.’ You
must write each step clearly.
2. a. In the Block World problem, the following actions are used:
STACK(x, y)
1
pf3
pf4
pf5

Partial preview of the text

Download Advanced Artificial Intelligence Final Exam and more Exams Artificial Intelligence in PDF only on Docsity!

CS 5346: Advanced Artificial Intelligence

Sample Final Exam, Fall 2022

Time: 2 hours and 30 minutes

Max. Points: 100

Note: Answer TWO and only TWO questions. If you answer more than two

questions, you will lose the best answer. The distribution of points among questions

is given below:

1a: 20 2a: 30 3a: 30

1b: 30 2b: 20 3b: 20

1. a. Consider the Wumpus environment E as a 4 X 4 grid of rooms (E2,3 represents 2nd^ row and

3 rd^ column). Sensors have detected the following facts: B2,1; B1,2; B2,3; B3,2 Where B i, j indicates Breeze in the i-th row and j-th column. Breeze is not detected in any other room. Write rules in propositional logic and change them into Conjunctive Normal Form. Using resolution rule, develop a proof tree to determine the location of the Pit. You must write each step clearly.

1. b. Transform the following English sentences first into a predicate logic form and then to the

conjunctive normal form: Everyone who loves all animals is loved by someone. Anyone who kills an animal is loved by no one. Jack loves all animals. Either Jack or Curiosity killed the cat, who is named Tuna. Using the refutation rule develop the proof tree and prove that ‘Curiosity killed Tuna.’ You must write each step clearly.

2. a. In the Block World problem, the following actions are used:

STACK( x , y )

P: CLEAR( y ) ^ HOLDING( x ) D: CLEAR( y ) ^ HOLDING( x ) A: ARMEMPTY ^ ON( x , y ) UNSTACK( x , y ) P: ON( x , y ) ^ CLEAR( x ) ^ ARMEMPTY D: ON( x , y ) ^ ARMEMPTY A: HOLDING( x ) ^ CLEAR( y ) PICKUP( x ) P: CLEAR( x ) ^ ONTABLE( x ) ^ ARMEMPTY D: ONTABLE( x ) ^ ARMEMPTY A: HOLDING( x ) PUTDOWN( x ) P: HOLDING( x ) D: HOLDING( x ) A: ONTABLE( x ) ^ ARMEMPTY Using the Goal Stack Planning method (Algorithm is given in the end), develop a plan to transform the following initial state to the goal state. Follow the algorithm and clearly describe each step which needs to be performed. INITIAL STATE GOAL STATE ON (B , A) ^ ON(A , C) ^ ON(C , B) ^ ON (C , B) ^ ONTABLE (A) ^ ON(B , D) ^ CLEAR (C) ^ ONTABLE (D) ^ ONTABLE (D) ^ CLEAR (A) CLEAR (D)

2. b. A database of a county bank’s loan department is represented as positive and

negative instances in the following table:

Individual RATING^ BAL^ APP^ INC^ OK

3. b. Assuming predicates Parent (p, q) and Female (p) and constants Joan and Kevin, with the

obvious meanings, express each of the following sentences in first- order logic. i) Joan has a daughter (possibly more than one, and possibly sons as well). ii) Joan has exactly one daughter (but may have sons as well). iii) Joan has exactly one child, a daughter. iv) Joan and Kevin have exactly one child together. v) Joan has at least one child with Kevin, and no children with anyone else Goal Stack Planning Algorithm INITIALIZATION

  1. Initialize Knowledge base (KB) by the Initial State (it represents the current state)
  2. Initialize the Planning Action list to nil
  3. Add Goal to the Goal Stack DO THE FOLLOWING which is a LOOP
  4. If the top of the Stack is a condition satisfied by the KB, remove it from the Goal Stack and Go to Step #4; Else Go To Step #2.
  5. If the top of the Stack is a condition not satisfied by the KB, replace it by the action (whose add list will satisfy this condition) and add preconditions of the action to the Goal Stack [ If more than one action can be applied, use heuristic to choose the best one] and Go to Step #4; Else Go To Step #3.
  6. If the top of the Goal Stack is the action (whose preconditions are satisfied), then remove it from the Goal Stack and add it to the Planning Action list. Insert “Add Conditions” of the action to the KB. Remove “Delete Conditions” of the action from the KB. Go to Step #
  7. If the Goal Stack is not empty, then go to Step 1, else Planning Action list contains the plan to achieve the goal