Question 1
ASK FOR PRINTED GRAPH SHEETS
8 PAGES TWO-SIDE PRINT
Printed graph sheets were provided to me.
Printed graph sheets were not provided to me.
I did not use graph sheets.

The IIT Madras BS AI: Search Methods for Problem Solving (AI Search Methods) Quiz 2 paper sat on 24 Mar 2024, in the January 2024 term: 26 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.
ASK FOR PRINTED GRAPH SHEETS
8 PAGES TWO-SIDE PRINT
Printed graph sheets were provided to me.
Printed graph sheets were not provided to me.
I did not use graph sheets.
Correct answer
Printed graph sheets were provided to me.
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
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: W,X,Y,Z
Correct answer: A,B,D
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
For the 3 nodes from the 2nd to 4th node refined by A*, list the f-values of those nodes as a comma separated list.
Enter a comma separated list of natural numbers.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 2,7,1,8
Correct answer: 22,24,26
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
For the 3 nodes from the 2nd to 4th node refined by A*, list the parent nodes assigned by A*. Enter a comma separated list of parent node labels.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: W,X,Y,Z
Correct answer: S,A,A
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
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
Correct answer: S,A,B,C,G
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
For w=3, what is the final path found by WA* algorithm?
Enter the path as a comma separated list.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: S,X,Y,Z,G
Correct answer: S,D,E,G
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
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: 17
Correct answer: 28
The figure shows a map with several locations on a grid where each tile is 1x1 in size. The locations are at grid points and are connected by two way edges (roads), where each edge has a cost that is the same in both directions. Observe that the edge costs are not necessarily proportional to the coordinate based distance estimates.
The start node is S and the goal node is G, the MoveGen function returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function.
Tie-breaker: when several nodes have the same best cost, use alphabetical order to break ties.
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the given subquestions.
Is the heuristic admissible in the given map?
Yes
No
Cannot be determined
Correct answer
Yes
The distance matrix for 5 cities are provided below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 80 | 78 | 68 | 50 |
| B | 80 | - | 152 | 78 | 38 |
| C | 78 | 152 | - | 98 | 114 |
| D | 68 | 78 | 98 | - | 44 |
| E | 50 | 38 | 114 | 44 | - |
Solve the sub-questions using the TSP Branch-and-Bound algorithm.
Attention: Infer as much as possible (and as early as possible) about the permanent segments in the partial solutions. A segment is a two-way edge between two cities.
What is the lower bound on the cost of the tours (S0) as per the TSP BnB algorithm discussed in class?
Enter a natural number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 17
Correct answer: 302
The distance matrix for 5 cities are provided below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 80 | 78 | 68 | 50 |
| B | 80 | - | 152 | 78 | 38 |
| C | 78 | 152 | - | 98 | 114 |
| D | 68 | 78 | 98 | - | 44 |
| E | 50 | 38 | 114 | 44 | - |
Solve the sub-questions using the TSP Branch-and-Bound algorithm.
Attention: Infer as much as possible (and as early as possible) about the permanent segments in the partial solutions. A segment is a two-way edge between two cities.
Infer all the permanently included segments in the node (S0,BE,~DE,AE) in the TSP BnB search tree. Enter the total number of permanently included segments in the text box.
Enter a natural number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 17
Correct answer: 3
The distance matrix for 5 cities are provided below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 80 | 78 | 68 | 50 |
| B | 80 | - | 152 | 78 | 38 |
| C | 78 | 152 | - | 98 | 114 |
| D | 68 | 78 | 98 | - | 44 |
| E | 50 | 38 | 114 | 44 | - |
Solve the sub-questions using the TSP Branch-and-Bound algorithm.
Attention: Infer as much as possible (and as early as possible) about the permanent segments in the partial solutions. A segment is a two-way edge between two cities.
Infer all the permanently excluded segments in the node (S0,BE,~DE,AE) in the TSP BnB search tree. Enter the total number of permanently excluded segments in the text box.
Enter a natural number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 17
Correct answer: 3
The distance matrix for 5 cities are provided below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 80 | 78 | 68 | 50 |
| B | 80 | - | 152 | 78 | 38 |
| C | 78 | 152 | - | 98 | 114 |
| D | 68 | 78 | 98 | - | 44 |
| E | 50 | 38 | 114 | 44 | - |
Solve the sub-questions using the TSP Branch-and-Bound algorithm.
Attention: Infer as much as possible (and as early as possible) about the permanent segments in the partial solutions. A segment is a two-way edge between two cities.
How many tours are represented by the node (S0,BE,~DE,AE) in the TSP BnB search tree? Enter a natural number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 17
Correct answer: 2
The distance matrix for 5 cities are provided below.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 80 | 78 | 68 | 50 |
| B | 80 | - | 152 | 78 | 38 |
| C | 78 | 152 | - | 98 | 114 |
| D | 68 | 78 | 98 | - | 44 |
| E | 50 | 38 | 114 | 44 | - |
Solve the sub-questions using the TSP Branch-and-Bound algorithm.
Attention: Infer as much as possible (and as early as possible) about the permanent segments in the partial solutions. A segment is a two-way edge between two cities.
What is the cost of the node (S0,BE,~DE,AE) in the TSP BnB search tree?
Enter a natural number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 173
Correct answer: 332
The figure shows a game tree with evaluations W (win), L (loss) and D (draw) from Max's perspective. The nodes are labeled in a level-by-level (a,b,...,e) left-to-right (1,2,...) manner as indicated in the game tree.
Based on the above data, answer the given subquestions.
What is the outcome (W, D or L) of the game when both players play perfectly?
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: X
Correct answer: W
The figure shows a game tree with evaluations W (win), L (loss) and D (draw) from Max's perspective. The nodes are labeled in a level-by-level (a,b,...,e) left-to-right (1,2,...) manner as indicated in the game tree.
Based on the above data, answer the given subquestions.
Change the value of only one leaf node such that the outcome of the game changes. Which leaf node will you change and what will be its new value? Enter the label of the leaf node and the new value as a comma separated list.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: a1,X
Correct answer: c6,D or d4,D or e3,D or e4,D or c6,L or d4,L or e3,L or e4,L
Based on the above data, answer the given subquestions.
List the horizon 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
Correct answer: A,C
Based on the above data, answer the given subquestions.
List the horizon 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
Correct answer: D,G,H,K,L
Based on the above data, answer the given subquestions.
List the horizon nodes in the initial cluster formed by SSS* 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
Correct answer: A,B,E,F,I,J
Based on the above data, answer the given subquestions.
List the horizon nodes assigned SOLVED status by the SSS* 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
Correct answer: A,B,C,E,F,I,J or A,B,E,F,I,J,C
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
What is the length of the optimal plan? Enter the number of actions in the optimal plan. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 42
Correct answer: 5
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
Which of the following are applicable actions in the start state for the given planning problem?
Pickup(A)
Putdown(A)
Stack(A,B)
Stack(A,C)
Unstack(A,C)
Unstack(A,B)
Correct answers
Putdown(A)
Stack(A,B)
Stack(A,C)
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
Which of the following are relevant actions for the goal description in the given planning problem?
Pickup(B)
Pickup(C)
Putdown(A)
Stack(B,C)
Stack(C,A)
Unstack(C,D)
Correct answers
Stack(B,C)
Stack(C,A)
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
For the subgoal ordering given in the goal description (and using the given tie breaking rules) which of the following can be pushed as the first three elements onto the stack by the Goal Stack Planning algorithm? In the representation below, the bottom of the stack is on the right end, marked by BOTTOM.
{ on(C,A), on(B,C) }; on(C,A); on(B,C); BOTTOM
{ on(C,A), on(B,C) }; on(B,C); on(C,A); BOTTOM
on(B,C); on(C,A); { on(C,A), on(B,C) }; BOTTOM
on(C,A); on(B,C); { on(C,A), on(B,C) }; BOTTOM
Correct answer
on(B,C); on(C,A); { on(C,A), on(B,C) }; BOTTOM
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
For the subgoal ordering given in the goal description (and using the given tie breaking rules), which of the following is the first action popped out of the stack in Goal Stack Planning?
Putdown(A)
Pickup(B)
Stack(B,C)
Stack(A,B)
Unstack(C,D)
Correct answer
Putdown(A)
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
For the subgoal ordering given in the goal description (and using the given tie breaking rules), does the Goal Stack Planning algorithm find an optimal plan?
Yes
No
Cannot be determined
Correct answer
No
The domain description of a blocks-world with a single one-armed robot is provided below. Note: this is the same domain description used in the weekly assignments.
Based on the above data, answer the given subquestions.
If the subgoals in the goal description are swapped places then does the Goal Stack Planning algorithm find an optimal plan?
Yes
No
Cannot be determined
Correct answer
Yes