Starting from:

$30

EN.601.633-Artificial Intelligence Final Solved

Informed Search                                                                                                                 Consider the search space below, where S is the start node and G satisfies the goal test. Arcs are labeled with the cost of traversing them and the heuristic cost to the goal is reported inside nodes (so lower scores are better).

 

1.For A* search, indicate which goal state is reached at what cost and list, in order, all the states popped off of the OPEN list. You use a search graph to show your work. Do not expand paths that revisit states at higher cost.

Note: When all else is equal, nodes should be removed from OPEN in alphabetical order.

Path to goal (cost):

Search graph (indicate order of states popped of OPEN list with numbers):

               First Order Logic                                                                                                                   
2.    Convert the following sentences into first-order predicate calculus logic:

If a team wins a game, it is happy.

If a team plays a game, is better than the opponent, and is in good form, it wins the game.

The Blue Jays play a game against the Tigers.

The Blue Jays are better than the Tigers.

The Blue Jays are in good form.

3.   Convert all rules to Conjunctive Normal Form (CNF). You do not need to restate rules that are already in CNF.

4.   Carry out a resolution proof of the statement The Blue Jays are happy.

              Constraint Satisfaction                                                                                                     
Consider the following Mini Sodoku puzzle.

(numbers are assigned values, letters are names for cells)

A
B
1
C
2
D
E
F
G
Recall the rules of Sudoku:

•   Each cell is assigned a number (in Mini Sudoku, the numbers are 1, 2, and 3).

•   No row can have the same number twice.

•   No column can have the same number twice.

These rules can be specified by constraints. You do not need to formally write these constraints down.

5.   Carry out backtracking search. Explore the search space in the alphabetic order of the cell names, and assign values in numerical order (i.e., first assign 1, then 2, then 3). Draw the search tree. Stop and backtrack at leaves where constraints allow no valid variable assignment.


6.   Now, use the minimum remaining values (MRV) heuristic. Fill in the following table. Start with a row that specifies the remaining possible values for each variable. Then commit one variable to a value following the MRV heuristic (in case of ties follow alphabetical order).

Step
 
A
B
C
D
E
F
G
 
remaining values
 

 
 
1
assigned value
 
 
 
 
 
remaining values
 
 
 
 
2
assigned value
 

 

 

 
remaining values
 
 
 
 
 
3
assigned value
 
 
 
 
 
 
 
 
remaining values
 
 
 
 
 
 
 
4
assigned value
 
 
 
 
 
 
 
 
remaining values
 
 
 
 
 
 
 
5
assigned value
 
 
 
 
 
 
 
 
remaining values
 
 
 
 
 
 
 
6
assigned value
 
 
 
 
 
 
 
 
remaining values
 
 
 
 
 
 
 
7
assigned value
 
 
 
 

             Planning                                                                                                                           
An evil robot has almost completed his evil plan for the total destruction of the human race. He has two nasty chemicals called A and B which are currently stored in containers 1 and 2 respectively. All he has to do now is mix them together in container 3. His designer, an equally evil computer scientist, has equipped the evil robot with a propositional planning system that allows him to reason about the locations of particular things and about moving a thing from one place to another.

7.      Explain how this problem might be represented within a propositional planning system. Give specific examples of the way in which the start state and goal can be represented.

8.      Describe in detail an algorithm that can be used to find a plan using this form of representation.

9.      Give a specific example of a successor-state axiom using the representation you suggested.

10.   Explain why in this particular planning problem it might be necessary to include one or more precondition axioms and give an example of such an axiom using your representation.

              Machine Learning                                                                                                                
Consider the following plot of data points.

 

11.   Write down the formula for a linear classifier function f(x,y) → value where positive output values correspond to the sign + and negative values correspond to the sign –. The classifier should classify all training examples corrrectly.


Now consider the following plot of data points.

 

12.  Draw a neural network with weight values that classifies all values correctly. You may use the following activation function.

(

                                                                                                                                  1        if z ≥ 1

threshold(z) =

−1 else


              Reinforcement Learning                                                                                                    
Consider the non-deterministic reinforcement environment drawn below. States are represented by circles, and actions by squares. The Probability of a transitions is indicated on the arc from actions to states. Immediate rewards are indicated above and below states. Once the agent reaches the end state the current episode ends.

 

13.  Consider two possible policies: always take action X or always take action Y. For each policy, compute the answers to the following questions.

(a)    What paths could be taken?

(b)   What is each path’s probability?

(c)    What is each path’s reward?

(d)   What is the utility of each state?

              Natural Language Processing                                                                                          
We plan to build a database of which persons were hired at which company from the corpus of news paper articles.

The database table looks like follows:

Name
Position
Company
Joe Johnson
sales representative
IBM
Frida Feldman
lawyer
Microsoft
...
...
...
Consider the following sentences

•   Albert Altman was hired by Apple as a software developer.

•   Booking.com hired Brianna Bayer as an accountant.

•   Comcast hired as their new CEO Catherine Carter.

14.  For each sentence, write a string pattern matching expression that extracts the relevant information (use any pattern matching formalism you like).

15.   Annotate each sentence with dependency relationships with appropriate labels.

16.  Define informally a pattern over dependency structures that allows you to extract the relevant information from all the example sentences for the database table.

17. Hiring information may be expressed in many different ways in natural language. Below is a list of general problems in natural language processing. Give an example sentence that contains relevant hiring information for out database that demonstrates why each of these problems poses a challenge for our simple extraction patterns.

•   Synonymy

•   Hypernymy

•   Co-reference

•   Semantic inference

More products