MauryaHub PYQ Practice

AI: Search Methods for Problem Solving · Quiz 2 · Jan 2025

AI: Search Methods for Problem Solving · Quiz 2 · Jan 2025

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 27 published solutions

Question 61 MCQ · 5.0 marks

Identify the set of test paths that provide edge-pair coverage?
6406533952543.
{[1,3,4,3,4,3,5]}
6406533952544.
{[1,2,5], [1,3,4,3,4,3,5]}
6406533952545.
{[1,2,5], [1,3,5], [1,3,4,3,4,3,5]}
6406533952546.
{[1,2,5], [1,3,5], [1,3,4,3,5]}

A published solution is not available for this question yet.

Report a correction for Q61

Question 62 MCQ · 5.0 marks

What is the cyclomatic complexity of the given CFG?
6406533952547.
3
6406533952548.
4
6406533952549.
5
6406533952550.
6       **AI** **Section Id :** 64065382583 **Section Number :** 4 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 7 **Number of Questions to be attempted :** 7 **Section Marks :** 24 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q62

Question 64 MSQ · 0.0 marks

Source diagram or notation
6406533952553.
Printed graph sheets were provided on time.
6406533952554.
Printed graph sheets were provided late.
6406533952555.
Printed graph sheets were not provided.
6406533952556.
I used the graph sheets.
6406533952557.
I did not use graph sheets.

A published solution is not available for this question yet.

Report a correction for Q64

Question 65 SHORT_TEXT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the 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: X,Y,Z

A published solution is not available for this question yet.

Report a correction for Q65

Question 66 SHORT_TEXT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the 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

A published solution is not available for this question yet.

Report a correction for Q66

Question 67 SHORT_TEXT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the 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: X,Y,Z

A published solution is not available for this question yet.

Report a correction for Q67

Question 68 SHORT_TEXT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the 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

A published solution is not available for this question yet.

Report a correction for Q68

Question 69 SHORT_TEXT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the subquestions.
For w=2, 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,G

A published solution is not available for this question yet.

Report a correction for Q69

Question 70 NAT · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the 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: 42

A published solution is not available for this question yet.

Report a correction for Q70

Question 71 MCQ · 1.0 marks

**SEARCH** 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.
Source diagram or notation
Emulate A*, WA* and Branch-and-Bound on the given map, then answer the subquestions.
Is the heuristic admissible in the given map?
6406533952564.
Yes
6406533952565.
No
6406533952566.
Cannot be determined

A published solution is not available for this question yet.

Report a correction for Q71

Question 72 NAT · 1.0 marks

**TSP** The distance matrix for 6 cities are provided below. For each city the distances to other cities are listed in ascending order. For example, the distance from A to D is 38, and from A to E is 46, and so on.
Source diagram or notation
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

A published solution is not available for this question yet.

Report a correction for Q72

Question 73 NAT · 1.0 marks

**TSP** The distance matrix for 6 cities are provided below. For each city the distances to other cities are listed in ascending order. For example, the distance from A to D is 38, and from A to E is 46, and so on.
Source diagram or notation
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,CF,EF,~DE) 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

A published solution is not available for this question yet.

Report a correction for Q73

Question 74 NAT · 1.0 marks

**TSP** The distance matrix for 6 cities are provided below. For each city the distances to other cities are listed in ascending order. For example, the distance from A to D is 38, and from A to E is 46, and so on.
Source diagram or notation
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,CF,EF,~DE) 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

A published solution is not available for this question yet.

Report a correction for Q74

Question 75 NAT · 1.0 marks

**TSP** The distance matrix for 6 cities are provided below. For each city the distances to other cities are listed in ascending order. For example, the distance from A to D is 38, and from A to E is 46, and so on.
Source diagram or notation
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,CF,EF,~DE) in the TSP BnB search tree? Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 17

A published solution is not available for this question yet.

Report a correction for Q75

Question 76 NAT · 1.0 marks

**TSP** The distance matrix for 6 cities are provided below. For each city the distances to other cities are listed in ascending order. For example, the distance from A to D is 38, and from A to E is 46, and so on.
Source diagram or notation
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,CF,EF,~DE) in the TSP BnB search tree? Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 17

A published solution is not available for this question yet.

Report a correction for Q76

Question 77 SHORT_TEXT · 1.0 marks

**GAMES** The figure shows a game tree with evaluations W (win), D (draw) and L (loss) from Max's perspective. The horizon nodes carry evals (W/D/L) and node labels a1, b1, b2, b3, c1, ..., c8, d1, ..., d10, e1, ..., e8.
Source diagram or notation
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

A published solution is not available for this question yet.

