Question 1
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 1 paper sat on 27 Oct 2024, in the September 2024 term: 21 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 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.
STATE SPACE
Which of these algorithms are complete?
Depth-First Search
Breadth-First Search
Best-First Search
Hill Climbing
Correct answers
Depth-First Search
Breadth-First Search
Best-First Search
STATE SPACE
102/453
130/425
023/145
201/354
Correct answers
130/425
023/145
STATE SPACE
Which of the following is true about the 5-Puzzle state space that is reachable from 123/450?
Every move is reversible.
There is at least one move that is not reversible.
There is a path from every state to every other state.
Every state has at most three neighbours.
Correct answers
Every move is reversible.
There is a path from every state to every other state.
Every state has at most three neighbours.
Based on the above data, answer the given subquestions.
List the first 4 nodes inspected by Depth First Search. List the nodes in the order they were inspected. If the algorithm terminates early then list the nodes inspected up until termination. Enter a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,Z
Correct answer: S,A,B,C
Based on the above data, answer the given subquestions.
What is the path found by Depth First Search?
Enter the path as a comma separated list of node labels.
Enter NIL if there is no path.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,G
Correct answer: S,A,B,C,G
Based on the above data, answer the given subquestions.
List the first 4 nodes inspected by Breadth First Search. List the nodes in the order they were inspected. If the algorithm terminates early then list the nodes inspected up until termination. Enter a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,Z
Correct answer: S,A,D,H
Based on the above data, answer the given subquestions.
What is the path found by Breadth First Search?
Enter the path as a comma separated list of node labels.
Enter NIL if there is no path.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,G
Correct answer: S,H,F,G
Based on the above data, answer the given subquestions.
List the first 4 nodes inspected by Best First Search. List the nodes in the order they were inspected. If the algorithm terminates early then list the nodes inspected up until termination. Enter a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,Z
Correct answer: S,D,E,B
Based on the above data, answer the given subquestions.
What is the path found by Best First Search?
Enter the path as a comma separated list of node labels.
Enter NIL if there is no path.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,G
Correct answer: S,D,E,B,C,G
Based on the above data, answer the given subquestions.
List the first 4 nodes inspected by Hill Climbing. List the nodes in the order they were inspected. If the algorithm terminates early then list the nodes inspected up until termination.
Enter a comma separated list of node labels.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,Z
Correct answer: S,D,E
Based on the above data, answer the given subquestions.
What is the path found by Hill Climbing?
Enter the path as a comma separated list of node labels.
Enter NIL if there is no path.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer Format: S,X,Y,G
Correct answer: NIL
Based on the above data, answer the given subquestions.
Select the valid path representations of the tour.
J,F,K,H,E,L,D,I,M,G
J,F,K,H,E,L,D,I,M,G,J
D,I,M,G,J,F,K,H,E,L
D,I,M,G,J,F,K,H,E,L,D
Correct answers
J,F,K,H,E,L,D,I,M,G
D,I,M,G,J,F,K,H,E,L
Based on the above data, answer the given subquestions.
Select the valid adjacency representations of the tour.
E,L,K,J,M,H,F,D,I,G
I,L,K,J,E,M,F,H,D,G
K,D,J,M,I,L,G,F,E,H
L,H,J,M,K,D,G,F,E,I
Correct answers
I,L,K,J,E,M,F,H,D,G
L,H,J,M,K,D,G,F,E,I
Based on the above data, answer the given subquestions.
Convert the path representation E,J,L,K,F,H,I,M,G,D to ordinal representation.
2,6,7,6,2,4,1,2,2,1
2,6,7,6,2,3,3,3,2,1
7,3,6,4,2,4,1,2,2,1
7,3,6,4,2,3,3,3,2,1
Correct answer
2,6,7,6,2,3,3,3,2,1
Based on the above data, answer the given subquestions.
Two tours in path representation are given below. Generate offspring using Cycle Crossover. Enter one of the child tours in the textbox.
Enter a comma separated list of cities.
DO NOT ENTER SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS.
Correct answer: J,F,L,K,E,H,D,I,M,G or E,J,K,H,F,L,I,M,G,D
TSP
The distance matrix for 5 cities and corresponding edge costs (in ascending order) is provided below. Use this information to construct TSP tours.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 81 | 33 | 98 | 19 |
| B | 81 | - | 50 | 60 | 56 |
| C | 33 | 50 | - | 42 | 25 |
| D | 98 | 60 | 42 | - | 66 |
| E | 19 | 56 | 25 | 66 | - |
| AE | CE | AC | CD | BC |
|---|---|---|---|---|
| 19 | 25 | 33 | 42 | 50 |
| BE | BD | DE | AB | AD |
|---|---|---|---|---|
| 56 | 60 | 66 | 81 | 98 |
Based on the above data, answer the given subquestions.
Start from city B and construct a tour using Nearest Neighbour Heuristic. Enter the path representation of the tour starting from city B. Use the same order in which cities were added to the tour.
Enter a comma separated list of city names.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer format: B,X,Y,Z
Correct answer: B,C,E,A,D
TSP
The distance matrix for 5 cities and corresponding edge costs (in ascending order) is provided below. Use this information to construct TSP tours.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 81 | 33 | 98 | 19 |
| B | 81 | - | 50 | 60 | 56 |
| C | 33 | 50 | - | 42 | 25 |
| D | 98 | 60 | 42 | - | 66 |
| E | 19 | 56 | 25 | 66 | - |
| AE | CE | AC | CD | BC |
|---|---|---|---|---|
| 19 | 25 | 33 | 42 | 50 |
| BE | BD | DE | AB | AD |
|---|---|---|---|---|
| 56 | 60 | 66 | 81 | 98 |
Based on the above data, answer the given subquestions.
What is the cost of the tour generated by Nearest Neighbour Heuristic?
Enter a number.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer format: 17
Correct answer: 252
TSP
The distance matrix for 5 cities and corresponding edge costs (in ascending order) is provided below. Use this information to construct TSP tours.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 81 | 33 | 98 | 19 |
| B | 81 | - | 50 | 60 | 56 |
| C | 33 | 50 | - | 42 | 25 |
| D | 98 | 60 | 42 | - | 66 |
| E | 19 | 56 | 25 | 66 | - |
| AE | CE | AC | CD | BC |
|---|---|---|---|---|
| 19 | 25 | 33 | 42 | 50 |
| BE | BD | DE | AB | AD |
|---|---|---|---|---|
| 56 | 60 | 66 | 81 | 98 |
Based on the above data, answer the given subquestions.
Construct a tour using Greedy Heuristic. Enter the path representation of the tour starting from city B.
Enter a comma separated list of city names.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer format: B,X,Y,Z
Correct answer: B,D,C,E,A or B,A,E,C,D
TSP
The distance matrix for 5 cities and corresponding edge costs (in ascending order) is provided below. Use this information to construct TSP tours.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 81 | 33 | 98 | 19 |
| B | 81 | - | 50 | 60 | 56 |
| C | 33 | 50 | - | 42 | 25 |
| D | 98 | 60 | 42 | - | 66 |
| E | 19 | 56 | 25 | 66 | - |
| AE | CE | AC | CD | BC |
|---|---|---|---|---|
| 19 | 25 | 33 | 42 | 50 |
| BE | BD | DE | AB | AD |
|---|---|---|---|---|
| 56 | 60 | 66 | 81 | 98 |
Based on the above data, answer the given subquestions.
What is the cost of the tour generated by Greedy Heuristic?
Enter a number.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer format: 17
Correct answer: 227
TSP
The distance matrix for 5 cities and corresponding edge costs (in ascending order) is provided below. Use this information to construct TSP tours.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| A | - | 81 | 33 | 98 | 19 |
| B | 81 | - | 50 | 60 | 56 |
| C | 33 | 50 | - | 42 | 25 |
| D | 98 | 60 | 42 | - | 66 |
| E | 19 | 56 | 25 | 66 | - |
| AE | CE | AC | CD | BC |
|---|---|---|---|---|
| 19 | 25 | 33 | 42 | 50 |
| BE | BD | DE | AB | AD |
|---|---|---|---|---|
| 56 | 60 | 66 | 81 | 98 |
Based on the above data, answer the given subquestions.
Take B as the fulcrum node and compute the two missing values in the savings list (full list) given below. Construct the savings tour. Enter the path representation of the tour starting from city B.
Enter a comma separated list of city names.
NO SPACES, TABS, DOTS, BRACKETS, PARENTHESIS OR UNWANTED CHARACTERS.
Answer format: B,X,Y,Z
Correct answer: B,D,C,A,E or B,E,A,C,D