Assignment 1
Assignment 1
Assignment 1
(b) Write a context free grammar that can accept the sentence: "Ram hit the ball".
(c) In the following two-ply game tree, the terminal nodes show the utility values computed by the
utility function. Use the Minimax algorithm to compute the utility values for other nodes in the given
game tree.
d) Find whether the following set is unifiable or not. If unifiable, find the most general
unifier(m.g.u.).
w = { PARENTS(x, FATHER(x), MOTHER(bill)) , PARENTS(bill, FATHER(bill), y) }
(f) Write the conceptual graph and FOPL representation for the following sentence:
“Every motorbike has a handle”
(g) Consider that append(L1,L2,L3) is a function in Prolog, in which list L1 is contacted with
L2 and the result is stored in L3. What would be the output of the following statement in Prolog?
?- append([2,3,4],L,[2,3,4,a,b]).
(l) Why should the heuristic function of A* algorithm always underestimate? Give reason.
example.
(n) Prove that if A and B are independent events, P(A|B) = P(A). (Note that A and B are
independent if and only if P(A & B) = P(A)P(B)).
2. (a) Differentiate between partially observable and fully observable task environment of an
agent. Give an example of each.
(b) Create a frame network for terrestrial motor vehicles (cars, trucks, motorcycles) and given one
complete frame in detail for cars which includes the slots for the main component parts, their
attributes, and relations between parts.
(c) Given formula S1 and S2 below, show that Q(a) is a logical consequence of the two.
S1: (∀x)(P(x)→Q(x)) and S2: P(a)
(b) Joint probability P(x1, x2, … , x7) by inspection as a product of chain conditional
probabilities is:
P(x1, x2, … , x7) = P(x7 | x3) . P(x6 | x5) . P(x5 | x2 x3) . P(x4 | x1 x2) . P(x3) . P(x2 | x1) . P(x1)
Draw the Bayesian belief network for the same.
(b) What are alpha and beta cutoffs? How alpha-beta pruning is used to improve the efficiency of
Minimax procedure?
6. (a) Compare and contrast Best-first search and Hill Climbing search. You can use example.
(b) Develop a parse tree for the sentence “The cruel man locked the dog in the house” using the
following rules.
S → NP VP
NP → N
NP → DET N
VP → V NP
VP → V PP
VP → V NP PP
PP → PREP NP
DET → ART ADJ
DET → ART
N → man | dog | house
V → locked
ART → the | a
ADJ → cruel
PREP → in
8. (a) Solve the following crypt arithmetic problem using constraint satisfaction.
ODD
+ ODD
------------
EVEN
(c) Construct the truth table for the expression ( A & (A ∨ B)). What single term is the expression
equal to?
(d) Write the joint distribution of x1, x2, x3, x4, x5 and x6 as a product of chain conditional
probabilities for the following network.
(e) Develop a parse tree for the sentence 'raja slept on the sofa'.
(f) Compare and contrast depth first search and breadth first search?
(g) Transform the following sentence into Conjunctive Normal Form (CNF)
(h) Express the sentences given below into the conceptual dependency structure
(i) Ram drove the car fast
(ii) Rita gave Sita a bunch of flowers
(i) Give properties of Type 1 and Type 2 grammers from Chomsky Hierarchy of grammers.
(j) In the following two-ply game tree, the terminal nodes show the utility values computed by utility
function. Use the Minimax algorithm to compute the utility values for other nodes in the given game
tree.
Q. 10 (a) Describe the water-jug problem. Also give a suitable state space representation for this
problem?
(b) Find the probability of the event A when it is known that some event B already occurred. From
experiments, it has been determined that P(B|A) = 084., P(A) = 0.2 and P(B) = 0.34.
Q12. (a) Determine whether the following sentence is satisfiable, contradictory or valid:
S: (P∨ Q) → (P & Q)
(b) Find whether the following sets are unifiable or not? If they are unifiable, find most general unifier
(m. g. u) otherwise give justification why they are not unifiable.
(i) {S(x, Ram), S(y, Sita)}
Q.13 a) When do we say that the search is admissible? You can take the example of A*.
Q.14 a) What is a Truth Maintenance System (TMS)? Give the architecture of a problem solver with a
TMS in the form of a diagram.
b) Express the following concepts as an associative network structure with interconnected nodes and
labeled arcs. Company ABC is a software deve1opment company. Three departments within the
company are Sales, Administration and Programming. Joe is the manager of programming, Bill and
Sue are the programmers. Sue is married to Sam. Sam is .an editor for the Prentice Hall. They have
three children and they live on Elm Street. Sue wears glasses and five feet four inches tall.
(ii) Show that the predicate supports (book, cup) is true using resolution.
Q16 a) Draw the block diagram of learning agent and explain its working.