Professional Documents
Culture Documents
AI A Set Ans Key
AI A Set Ans Key
No
B
22UAD301 – ARTIFICIAL INTELLIGENCE TECHNIQUES AND ALGORITHMS
INTERNAL TEST – I
It uses knowledge for the searching It doesn’t use knowledge for the
process. searching process.
It finds solution slow as compared to an
It finds a solution more quickly.
informed search.
Greedy Search
Depth First Search (DFS)
A* Search
Breadth First Search (BFS)
AO* Search
Branch and Bound
Hill Climbing Algorithm
7. Write the pseudocode for calculating MAX value in minimax decision. CO2/K1
A problem is solved when each variable has a value that satisfies all the constraints on
the variable.
A constraint satisfaction problem consists of three components, X, D, and C:
X is a set of variables, {X1,...,Xn}.
D is a set of domains, {D1,...,Dn}, one for each variable.
C is a set of constraints that specify allowable combinations of values.
Each domain Di consists of a set of allowable values, {v1,...,vk} for variable Xi. Each
constraint Ci consists of a pair (scope, rel), where scope is a tuple of variables that
participate in the constraint and rel is a relation that defines the values that those
variables can take on
8. State the usage of alpha-beta pruning. CO2/K1
Local maxima: a local maximum is a peak that is higher than each of its neighboring
states but lower than the global maximum. Hill-climbing algorithms that reach the
vicinity of a local maximum will be drawn upward toward the peak but will then be
stuck with nowhere else to go
Ridges: Ridges result in a sequence of local maxima that is very difficult for greedy
algorithms to navigate.
Plateau: a plateau is a flat area of the state-space landscape. It can be a flat local
SHOULDER maximum, from which no uphill exit exists, or a shoulder, from which
progress is possible. A hill-climbing search might get lost on the plateau.
9. What is knowledge base? CO3/K1
For any sentences α and β, α |= β if and only if the sentence (α ⇒ β) is valid
the deduction theorem states that every valid implication sentence describes a legitimate
inference.
10 List out the connectives used in propositional logic. CO3/K1
. A BNF grammar for simple arithmetic expressions:
Expr → Expr Operator Expr | ( Expr ) | Number
AtomicSentence → True | False | P | Q | R | ...
(Or)
11.b) Consider the water jug problem: You are given 2 jugs, a 4-galloon jug & CO1/K2
3-gallon jug. Neither has any measuring mark on it. There is a pump that
can be used to fill the jugs with water. How can you get 2-galloons of
water from the 4-galloon jug? Explicit Assumptions: A jug can be filled
from the pump, water can be poured out of a jug onto the ground. Water
can be poured from 1 jug to another and that there are no other
measuring devices available. Explain the operator involved in it.
Reg.No
A* search
Check if the OPEN list is empty or not, if the list is empty then return failure
and stops.
Select the node from the OPEN list which has the smallest value of
evaluation function (g+h), if node n is goal node then return success and stop,
otherwise
Expand node n and generate all of its successors, and put n into the closed
list. For each successor n', check whether n' is already in the OPEN or CLOSED list,
if not then compute evaluation function for n' and place into Open list.
Else if node n' is already in OPEN and CLOSED, then it should be attached to
the back pointer which reflects the lowest g(n') value.
Reg.No
Return to Step 2.
Memory bounded heuristic search
(Or)
12.b) i) Explain the solution of map-coloring problem for Australian states & CO2/K2
Territories with 3 colors.
(Or)
13.b) Illustrate resolution algorithm for propositional logic. CO3/K2
Reg.No