AI Assignment (06.09.2024)
AI Assignment (06.09.2024)
AI Assignment (06.09.2024)
Estd: 1986
SCHEME 2022
SEMESTER V
FACULTY NAME and
Prof. Ajay N, Assistant Professor
DESIGNATION
Module -1
Module -2
Page | 1
SJCIT Assignment
No. LL
Which of the following are true and which are false? Explain your
answers.
a. Depth-first search always expands at least as many nodes as A∗ search
with an admissible heuristic.
b. h(n) = 0 is an admissible heuristic for the 8-puzzle.
c. A∗ is of no use in robotics because percepts, states, and actions are
1 continuous. L3 CO2
d. Breadth-first search is complete even if zero step costs are allowed.
e. Assume that a rook can move on a chessboard any number of squares
in a straight line, vertically or horizontally, but cannot jump over other
pieces. Manhattan distance is an admissible heuristic for the problem of
moving the rook from square A to square B in the smallest number of
moves.
Write a program that will take as input two Web page URLs and find a
2 path of links from one to the other. What is an appropriate search L3 CO2
strategy? Is bidirectional search a good idea? Could a search engine be
used to implement a predecessor function?
3 Prove that if a heuristic is consistent, it must be admissible. Construct an L3 CO2
admissible heuristic that is not consistent.
Show that the 8-puzzle states are divided into two disjoint sets, such that
any state is reachable from any other state in the same set, while no state
4 is reachable from any state in the other set. Devise a procedure to decide L4 CO2
which set a given state is in, and explain why this is useful for generating
random states.
Your goal is to navigate a robot out of a maze. The robot starts in the
center of the maze facing north. You can turn the robot to face north, east,
south, or west. You can direct the robot to move forward a certain
distance, although it will stop before hitting a wall.
a. Formulate this problem. How large is the state space?
b. In navigating a maze, the only place we need to turn is at the
intersection of two or more corridors. Reformulate this problem using this
5 observation. How large is the state space now? L5 CO2
c. From each point in the maze, we can move in any of the four directions
until we reach a turning point, and this is the only action we need to do.
Reformulate the problem using these actions. Do we need to keep track of
the robot’s orientation now?
d. In our initial description of the problem we already abstracted from the
real world, restricting actions and removing details. List three such
simplifications we made.
Module -3
Page | 2
SJCIT Assignment
b. If α |= (β ∧ γ) then α |= β and α |= γ.
c. If α |= (β ∨ γ) then α |= β or α |= γ (or both).
Consider a vocabulary with only four propositions, A, B, C, and D. How
many models are there for the following sentences?
3 a. B ∨ C. L3 CO3
b. ¬A∨¬B ∨¬C ∨ ¬D.
c. (A ⇒ B) ∧ A∧ ¬B ∧ C ∧ D.
Consider the following sentence:
[(Food ⇒ Party) ∨ (Drinks ⇒ Party)] ⇒ [(Food ∧ Drinks) ⇒ Party] .
a. Determine, using enumeration, whether this sentence is valid,
4 satisfiable (but not valid), or unsatisfiable. L4 CO3
b. Convert the left-hand and right-hand sides of the main implication into
CNF, showing each step, and explain how the results confirm your
answer to (a).
c. Prove your answer to (a) using resolution.
5 Write a successor-state axiom for the Locked predicate, which applies to L5 CO3
doors, assuming the only actions available are Lock and Unlock.
Module -4
Page | 3
SJCIT Assignment
Page | 4