Set 2 - Answer Key PDF
Set 2 - Answer Key PDF
Mark
Q. PI
Question Marks BL CO PO
No Code Scored
Part – A ( 10 x 1 = 10 Marks) Instructions: Answer ALL
___________data structure is suitable for implementing Breadth-First Search
1 (BFS) 1 1 2 1 1.6.1
Ans: Queue
Uniform Cost Search uses a data structure called a _________ queue to prioritize
2 the nodes for expansion 1 1 2 1 1.6.1
Ans: Priority
Best First Search is an informed search algorithm that selects the node for
3 expansion based on _________. 1 1 2 1 1.6.1
Ans: heuristic function value
The task environment of an agent is described by ____________
4 Ans: performance measures, sensors, actuators, and environment 1 1 2 1 1.6.1
(OR) PESA
Match the following:
Agents behavior Architecture and Program
Rational agent right thing 2.7.1
5 1 1 3 2
(OR)
(b) Explain the working principle of Breadth First Search (BFS) algorithm.
Provide a step-by-step illustration with the help of a sample graph.
Algorithm (4 Marks)
Example (4 Marks)
1. K=2O=2×2=4K=2O=2×2=4
1. K=2O=2×4=8K=2O=2×4=8
Since neither O=2O=2 nor O=4O=4 work, there's no integer solution that satisfies
all three equations simultaneously.
So that you can not make a unique number to all the letters.
one of the solution : B=1 and R=1
1443
7412
_________
1 5 4 3 1
3. Meta-knowledge:
4. Heuristic knowledge:
5. Structural knowledge:
(OR)
(b) Explain the Wumpus World environment and how knowledge representation is
used to model it. Illustrate your answer with examples.
Answer Key:
Description for Wumpus World environment (PEAS)(4 Marks)
Example (4 Marks)
In alpha-beta pruning, the alpha value represents the best (highest) value that the
maximizing player (AI) has found so far along the path to the root, while the beta
value represents the best (lowest) value that the minimizing player (opponent) has
found so far along the path to the root.
14 16 3 3 2 2.8.1
Since the alpha value at the child node is 4, it means that the maximizing player
(AI) has found a move that leads to a value of at least 4. Since alpha represents the
best value found so far, it is updated to 4 at this child node.
1. If the sibling nodes are maximizing nodes (AI's moves), then the AI
would be interested in finding moves that improve its position further.
Since the alpha value at the current node is 4, and it represents the best
value found so far for the maximizing player, any sibling node with a
beta value less than or equal to 4 (i.e., worse than the current best move)
can be pruned. This is because the opponent would not choose a move
that leads to a worse outcome for the AI than it has already found.
2. If the sibling nodes are minimizing nodes (opponent's moves), then the
opponent would be trying to minimize the AI's score. Since the beta
value at the parent node is 5, representing the best value that the
opponent has found so far, any sibling node with an alpha value greater
than or equal to 5 (i.e., better for the AI than the best move found so far
by the opponent) can be pruned. This is because the opponent would not
choose a move that leads to a better outcome for the AI than it has
already found.
You are developing an AI system to find the shortest path for a delivery robot
navigating through a city grid given below with varying terrain costs. Describe
how you would implement the A* Search algorithm for this scenario, considering
factors such as heuristic functions, node expansion, and path cost evaluation.
15 16 3 2 2 2.8.1
Total (50)
Course Outcome (CO) and Bloom’s level (BL) Coverage in Questions
Approved by the
Course Coordinator Audit Professor