Quiz Space

May 2024 term · AI: Search Methods for Problem Solving · BSCS3003

AI Search Methods End Term: 1 September 2024, Set QDB1 (May 2024 term)

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.

Questions
26
Marks
25
Duration
180 min
MCQ
4
Written
13
MSQ
7
Numerical
2

Updated

Official paper: IIT M DEGREE FN EXAM QDB1 01 Sep 2024 · No negative marking.

Question 1

+0 marksOne correct option

ASK FOR PRINTED GRAPH SHEETS

10 PAGES

DOUBLE-SIDED

  1. A

    Printed graph sheets were provided to me.

  2. B

    Printed graph sheets were not provided to me.

  3. C

    I did not use graph sheets.

Show answer

Correct answer

  • A

    Printed graph sheets were provided to me.

Question 2

+1 markWritten answer

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

Show answer

Correct answer: S,E,D,C,G

Question 3

+1 markWritten answer

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

Show answer

Correct answer: S,F,C,G

Question 4

+1 markWritten answer

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

Show answer

Correct answer: S,F,C,G

Question 5

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    Best First Search

  2. B

    A* Search Algorithm

  3. C

    Branch-and-Bound Search Algorithm

  4. D

    None of these.

Show answer

Correct answers

  • B

    A* Search Algorithm

  • C

    Branch-and-Bound Search Algorithm

Question 6

+1 markOne correct option

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?

  1. A

    Admissible.

  2. B

    Inadmissible.

  3. C

    Partly admissible and partly inadmissible.

  4. D

    Cannot be determined.

Show answer

Correct answer

  • A

    Admissible.

Question 7

+1 markWritten answer

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

Show answer

Correct answer: b1,c2,d1,b2

Question 8

+1 markWritten answer

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

Show answer

Correct answer: d3,244

Question 9

+1 markNumerical answer

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

Show answer

Correct answer: 5

Question 10

+1 markWritten answer

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

Show answer

Correct answer: A,C,B,D,E or A,E,D,B,C

Question 11

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    A,B

  2. B

    A,D,I

  3. C

    D,G,H

  4. D

    C,H,K

Show answer

Correct answers

  • A

    A,B

  • C

    D,G,H

Question 12

+1 markWritten answer

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

Show answer

Correct answer: I,J

Question 13

+1 markWritten answer

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

Show answer

Correct answer: C,E,F,G,H,K

Question 14

+1 markWritten answer

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

Show answer

Correct answer: A,D,I,J

Question 15

+1 markWritten answer

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

Show answer

Correct answer: S,C,A or C,A,B

Question 16

+1 markWritten answer

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

Show answer

Correct answer: 12,28,36 or 28,36,56

Question 17

+1 markNumerical answer

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

Show answer

Correct answer: 56

Question 18

+1 markOne or more correct options

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.

text
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?

Select all that apply.

  1. A

    F1-Car,104,107,109

  2. B

    Luxury-Car,103,106,108

  3. C

    Truck,101,102,105

  4. D

    Truck,101,103,106

Show answer

Correct answers

  • A

    F1-Car,104,107,109

  • B

    Luxury-Car,103,106,108

  • C

    Truck,101,102,105

Question 19

+1 markOne correct option

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.

text
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?

  1. A

    F1-Car,104,107,109

  2. B

    Luxury-Car,103,106,108

  3. C

    Truck,101,102,105

  4. D

    Truck,101,103,106

Show answer

Correct answer

  • C

    Truck,101,102,105

Question 20

+1 markOne correct option

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.

text
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?.

  1. A

    F1-Car,104,107,109

  2. B

    Luxury-Car,103,106,108

  3. C

    Truck,101,102,105

  4. D

    Truck,101,103,106

Show answer

Correct answer

  • A

    F1-Car,104,107,109

Question 21

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    Putdown(D)

  2. B

    Unstack(D,A)

  3. C

    Unstack(E,B)

  4. D

    Pickup(C)

  5. E

    Pickup(A)

  6. F

    Stack(A,B)

  7. G

    Stack(B,C)

Show answer

Correct answers

  • B

    Unstack(D,A)

  • C

    Unstack(E,B)

  • D

    Pickup(C)

Question 22

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    Putdown(D)

  2. B

    Unstack(D,A)

  3. C

    Unstack(E,B)

  4. D

    Pickup(C)

  5. E

    Pickup(A)

  6. F

    Stack(A,B)

  7. G

    Stack(B,C)

Show answer

Correct answers

  • F

    Stack(A,B)

  • G

    Stack(B,C)

Question 23

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    Unstack(D,A), Pickup(C)

  2. B

    Unstack(D,A), Unstack(E,B)

  3. C

    Pickup(C), Stack(A,B)

  4. D

    Pickup(C), Stack(B,C)

Show answer

Correct answers

  • A

    Unstack(D,A), Pickup(C)

  • B

    Unstack(D,A), Unstack(E,B)

Question 24

+1 markOne or more correct options

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?

Select all that apply.

  1. A

    clear(A), holding(E)

  2. B

    clear(A), clear(B)

  3. C

    clear(C), on(D,A)

  4. D

    clear(C), holding(E)

Show answer

Correct answers

  • A

    clear(A), holding(E)

  • B

    clear(A), clear(B)

Question 25

+1 markWritten answer

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.

Show answer

Correct answer: L4,L2,W2,T3 or L6,L6,W1,T3

Question 26

+1 markWritten answer

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.

Show answer

Correct answer: NIL