Question 1
Printed graph sheets were provided on time.
Printed graph sheets were provided late.
Printed graph sheets were not provided.
I used the graph sheets.
I did not use graph sheets.

The IIT Madras BS AI: Search Methods for Problem Solving (AI Search Methods) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term: 25 questions for 25 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Printed graph sheets were provided on time.
Printed graph sheets were provided late.
Printed graph sheets were not provided.
I used the graph sheets.
I did not use graph sheets.
Correct answers
Printed graph sheets were provided on time.
I used the graph sheets.
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
In the map, S is the first node to be refined, determine the next 3 nodes (from the 2nd to 4th node) refined by A*. Enter the nodes in the order they are refined. Enter a comma separated list of node labels. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: X,Y,Z Answers Case Sensitive : No
A written answer, not marked automatically.
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
What is the final path found by A* ? Enter the path as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: S,X,Y,G Answers Case Sensitive : No
A written answer, not marked automatically.
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
For w=2, what is the final path found by WA* ? Enter the path as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: S,X,Y,G Answers Case Sensitive : No
A written answer, not marked automatically.
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
Inscript What is the cost of the path found by Branch-and-Bound algorithm? Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42
A written answer, not marked automatically.
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
For the given map, which algorithms find a path that is also an optimal path?
A*
Branch and Bound
Breadth First Search
Hill Climbing
WA* (w=2)
Correct answers
Branch and Bound
Breadth First Search
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
Is the heuristic admissible?
Yes
No
Correct answer
No
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
A* algorithm calls MoveGen function, then drops neighbours already present in either OPEN or CLOSED, only then adds remaining neighbours to OPEN.
True
False
Correct answer
False
TSP Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Note 1: A segment is a two-way edge between a pair of cities. Note 2: In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
According to the TSP BnB algorithm covered in the lecture, select the first segment XY to refine the root node S0, then compute the lower bound cost of the node (S0, ~XY) that permanently excludes XY. Enter the lower bound cost in the textbox. Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42
A written answer, not marked automatically.
TSP Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Note 1: A segment is a two-way edge between a pair of cities. Note 2: In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
How many tours are represented by the node (S0, BC, AD, BE, ~AB, AF)? Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42
A written answer, not marked automatically.
TSP Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Note 1: A segment is a two-way edge between a pair of cities. Note 2: In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
Infer all the permanently included and permanently excluded segments in the node (S0, BC, AD, BE, ~AB, AF). Enter the total number of permanently included segments followed by the total number of permanently excluded segments as a comma separated list. Enter two natural numbers as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 17,42 Answers Case Sensitive : No
A written answer, not marked automatically.
GAMES
Based on the above data, answer the given subquestions.
What defines the best strategy for the MAX player?
It is a strategy for the MAX player.
It yields the best value for the MAX player.
It admits only perfect play.
It always wins the game for the MAX player.
Correct answers
It is a strategy for the MAX player.
It yields the best value for the MAX player.
It admits only perfect play.
GAMES
Based on the above data, answer the given subquestions.
For the given game tree, list the leaf nodes in the best strategy. Enter the node labels as a comma separated list in ASCENDING order. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: X,Y,Z Answers Case Sensitive : No
A written answer, not marked automatically.
GAMES
Based on the above data, answer the given subquestions.
List the leaf nodes pruned by Alpha-Beta algorithm. Enter the node labels as a comma separated list in ASCENDING order. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: X,Y,Z Answers Case Sensitive : No
A written answer, not marked automatically.
GAMES
Based on the above data, answer the given subquestions.
Solve the game tree using SSS* algorithm. List the leaf nodes (that are not in the initial cluster) that are assigned SOLVED status. Enter the node labels as a comma separated list in ASCENDING order. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: X,Y,Z Answers Case Sensitive : No
A written answer, not marked automatically.
GAMES
Based on the above data, answer the given subquestions.
Alpha value is refined by Alpha-Beta algorithm whenever __________ .
eval(child) <= Alpha
Alpha < eval(child) < Beta
Beta <= eval(child)
Alpha = eval(child) = Beta
Correct answer
Alpha < eval(child) < Beta
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
Which of the following are applicable actions for the given planning problem?
Pickup(E)
Stack(A,B)
Stack(B,C)
Stack(D,E)
Unstack(A,B)
Unstack(D,C)
Correct answers
Pickup(E)
Unstack(A,B)
Unstack(D,C)
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
Which of the following are relevant actions for the given planning problem?
Pickup(E)
Stack(A,B)
Stack(B,C)
Stack(D,E)
Unstack(A,B)
Unstack(D,C)
Correct answers
Stack(A,B)
Stack(B,C)
Stack(D,E)
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
For the given goal description, as per the tie breaking rules, which of the following is the first action popped out of the stack by Goal Stack Planning?
Stack(A,B)
Stack(B,C)
Stack(D,E)
Unstack(A,B)
Unstack(D,C)
Correct answer
Unstack(D,C)
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
For the given goal description, as per the tie breaking rules, Goal Stack Planning will push the goal description (compound goal) to the stack __________ time(s). Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42
A written answer, not marked automatically.
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
While working on a new subgoal, if Goal Stack Planning breaks a previously completed subgoal then it will immediately terminate and report failure.
True
False
Correct answer
False
SEARCH The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. Tie-breaker: Use alphabetical order to break ties.
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
A written answer, not marked automatically.
TSP Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Note 1: A segment is a two-way edge between a pair of cities. Note 2: In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
A written answer, not marked automatically.
GAMES
Based on the above data, answer the given subquestions.
A written answer, not marked automatically.
AUTOMATED PLANNING The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Tie-breaker 1: When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. Tie-breaker 2: Treat the goal description, preconditions and effects as lists that are accessed from left to right. Tie-breaker 3: When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Based on the above data, answer the given subquestions.
A written answer, not marked automatically.