Question 1
ASK FOR PRINTED GRAPH SHEETS
10 PAGES
DOUBLE-SIDED
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) End Term paper sat on 1 Sept 2024, in the May 2024 term, set QDB1: 26 questions for 25 marks in 180 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
10 PAGES
DOUBLE-SIDED
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.
SEARCH
The figure shows a map on a uniform grid where each tile is 1x1 in size.
The start node is S and the goal node is G.
The MoveGen function returns nodes in alphabetical order.
Use Manhattan Distance as the heuristic function.
Tie-breaker: If several nodes have the same cost, use node labels to break the tie.
Based on the above data, answer the given subquestions.
What is the path found by the Best First Search algorithm? Enter the path as a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: S,X,Y,Z
Correct answer: S,E,D,C,G
SEARCH
The figure shows a map on a uniform grid where each tile is 1x1 in size.
The start node is S and the goal node is G.
The MoveGen function returns nodes in alphabetical order.
Use Manhattan Distance as the heuristic function.
Tie-breaker: If several nodes have the same cost, use node labels to break the tie.
Based on the above data, answer the given subquestions.
What is the path found by A* search algorithm? Enter the path as a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: S,X,Y,Z
Correct answer: S,F,C,G
SEARCH
The figure shows a map on a uniform grid where each tile is 1x1 in size.
The start node is S and the goal node is G.
The MoveGen function returns nodes in alphabetical order.
Use Manhattan Distance as the heuristic function.
Tie-breaker: If several nodes have the same cost, use node labels to break the tie.
Based on the above data, answer the given subquestions.
What is the path found by Branch-and-Bound search algorithm? Enter the path as a comma separated list of node labels.
Use the Branch-and-Bound variation that avoids cyclic expansions like S,A,S,A,S,A,...
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: S,X,Y,Z
Correct answer: S,F,C,G
SEARCH
The figure shows a map on a uniform grid where each tile is 1x1 in size.
The start node is S and the goal node is G.
The MoveGen function returns nodes in alphabetical order.
Use Manhattan Distance as the heuristic function.
Tie-breaker: If several nodes have the same cost, use node labels to break the tie.
Based on the above data, answer the given subquestions.
For the given map, which algorithm finds the shortest path from S to G?
Best First Search
A* Search Algorithm
Branch-and-Bound Search Algorithm
None of these.
Correct answers
A* Search Algorithm
Branch-and-Bound Search Algorithm
SEARCH
The figure shows a map on a uniform grid where each tile is 1x1 in size.
The start node is S and the goal node is G.
The MoveGen function returns nodes in alphabetical order.
Use Manhattan Distance as the heuristic function.
Tie-breaker: If several nodes have the same cost, use node labels to break the tie.
Based on the above data, answer the given subquestions.
What can you say about the heuristic function for the given graph?
Admissible.
Inadmissible.
Partly admissible and partly inadmissible.
Cannot be determined.
Correct answer
Admissible.
TSP Branch-and-Bound
The TSP Branch-and-Bound algorithm is solving a TSP instance where the cities are A, B, C, .... and so on. The Branch-and-Bound search tree at the time when the algorithm has discovered the optimal tour is shown below.
Each node in the search tree displays an edge (either XY or ~XY), a cost value, and a unique reference number (a1, b1, b2, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2). Use the reference numbers to break ties. When required, enter the reference numbers in short answers.
What information can you glean from the search tree? Answer the sub-questions based on the information gleaned from the search tree.
Let S0 (ref. no. a1) be the first node to be refined, identify the next 4 nodes (2nd to 5th node) that are refined by the TSP Branch-and-Bound algorithm. Enter the nodes (node reference numbers) in the order they are refined.
Enter a comma separated list of node reference numbers.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: a9,b9,c9,d9
Correct answer: b1,c2,d1,b2
TSP Branch-and-Bound
The TSP Branch-and-Bound algorithm is solving a TSP instance where the cities are A, B, C, .... and so on. The Branch-and-Bound search tree at the time when the algorithm has discovered the optimal tour is shown below.
Each node in the search tree displays an edge (either XY or ~XY), a cost value, and a unique reference number (a1, b1, b2, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2). Use the reference numbers to break ties. When required, enter the reference numbers in short answers.
What information can you glean from the search tree? Answer the sub-questions based on the information gleaned from the search tree.
Which node represents the optimal tour and what is the cost of the optimal tour? Enter the node reference number and the tour cost in the text box, or enter NIL if it is not possible to determine the optimal tour.
Enter a node reference number followed by tour cost, separated by comma.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: a9,42
Correct answer: d3,244
TSP Branch-and-Bound
The TSP Branch-and-Bound algorithm is solving a TSP instance where the cities are A, B, C, .... and so on. The Branch-and-Bound search tree at the time when the algorithm has discovered the optimal tour is shown below.
Each node in the search tree displays an edge (either XY or ~XY), a cost value, and a unique reference number (a1, b1, b2, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2). Use the reference numbers to break ties. When required, enter the reference numbers in short answers.
What information can you glean from the search tree? Answer the sub-questions based on the information gleaned from the search tree.
Determine the number of cities in the TSP instance. Enter the number of cities in the text box, or enter NIL if it is not possible to determine the number of cities.
Enter an integer.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 42
Correct answer: 5
TSP Branch-and-Bound
The TSP Branch-and-Bound algorithm is solving a TSP instance where the cities are A, B, C, .... and so on. The Branch-and-Bound search tree at the time when the algorithm has discovered the optimal tour is shown below.
Each node in the search tree displays an edge (either XY or ~XY), a cost value, and a unique reference number (a1, b1, b2, c1, c2, c3, c4, d1, d2, d3, d4, e1, e2). Use the reference numbers to break ties. When required, enter the reference numbers in short answers.
What information can you glean from the search tree? Answer the sub-questions based on the information gleaned from the search tree.
Start from city A, what is the path representation of the optimal tour? Enter the path
representation in the text box, or enter NIL if it is not possible to determine the optimal tour. Enter a comma separated list of cities (city labels).
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: A,X,Y
Correct answer: A,C,B,D,E or A,E,D,B,C
GAMES
The figure shows a game tree with evaluation function values at the leaf nodes.
The leaf nodes are labeled from A to K.
Use these labels to enter a leaf node or a list of leaf nodes in short answers (textbox). Tie-breaker: when several nodes carry the same best cost then select the deepest node, if tie persists then select the leftmost of the deepest nodes.
Based on the above data, answer the given subquestions.
Which of the following is a strategy for the MAX player?
A,B
A,D,I
D,G,H
C,H,K
Correct answers
A,B
D,G,H
GAMES
The figure shows a game tree with evaluation function values at the leaf nodes.
The leaf nodes are labeled from A to K.
Use these labels to enter a leaf node or a list of leaf nodes in short answers (textbox). Tie-breaker: when several nodes carry the same best cost then select the deepest node, if tie persists then select the leftmost of the deepest nodes.
Based on the above data, answer the given subquestions.
List the leaf nodes in the best strategy for MAX. Enter the node labels in alphabetical order. Enter a comma separated list of node labels in alphabetical order.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: X,Y,Z
Correct answer: I,J
GAMES
The figure shows a game tree with evaluation function values at the leaf nodes.
The leaf nodes are labeled from A to K.
Use these labels to enter a leaf node or a list of leaf nodes in short answers (textbox). Tie-breaker: when several nodes carry the same best cost then select the deepest node, if tie persists then select the leftmost of the deepest nodes.
Based on the above data, answer the given subquestions.
List the leaf nodes pruned by Alpha-Beta.
Enter a comma separated list of node labels in alphabetical order.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: X,Y,Z
Correct answer: C,E,F,G,H,K
GAMES
The figure shows a game tree with evaluation function values at the leaf nodes.
The leaf nodes are labeled from A to K.
Use these labels to enter a leaf node or a list of leaf nodes in short answers (textbox). Tie-breaker: when several nodes carry the same best cost then select the deepest node, if tie persists then select the leftmost of the deepest nodes.
Based on the above data, answer the given subquestions.
List the leaf nodes solved (assigned SOLVED status) by SSS*.
Enter a comma separated list of node labels in alphabetical order.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: X,Y,Z
Correct answer: A,D,I,J
PROBLEM DECOMPOSITION
The figure shows an AND-OR graph that depicts how a problem S can be decomposed into one or more smaller problems. Nodes are uniquely identified by labels (S, A, B, …).The number in each node is the heuristic estimate of the cost of solving that node.
Nodes shown in double lines are primitive nodes and their values are actual costs. Observe that a primitive node is added to the graph by its parent when the parent is expanded, and the primitive node is labeled as SOLVED and it will not be expanded subsequently.
The cost of each edge is 2 units.
Tie-breaker 1: If several nodes have the same cost then break the tie using node labels. Tie-breaker 2: For AND nodes, select the unsolved branch having the highest cost.
Use AO* algorithm to solve S, then answer the given sub-questions.
List the first three nodes (including S) expanded by AO* algorithm. List the nodes in the order they are expanded. Observe that primitive nodes are not expanded.
Enter a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: X,Y,Z
Correct answer: S,C,A or C,A,B
PROBLEM DECOMPOSITION
The figure shows an AND-OR graph that depicts how a problem S can be decomposed into one or more smaller problems. Nodes are uniquely identified by labels (S, A, B, …).The number in each node is the heuristic estimate of the cost of solving that node.
Nodes shown in double lines are primitive nodes and their values are actual costs. Observe that a primitive node is added to the graph by its parent when the parent is expanded, and the primitive node is labeled as SOLVED and it will not be expanded subsequently.
The cost of each edge is 2 units.
Tie-breaker 1: If several nodes have the same cost then break the tie using node labels. Tie-breaker 2: For AND nodes, select the unsolved branch having the highest cost.
Use AO* algorithm to solve S, then answer the given sub-questions.
Determine the value of the start node S after each node is expanded. What are the values of S after the 1st, 2nd and 3rd nodes are expanded, respectively? Enter the 3 values in the textbox. Enter a comma separated list of numbers.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 12,42,17
Correct answer: 12,28,36 or 28,36,56
PROBLEM DECOMPOSITION
The figure shows an AND-OR graph that depicts how a problem S can be decomposed into one or more smaller problems. Nodes are uniquely identified by labels (S, A, B, …).The number in each node is the heuristic estimate of the cost of solving that node.
Nodes shown in double lines are primitive nodes and their values are actual costs. Observe that a primitive node is added to the graph by its parent when the parent is expanded, and the primitive node is labeled as SOLVED and it will not be expanded subsequently.
The cost of each edge is 2 units.
Tie-breaker 1: If several nodes have the same cost then break the tie using node labels. Tie-breaker 2: For AND nodes, select the unsolved branch having the highest cost.
Use AO* algorithm to solve S, then answer the given sub-questions.
What is the final value of the start node S?
Enter a number.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Answer format: 42
Correct answer: 56
RULE BASED EXPERT SYSTEMS
A Rete Net for classification of machines is shown in the figure. The labels A1, A2, A3, ..., A10, A11, A12, A13, ..., and B1, B2, B3 uniquely identify nodes in the network. When required, use the above label ordering to break ties and to enter short answers.
Run the Rete algorithm for the Working Memory shown below, the WMEs are in timestamp order. Assume that WMEs reside at appropriate Alpha nodes, and the Beta nodes point to WMEs residing in Alpha nodes.
101. (Cargo ^vin A1 ^bed flat)102. (Passenger ^vin A1 ^limit 2)103. (Passenger ^vin B2 ^limit 2)104. (Passenger ^vin C3 ^limit 1)105. (Power ^vin A1 ^hp 400)106. (Power ^vin B2 ^hp 800)107. (Power ^vin C3 ^hp 900)108. (Wheel ^vin B2 ^tyre regular)109. (Wheel ^vin C3 ^tyre slick)For each WME identify its location (node label) in the Rete Net, and prepare the conflict set for the first cycle, then answer the sub-questions.
Which of the following rule-data tuples are in the conflict-set?
F1-Car,104,107,109
Luxury-Car,103,106,108
Truck,101,102,105
Truck,101,103,106
Correct answers
F1-Car,104,107,109
Luxury-Car,103,106,108
Truck,101,102,105
RULE BASED EXPERT SYSTEMS
A Rete Net for classification of machines is shown in the figure. The labels A1, A2, A3, ..., A10, A11, A12, A13, ..., and B1, B2, B3 uniquely identify nodes in the network. When required, use the above label ordering to break ties and to enter short answers.
Run the Rete algorithm for the Working Memory shown below, the WMEs are in timestamp order. Assume that WMEs reside at appropriate Alpha nodes, and the Beta nodes point to WMEs residing in Alpha nodes.
101. (Cargo ^vin A1 ^bed flat)102. (Passenger ^vin A1 ^limit 2)103. (Passenger ^vin B2 ^limit 2)104. (Passenger ^vin C3 ^limit 1)105. (Power ^vin A1 ^hp 400)106. (Power ^vin B2 ^hp 800)107. (Power ^vin C3 ^hp 900)108. (Wheel ^vin B2 ^tyre regular)109. (Wheel ^vin C3 ^tyre slick)For each WME identify its location (node label) in the Rete Net, and prepare the conflict set for the first cycle, then answer the sub-questions.
If the Inference Engine uses Specificity as the conflict resolution strategy then which of the following rule-data tuples will qualify?
F1-Car,104,107,109
Luxury-Car,103,106,108
Truck,101,102,105
Truck,101,103,106
Correct answer
Truck,101,102,105
RULE BASED EXPERT SYSTEMS
A Rete Net for classification of machines is shown in the figure. The labels A1, A2, A3, ..., A10, A11, A12, A13, ..., and B1, B2, B3 uniquely identify nodes in the network. When required, use the above label ordering to break ties and to enter short answers.
Run the Rete algorithm for the Working Memory shown below, the WMEs are in timestamp order. Assume that WMEs reside at appropriate Alpha nodes, and the Beta nodes point to WMEs residing in Alpha nodes.
101. (Cargo ^vin A1 ^bed flat)102. (Passenger ^vin A1 ^limit 2)103. (Passenger ^vin B2 ^limit 2)104. (Passenger ^vin C3 ^limit 1)105. (Power ^vin A1 ^hp 400)106. (Power ^vin B2 ^hp 800)107. (Power ^vin C3 ^hp 900)108. (Wheel ^vin B2 ^tyre regular)109. (Wheel ^vin C3 ^tyre slick)For each WME identify its location (node label) in the Rete Net, and prepare the conflict set for the first cycle, then answer the sub-questions.
If the Inference Engine uses Recency as the conflict resolution strategy then which of the following rule-data tuples will qualify?.
F1-Car,104,107,109
Luxury-Car,103,106,108
Truck,101,102,105
Truck,101,103,106
Correct answer
F1-Car,104,107,109
AUTOMATED PLANNING
The domain description of a Blocks World with a single one-armed robot is given below. This is the same domain used in the assignments.
Based on the above data, answer the given subquestions.
Which of the following are applicable actions in the start state?
Putdown(D)
Unstack(D,A)
Unstack(E,B)
Pickup(C)
Pickup(A)
Stack(A,B)
Stack(B,C)
Correct answers
Unstack(D,A)
Unstack(E,B)
Pickup(C)
AUTOMATED PLANNING
The domain description of a Blocks World with a single one-armed robot is given below. This is the same domain used in the assignments.
Based on the above data, answer the given subquestions.
Which of the following are relevant actions in the goal state?
Putdown(D)
Unstack(D,A)
Unstack(E,B)
Pickup(C)
Pickup(A)
Stack(A,B)
Stack(B,C)
Correct answers
Stack(A,B)
Stack(B,C)
AUTOMATED PLANNING
The domain description of a Blocks World with a single one-armed robot is given below. This is the same domain used in the assignments.
Based on the above data, answer the given subquestions.
In the planning graph, which of the following are mutex action pairs in Layer 1?
Unstack(D,A), Pickup(C)
Unstack(D,A), Unstack(E,B)
Pickup(C), Stack(A,B)
Pickup(C), Stack(B,C)
Correct answers
Unstack(D,A), Pickup(C)
Unstack(D,A), Unstack(E,B)
AUTOMATED PLANNING
The domain description of a Blocks World with a single one-armed robot is given below. This is the same domain used in the assignments.
Based on the above data, answer the given subquestions.
In the planning graph, which of the following are mutex proposition pairs in Layer 1?
clear(A), holding(E)
clear(A), clear(B)
clear(C), on(D,A)
clear(C), holding(E)
Correct answers
clear(A), holding(E)
clear(A), clear(B)
CONSTRAINT SATISFACTION
The set of junctions (L, W, Y and T type junctions) that occur in a 2D line drawing of trihedral objects is provided below. The in-plane clockwise/counterclockwise rotations of these junctions are valid as well. These junctions provide constraints on the possible edge assignments (convex, concave, arrow) for the edges/lines in 2D line drawings of trihedral objects.
The junctions carry unique labels: L1, L2, L3, L4, L5, L6, T1, T2, T3, T4, W1, W2, W3, Y1, Y2,Y3. When required, use the labels in short answers.
Note: A 2D line drawing of trihedral objects is considered to be consistent if all the edges and junctions can be assigned labels that are consistent with each other, otherwise the drawing is considered to be inconsistent and all labels are reset to NIL.
Apply a suitable algorithm to assign consistent labels to edges/junctions in the 2D line drawings in the given sub-questions. Choose a suitable edge and junction order for solving the problems.
Assign consistent labels to all the edges and junctions in the 2D line drawing shown below. Enter the labels of the junctions 1, 2, 3, 4 in the text box, in that order. Enter NIL if the drawing has no consistent label assignment.
Enter a comma separated list of junction labels, or enter NIL.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Correct answer: L4,L2,W2,T3 or L6,L6,W1,T3
CONSTRAINT SATISFACTION
The set of junctions (L, W, Y and T type junctions) that occur in a 2D line drawing of trihedral objects is provided below. The in-plane clockwise/counterclockwise rotations of these junctions are valid as well. These junctions provide constraints on the possible edge assignments (convex, concave, arrow) for the edges/lines in 2D line drawings of trihedral objects.
The junctions carry unique labels: L1, L2, L3, L4, L5, L6, T1, T2, T3, T4, W1, W2, W3, Y1, Y2,Y3. When required, use the labels in short answers.
Note: A 2D line drawing of trihedral objects is considered to be consistent if all the edges and junctions can be assigned labels that are consistent with each other, otherwise the drawing is considered to be inconsistent and all labels are reset to NIL.
Apply a suitable algorithm to assign consistent labels to edges/junctions in the 2D line drawings in the given sub-questions. Choose a suitable edge and junction order for solving the problems.
Assign consistent labels to all the edges and junctions in the 2D line drawing shown below. Enter the labels of the junctions 1, 2, 3, 4 in the text box, in that order. Enter NIL if the drawing has no consistent label assignment.
Enter a comma separated list of junction labels, or enter NIL.
NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Correct answer: NIL