Report a correction for Q77

Question 78 SHORT_TEXT · 1.0 marks

**GAMES** The figure shows a game tree with evaluations W (win), D (draw) and L (loss) from Max's perspective. The horizon nodes carry evals (W/D/L) and node labels a1, b1, b2, b3, c1, ..., c8, d1, ..., d10, e1, ..., e8.
Source diagram or notation
Based on the above data, answer the given subquestions.
Change the value of only one horizon node such that the outcome of the game changes. Which horizon node will you change and what will be its new value? Enter the label of the horizon node and its new value as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: c9,X

A published solution is not available for this question yet.

Report a correction for Q78

Question 79 SHORT_TEXT · 1.0 marks

**GAMES: ALGORITHMS** The figure shows a game tree with evaluations at the horizon from Max's perspective. The horizon nodes carry evals (numbers) and node labels (A to P).
Source diagram or notation
Based on the above data, answer the given subquestions.
List the horizon nodes in the best strategy. Enter the node labels. 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

A published solution is not available for this question yet.

Report a correction for Q79

Question 80 SHORT_TEXT · 1.0 marks

**GAMES: ALGORITHMS** The figure shows a game tree with evaluations at the horizon from Max's perspective. The horizon nodes carry evals (numbers) and node labels (A to P).
Source diagram or notation
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

A published solution is not available for this question yet.

Report a correction for Q80

Question 81 SHORT_TEXT · 1.0 marks

**GAMES: ALGORITHMS** The figure shows a game tree with evaluations at the horizon from Max's perspective. The horizon nodes carry evals (numbers) and node labels (A to P).
Source diagram or notation
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

A published solution is not available for this question yet.

Report a correction for Q81

Question 82 SHORT_TEXT · 1.0 marks

**GAMES: ALGORITHMS** The figure shows a game tree with evaluations at the horizon from Max's perspective. The horizon nodes carry evals (numbers) and node labels (A to P).
Source diagram or notation
Based on the above data, answer the given subquestions.
List the horizon nodes (other than the initial cluster) that are 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

A published solution is not available for this question yet.

Report a correction for Q82

Question 83 NAT · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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

A published solution is not available for this question yet.

Report a correction for Q83

Question 84 MSQ · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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?
6406533952579.
Pickup(C)
6406533952580.
Pickup(G)
6406533952581.
Stack(A,G)
6406533952582.
Stack(G,E)
6406533952583.
Unstack(C,A)
6406533952584.
Unstack(E,B)

A published solution is not available for this question yet.

Report a correction for Q84

Question 85 MSQ · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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?
6406533952585.
Pickup(C)
6406533952586.
Pickup(G)
6406533952587.
Stack(A,G)
6406533952588.
Stack(G,E)
6406533952589.
Unstack(C,A)
6406533952590.
Unstack(E,B)

A published solution is not available for this question yet.

Report a correction for Q85

Question 86 MCQ · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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 four 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.
6406533952591.
on(A,G); on(G,E); { on(A,G), on(G,E) }; BOTTOM
6406533952592.
on(G,E); on(A,G); { on(A,G), on(G,E) }; BOTTOM
6406533952593.
{ on(A,G), on(G,E) }; on(A,G); on(G,E); BOTTOM
6406533952594.
{ on(A,G), on(G,E) }; on(G,E); on(A,G); BOTTOM

A published solution is not available for this question yet.

Report a correction for Q86

Question 87 MCQ · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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 goal popped out of the stack in Goal Stack Planning?
6406533952595.
on(A,G)
6406533952596.
on(G,E)
6406533952597.
holding(G)
6406533952598.
clear(E)

A published solution is not available for this question yet.

Report a correction for Q87

Question 88 MCQ · 1.0 marks

**AUTOMATED PLANNING** 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.
Source diagram or notation
**Tie-breaker:** When actions are chosen non-deterministically, choose actions that lead to a plan. Throw away the actions that lead to deadends and cycles. **Tie-breaker:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. When the elements in a list are pushed one by one to a stack, the last element in the list will be at the top of the stack. It has the effect of reversing the list. A planning problem is given below, find a plan using the operators and predicates defined in the blocks-world domain.
Source diagram or notation
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?
6406533952599.
Pickup(C)
6406533952600.
Pickup(G)
6406533952601.
Stack(A,G)
6406533952602.
Stack(G,E)
6406533952603.
Unstack(C,A)
6406533952604.
Unstack(E,B)       **Deep Learning** **Section Id :** 64065382584 **Section Number :** 5 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 11 **Number of Questions to be attempted :** 11 **Section Marks :** 40 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q88