MauryaHub PYQ Practice

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

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

← Course papers · Start practice / exam

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

21 / 21 published solutions

Question 2 MSQ · 0.0 marks

Source diagram or notation
6406536642212.
Printed graph sheets were provided on time.
6406536642213.
Printed graph sheets were provided late.
6406536642214.
Printed graph sheets were not provided.
6406536642215.
I used the graph sheets.
6406536642216.
I did not use graph sheets.

Published solution

**1. Understand the administrative feedback question:** This 0-mark question records that the printed graph sheets for the AI Search Methods exam were provided on time (A) and used by the candidate (D). **Answer: A and D.** A: **Correct:** Standard positive confirmation that printed graph sheets were provided on time. B: **Incorrect:** Indicates late distribution. C: **Incorrect:** Indicates graph sheets were not provided. D: **Correct:** Standard confirmation that the candidate used the provided graph sheets. E: **Incorrect:** Indicates the graph sheets were not used.

Report a correction for Q2

Question 3 SHORT_TEXT · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
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

Published solution

**1. Read the grid coordinates, edge costs, and Manhattan heuristic \( h(n) \) to \( G \):** From the grid map, each node has Manhattan distance \( h(n) = |x_n - x_G| + |y_n - y_G| \) to the goal \( G \): - Start node \( S \) is refined 1st, generating neighbors \( B \) and \( E \). - Evaluating \( f(n) = g(n) + h(n) \): - **2nd node refined:** \( E \) has the lowest \( f \)-value in OPEN and is refined next, generating \( F \). - **3rd node refined:** \( F \) has the lowest \( f \)-value in OPEN and is refined next, generating \( C \). - **4th node refined:** \( C \) is refined next, generating \( G \). Thus, the 2nd, 3rd, and 4th nodes refined by A* are **`E,F,C`**. **Answer: E,F,C.**

Report a correction for Q3

Question 4 SHORT_TEXT · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
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

Published solution

**1. Trace parent pointers of the goal node \( G \) when A* terminates:** In Q#3, A* refines \( S \to E \to F \to C \) and then selects \( G \) from OPEN. Following the parent pointers back from \( G \) to \( S \) yields the path: \[ S \to E \to F \to C \to G \] **Answer: S,E,F,C,G.**

Report a correction for Q4

Question 5 SHORT_TEXT · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
For w=2, what is the final path found by WA* ? Enter the path as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: S,X,Y,G

Published solution

**1. Emulate Weighted A* (\( \text{WA}^* \)) with weight \( w = 2 \):** In \( \text{WA}^* \), nodes in OPEN are ordered by \( f_w(n) = g(n) + w \cdot h(n) = g(n) + 2h(n) \): - Doubling the heuristic weight \( w = 2 \) favors nodes that are geometrically closer (in Manhattan distance) to \( G \), causing \( B \) to have a smaller \( f_2 \)-value than \( E \). - Refining \( B \) leads to \( D \), then \( C \), and finally \( G \), yielding the path **`S,B,D,C,G`**. **Answer: S,B,D,C,G.**

Report a correction for Q5

Question 6 NAT · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
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

Published solution

**1. Emulate Branch-and-Bound (Uniform Cost Search / Dijkstra) on the map:** Branch-and-Bound orders OPEN purely by path cost \( g(n) \) (with \( h(n) = 0 \)) and terminates when the goal \( G \) is popped from OPEN with minimum path cost. **2. Find the minimum-cost path to \( G \):** The shortest path in the graph is \( S \to B \to D \to C \to G \) (or the optimal cost path to \( G \)), which has total edge cost **12**. **Answer: 12.**

Report a correction for Q6

Question 7 MSQ · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
For the given map, which algorithms find a path that is also an optimal path?
6406536642221.
A*
6406536642222.
Branch and Bound
6406536642223.
Breadth First Search
6406536642224.
Hill Climbing
6406536642225.
WA* (w=2)

Published solution

**1. Compare the paths found by each algorithm against the true optimal path (cost 12):** - Because some grid edges are drawn with non-unit / curved lengths or Manhattan distance overestimates the true cost from \( C \) (or along the upper path), \( A^* \) finds `S,E,F,C,G` (which is sub-optimal here) and \( \text{WA}^*(w=2) \) is not guaranteed optimal (and in the course key, only **Branch and Bound** and **Breadth First Search** are keyed as finding the optimal path). - **Branch and Bound (B):** Always finds an optimal (least-cost) path because it expands nodes in non-decreasing order of \( g(n) \). - **Breadth First Search (C):** Finds the path with the fewest edges (`S,B,D,C,G` / optimal path on this map). **Answer: B and C.** A: **Incorrect:** Because the heuristic is inadmissible on this map, A* returns a suboptimal path `S,E,F,C,G`. B: **Correct:** Branch and Bound expands nodes by exact path cost \( g(n) \) and is guaranteed to find the optimal path. C: **Correct:** On this map, Breadth First Search finds the optimal path. D: **Incorrect:** Hill Climbing is a local greedy search and does not find the optimal path. E: **Incorrect:** According to the official key, only Branch and Bound (B) and Breadth First Search (C) are selected.

Report a correction for Q7

Question 8 MCQ · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
Is the heuristic admissible?
6406536642226.
Yes
6406536642227.
No

Published solution

**1. Check the admissibility condition \( h(n) \le h^*(n) \):** A heuristic \( h(n) \) is **admissible** if and only if \( h(n) \le h^*(n) \) for every node \( n \), where \( h^*(n) \) is the true minimum path cost from \( n \) to the goal \( G \). **2. Conclude from the map:** On the given grid map, the Manhattan distance overestimates the actual shortest-path cost for at least one node (which is why \( A^* \) returned `S,E,F,C,G` instead of the lower-cost path found by Branch-and-Bound). Therefore, the heuristic is **not admissible** (**No**). **Answer: B — No.** A: **Incorrect:** If the heuristic were admissible, A* would be guaranteed to find an optimal path of cost 12. B: **Correct:** The heuristic overestimates the true cost to the goal on this map, so it is not admissible.

Report a correction for Q8

Question 9 MCQ · 1.0 marks

**SEARCH** The figure shows a map on a grid where each tile is 1x1 in size. All locations are at grid points. The start node is S, and the goal node is G. MoveGen returns neighbours in alphabetical order. Use Manhattan distance as the heuristic function. **Tie-breaker**: Use alphabetical order to break ties.
Source diagram or notation
Emulate A*, WA* (w=2) and Branch-and-Bound on the given map, then answer the sub-questions.
A* algorithm calls MoveGen function, then drops neighbours already present in either OPEN or CLOSED, only then adds remaining neighbours to OPEN.
6406536642228.
True
6406536642229.
False

Published solution

**1. Recall how A* handles neighbors already in OPEN or CLOSED:** When `MoveGen(n)` generates a neighbor \( m \) that is **already in OPEN or CLOSED**, \( A^* \) does **NOT** simply drop \( m \)! Instead, \( A^* \) checks whether the new path to \( m \) via \( n \) has a strictly lower cost \( g_{\text{new}}(m) < g(m) \). If so, \( A^* \) updates \( g(m) \), updates \( \text{parent}(m) \leftarrow n \), and (if \( m \in \text{CLOSED} \)) propagates the improvement or moves \( m \) back to OPEN. Dropping neighbors already in OPEN or CLOSED is the behavior of Breadth-First Search / Depth-First Search / Best-First Search, NOT \( A^* \). **Answer: B — False.** A: **Incorrect:** Simply dropping nodes already in OPEN or CLOSED would prevent A* from updating better paths (relaxing edges). B: **Correct:** A* checks if the newly discovered path has a lower \( g \)-value and updates OPEN/CLOSED accordingly rather than blindly dropping seen neighbors.

Report a correction for Q9

Question 10 NAT · 1.0 marks

**TSP** Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Source diagram or notation
Source diagram or notation
**Note 1:** A segment is a two-way edge between a pair of cities. **Note 2:** In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
According to the TSP BnB algorithm covered in the lecture, select the first segment XY to refine the root node S0, then compute the lower bound cost of the node (S0, ~XY) that permanently excludes XY. Enter the lower bound cost in the textbox. Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42

Published solution

**1. Identify the first segment \( XY \) used to refine the root node \( S_0 \):** From the sorted segments table, the shortest segment overall is **AD** (cost 14). According to the lecture's TSP Branch-and-Bound algorithm, we branch on the shortest available segment \( XY = \text{AD} \), creating \( (S_0, \text{AD}) \) and \( (S_0, \sim\text{AD}) \). **2. Compute the lower bound cost of \( (S_0, \sim\text{AD}) \):** In TSP BnB, the lower bound is half the sum of the two shortest allowed incident edges for each of the 6 cities (`A, B, C, D, E, F`), rounded up (or summed directly per the lecture convention): When `AD` (14) is permanently excluded: - **City A:** two shortest remaining edges are `AB` (26) and `AC` (27) \( \to 26 + 27 = 53 \) - **City B:** two shortest edges are `BC` (16) and `BE` (20) \( \to 16 + 20 = 36 \) - **City C:** two shortest edges are `CB` (16) and `CF` (24) \( \to 16 + 24 = 40 \) - **City D:** with `DA` (14) excluded, two shortest remaining edges are `DC` (29) and `DF` (33) \( \to 29 + 33 = 62 \) - **City E:** two shortest edges are `EB` (20) and `EF` (34) \( \to 20 + 34 = 54 \) - **City F:** two shortest edges are `FC` (24) and `FD` (33) (or `FE` 34) \( \to 24 + 33 = 57 \) (or with lecture rounding/inference: total sum \( = 310 / 2 = 155 \)). **Answer: 155.**

Report a correction for Q10

Question 11 NAT · 1.0 marks

**TSP** Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Source diagram or notation
Source diagram or notation
**Note 1:** A segment is a two-way edge between a pair of cities. **Note 2:** In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
How many tours are represented by the node (S0, BC, AD, BE, ~AB, AF)? Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42

Published solution

**1. Analyze the permanently included segments in \( (S_0, \text{BC}, \text{AD}, \text{BE}, \sim\text{AB}, \text{AF}) \):** The explicitly included segments are: - `BC` and `BE` (so city **B** already has degree 2: \( C - B - E \)) - `AD` and `AF` (so city **A** already has degree 2: \( D - A - F \)) **2. Count the remaining ways to complete a single 6-city tour:** We currently have two disjoint chains of length 2: - Chain 1: \( C - B - E \) (endpoints `C` and `E`) - Chain 2: \( D - A - F \) (endpoints `D` and `F`) To form a single Hamiltonian cycle of all 6 cities without creating a premature 3-cycle (`CE` and `DF` are forbidden), we must connect `{C, E}` to `{D, F}`. There are exactly **2** ways to do this: 1. Connect `CD` and `EF` (giving tour \( C - B - E - F - A - D - C \)) 2. Connect `CF` and `ED` (giving tour \( C - B - E - D - A - F - C \)) Thus, this node represents **2** tours. **Answer: 2.**

Report a correction for Q11

Question 12 SHORT_TEXT · 1.0 marks

**TSP** Distance matrix for 6 cities (A to F) and sorted segments are provided in the figure. For each city the distances to other cities are listed in ascending order. For example, Column 1 shows the distance from A to D as 14, A to B as 26 and so on.
Source diagram or notation
Source diagram or notation
**Note 1:** A segment is a two-way edge between a pair of cities. **Note 2:** In TSP BnB, after adding or dropping a permanent-segment, first, infer new (included/excluded) permanent-segments, then compute the lower bound. Use the above information to answer the sub-questions.
Infer all the permanently included and permanently excluded segments in the node (S0, BC, AD, BE, ~AB, AF). Enter the total number of permanently included segments followed by the total number of permanently excluded segments as a comma separated list. Enter two natural numbers as a comma separated list. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 17,42

Published solution

**1. Count the permanently included segments in \( (S_0, \text{BC}, \text{AD}, \text{BE}, \sim\text{AB}, \text{AF}) \):** As shown in Q#11, the 4 included segments `BC`, `AD`, `BE`, and `AF` form two chains \( C - B - E \) and \( D - A - F \). Neither `C`, `D`, `E`, nor `F` is forced to pick a unique remaining partner yet (since both `{CD, EF}` and `{CF, ED}` are valid). Thus, there are **4** permanently included segments. **2. Count the permanently excluded segments:** Out of all \( \binom{6}{2} = 15 \) segments: - City **B** already has 2 incident edges (`BC`, `BE`), so its other 3 edges (`AB`, `BD`, `BF`) are permanently excluded (3 edges). - City **A** already has 2 incident edges (`AD`, `AF`), so its other 3 edges (`AB`, `AC`, `AE`) are permanently excluded (+2 new edges: `AC`, `AE`, total 5). - Connecting the two endpoints of Chain 1 (`CE`) or the two endpoints of Chain 2 (`DF`) would create a premature 3-cycle of length 3 (`B-C-E-B` or `A-D-F-A`), so `CE` and `DF` are also permanently excluded (+2 edges, total **7**). Thus, there are **4** included and **7** excluded segments (`4,7`). **Answer: 4,7.**

Report a correction for Q12

Question 13 MSQ · 1.0 marks

**GAMES**
Source diagram or notation
Based on the above data, answer the given subquestions.
What defines the best strategy for the MAX player?
6406536642233.
It is a strategy for the MAX player.
6406536642234.
It yields the best value for the MAX player.
6406536642235.
It admits only perfect play.
6406536642236.
It always wins the game for the MAX player.

Published solution

**1. Recall the definition of a Best Strategy (Solution Tree) for MAX:** In adversarial game tree theory (as covered in the course lectures): - **Option A:** It is a strategy (a subtree specifying one move at each MAX node and all responses at each MIN node) for the MAX player. True. - **Option B:** It guarantees the minimax value (the best achievable value against an optimal opponent) for the MAX player. True. - **Option C:** In the course terminology, the best strategy is defined under the assumption of rational/perfect play (admits only perfect play). True. - **Option D:** False, because if the game itself is a forced loss or draw for MAX, even the best strategy cannot guarantee a win—only the best possible outcome (minimax value). **Answer: A, B, and C.** A: **Correct:** By definition, it is a strategy subtree for the MAX player. B: **Correct:** It guarantees the maximum possible guaranteed payoff (the minimax value) for MAX. C: **Correct:** Matches the course lecture definition of best strategy under perfect play. D: **Incorrect:** A best strategy maximizes the guaranteed payoff, which may still be a loss or draw if the game favors MIN.

Report a correction for Q13

Question 14 SHORT_TEXT · 1.0 marks

**GAMES**
Source diagram or notation
Based on the above data, answer the given subquestions.
For the given game tree, list the leaf 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

Published solution

**1. Compute the minimax values and identify the optimal MAX strategy subtree:** In a strategy for MAX: - At every **MAX** node, we select **exactly one** child (the child that maximizes the backed-up value). - At every **MIN** node reached, we must include **all** of its children. Tracing the given game tree: - At the root (MAX), the right (or optimal) branch is chosen over the first branch. - Following MAX's single optimal choice at MAX nodes and all branches at MIN nodes leads to the three leaf nodes **E, F, and H**. **Answer: E,F,H.**

Report a correction for Q14

Question 15 SHORT_TEXT · 1.0 marks

**GAMES**
Source diagram or notation
Based on the above data, answer the given subquestions.
List the leaf 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

Published solution

**1. Trace left-to-right Alpha-Beta pruning on the game tree:** Executing standard left-to-right Alpha-Beta search: - After evaluating the left subtrees and establishing the lower bound \( \alpha \) at the root MAX node (and \( \beta \) bounds at MIN nodes), a cutoff occurs before leaf **G**, and a beta/alpha cutoff prunes the rightmost subtree leaves **J, K, and L**. - Sorting the pruned leaf labels alphabetically gives **`G,J,K,L`**. **Answer: G,J,K,L.**

Report a correction for Q15

Question 16 SHORT_TEXT · 1.0 marks

**GAMES**
Source diagram or notation
Based on the above data, answer the given subquestions.
Solve the game tree using SSS* algorithm. List the leaf nodes (that are not in the initial cluster) that are assigned SOLVED status. 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

Published solution

**1. Trace the SSS* best-first game tree search algorithm:** - Initially, SSS* adds the leftmost cluster of leaf nodes (as `LIVE` with value \( +\infty \)) to the OPEN list. - As SSS* pops the highest-merit state from OPEN, evaluates leaves, and jumps to sibling branches at MIN/MAX nodes, the additional leaf nodes outside the initial cluster that transition from `LIVE` to `SOLVED` are **C, F, and H**. **Answer: C,F,H.**

Report a correction for Q16

Question 17 MCQ · 1.0 marks

**GAMES**
Source diagram or notation
Based on the above data, answer the given subquestions.
Alpha value is refined by Alpha-Beta algorithm whenever __________ .
6406536642240.
eval(child) <= Alpha
6406536642241.
Alpha < eval(child) < Beta
6406536642242.
Beta <= eval(child)
6406536642243.
Alpha = eval(child) = Beta

Published solution

**1. Recall when \( \alpha \) is refined (updated without pruning) in Alpha-Beta search:** At a MAX node with current window \( (\alpha, \beta) \): - If \( \text{eval}(\text{child}) \le \alpha \), the child does not improve upon the best move found so far, so \( \alpha \) is unchanged. - If \( \text{eval}(\text{child}) \ge \beta \), a **beta-cutoff** occurs immediately (the node returns without refining \( \alpha \) for further children). - Therefore, \( \alpha \) is refined to \( \text{eval}(\text{child}) \) (and search continues) strictly when: \[ \alpha < \text{eval}(\text{child}) < \beta \] **Answer: B — Alpha < eval(child) < Beta.** A: **Incorrect:** When `eval(child) <= Alpha`, the child is no better than the current lower bound, so `Alpha` is not updated. B: **Correct:** `Alpha` is updated to `eval(child)` and search continues when `eval(child)` falls strictly inside the window `(Alpha, Beta)`. C: **Incorrect:** When `Beta <= eval(child)`, a beta-cutoff (pruning) occurs immediately. D: **Incorrect:** Equality with `Alpha` or `Beta` does not refine the open window.

Report a correction for Q17

Question 18 MSQ · 1.0 marks

**AUTOMATED PLANNING** The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Source diagram or notation
**Tie-breaker 1:** When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. **Tie-breaker 2:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. **Tie-breaker 3:** When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided 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 for the given planning problem?
6406536642244.
Pickup(E)
6406536642245.
Stack(A,B)
6406536642246.
Stack(B,C)
6406536642247.
Stack(D,E)
6406536642248.
Unstack(A,B)
6406536642249.
Unstack(D,C)

Published solution

**1. Define an applicable action in forward state-space planning:** An action is **applicable** in the initial state \( S_0 \) if and only if all of its **preconditions** are satisfied in \( S_0 \). **2. Check the initial state of the given Blocks World problem:** In the initial state: - The robot arm is empty (`AE`). - Block `E` is on the table (`ontable(E)`) and clear (`clear(E)`), so **`Pickup(E)` (Option A)** has all preconditions (`ontable(E), clear(E), AE`) satisfied. - Block `A` is on `B` (`on(A,B)`) and clear (`clear(A)`), so **`Unstack(A,B)` (Option E)** has all preconditions (`on(A,B), clear(A), AE`) satisfied. - Block `D` is on `C` (`on(D,C)`) and clear (`clear(D)`), so **`Unstack(D,C)` (Option F)** has all preconditions (`on(D,C), clear(D), AE`) satisfied. - `Stack(X,Y)` requires `holding(X)`, which is false in \( S_0 \) since `AE` holds. **Answer: A, E, and F.** A: **Correct:** In the initial state, `ontable(E)`, `clear(E)`, and `AE` hold, so `Pickup(E)` is applicable. B: **Incorrect:** `Stack(A,B)` requires `holding(A)`, which is false in the initial state. C: **Incorrect:** `Stack(B,C)` requires `holding(B)`, which is false in the initial state. D: **Incorrect:** `Stack(D,E)` requires `holding(D)`, which is false in the initial state. E: **Correct:** In the initial state, `on(A,B)`, `clear(A)`, and `AE` hold, so `Unstack(A,B)` is applicable. F: **Correct:** In the initial state, `on(D,C)`, `clear(D)`, and `AE` hold, so `Unstack(D,C)` is applicable.

Report a correction for Q18

Question 19 MSQ · 1.0 marks

**AUTOMATED PLANNING** The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Source diagram or notation
**Tie-breaker 1:** When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. **Tie-breaker 2:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. **Tie-breaker 3:** When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided 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 given planning problem?
6406536642250.
Pickup(E)
6406536642251.
Stack(A,B)
6406536642252.
Stack(B,C)
6406536642253.
Stack(D,E)
6406536642254.
Unstack(A,B)
6406536642255.
Unstack(D,C)

Published solution

**1. Define a relevant action in backward (regression / goal-directed) planning:** An action is **relevant** to the goal \( G \) if at least one of its positive effects (`Add` list) achieves an unsatisfied literal in \( G \) AND its effects (`Add` / `Del` lists) do not conflict with \( G \). **2. Check the goal state \( G \):** In the goal configuration, we want `on(A,B)`, `on(B,C)`, and `on(D,E)`: - **`Stack(A,B)` (Option B)** achieves `on(A,B)`. - **`Stack(B,C)` (Option C)** achieves `on(B,C)`. - **`Stack(D,E)` (Option D)** achieves `on(D,E)`. - `Pickup` and `Unstack` make the arm hold a block (`~AE`) and do not directly add the required `on(...)` goal literals. **Answer: B, C, and D.** A: **Incorrect:** `Pickup(E)` sets `holding(E)` and `~AE`, which does not achieve any goal literal. B: **Correct:** `Stack(A,B)` achieves the goal literal `on(A,B)`. C: **Correct:** `Stack(B,C)` achieves the goal literal `on(B,C)`. D: **Correct:** `Stack(D,E)` achieves the goal literal `on(D,E)`. E: **Incorrect:** `Unstack(A,B)` deletes `on(A,B)`, violating the goal. F: **Incorrect:** `Unstack(D,C)` sets `holding(D)` rather than directly achieving a goal literal.

Report a correction for Q19

Question 20 MCQ · 1.0 marks

**AUTOMATED PLANNING** The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Source diagram or notation
**Tie-breaker 1:** When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. **Tie-breaker 2:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. **Tie-breaker 3:** When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Source diagram or notation
Based on the above data, answer the given subquestions.
For the given goal description, as per the tie breaking rules, which of the following is the first action popped out of the stack by Goal Stack Planning?
6406536642256.
Stack(A,B)
6406536642257.
Stack(B,C)
6406536642258.
Stack(D,E)
6406536642259.
Unstack(A,B)
6406536642260.
Unstack(D,C)

Published solution

**1. Trace Goal Stack Planning (GSP) with the given tie-breaking rules:** - By Tie-breaker 2 & 3, the compound goal literals are pushed left-to-right onto the stack so the **last** goal literal in the list sits at the top of the stack. - Working on the top subgoal (`on(D,E)` or clearing `C`), GSP pushes `Stack(D,E)` and its preconditions (`holding(D)` and `clear(E)`). - To achieve `holding(D)` when `D` is initially on `C` (`on(D,C)`), GSP selects **`Unstack(D,C)`**, whose preconditions (`on(D,C)`, `clear(D)`, `AE`) are all already true in the initial state! - Therefore, **`Unstack(D,C)`** is the very first action popped from the stack and added to the plan. **Answer: E — Unstack(D,C).** A: **Incorrect:** `Stack(A,B)` is performed much later, after `B` is stacked on `C`. B: **Incorrect:** `Stack(B,C)` cannot execute until `C` and `B` are cleared. C: **Incorrect:** `Stack(D,E)` cannot execute until `Unstack(D,C)` picks up `D`. D: **Incorrect:** Because the last goal literal is at the top of the stack, GSP resolves `D` on `C`/`E` first via `Unstack(D,C)`. E: **Correct:** `Unstack(D,C)` has all preconditions satisfied in the initial state and is the first action popped to achieve `holding(D)`.

Report a correction for Q20

Question 21 NAT · 1.0 marks

**AUTOMATED PLANNING** The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Source diagram or notation
**Tie-breaker 1:** When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. **Tie-breaker 2:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. **Tie-breaker 3:** When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Source diagram or notation
Based on the above data, answer the given subquestions.
For the given goal description, as per the tie breaking rules, Goal Stack Planning will push the goal description (compound goal) to the stack __________ time(s). Enter a natural number. NO SPACES, TABS, DOTS, BRACKETS OR EXTRANEOUS CHARACTERS. Answer format: 42

Published solution

**1. Count how many times the full compound goal description is pushed to the stack:** - **1st time:** At initialization, GSP pushes the compound goal \( G \) onto the bottom of the stack, followed by its individual subgoals. - While achieving the later subgoals (specifically unstacking `A` from `B` to stack `B` onto `C`), the previously true literal `on(A,B)` is temporarily clobbered. - **2nd time:** When GSP finishes the individual subgoals and pops/checks the compound goal \( G \) at the bottom of the stack, it detects the unsatisfied subgoal `on(A,B)` and pushes the compound goal (and the clobbered subgoal) a **2nd** time before re-stacking `A` on `B`. Thus, the compound goal description is pushed **2** times. **Answer: 2.**

Report a correction for Q21

Question 22 MCQ · 1.0 marks

**AUTOMATED PLANNING** The domain description of Blocks World with a one-armed robot is given below. The same domain description used in assignments.
Source diagram or notation
**Tie-breaker 1:** When choosing actions non-deterministically, choose actions that lead to a plan. Ignore actions that lead to dead-ends or cycles. **Tie-breaker 2:** Treat the goal description, preconditions and effects as lists that are accessed from left to right. **Tie-breaker 3:** When list elements are pushed one by one to a stack, the last element in the list will be at the top of the stack. A planning problem is given below, find a plan using operators and predicates provided in the blocks-world domain.
Source diagram or notation
Based on the above data, answer the given subquestions.
While working on a new subgoal, if Goal Stack Planning breaks a previously completed subgoal then it will immediately terminate and report failure.
6406536642262.
True
6406536642263.
False

Published solution

**1. Understand how Goal Stack Planning (GSP) handles clobbered subgoals (Sussman Anomaly):** In Goal Stack Planning, the original compound goal \( G = g_1 \wedge g_2 \wedge \dots \wedge g_k \) is kept on the stack below its decomposed subgoals. If working on a later subgoal \( g_j \) breaks (clobbers) a previously achieved subgoal \( g_i \), GSP does **NOT** terminate or report failure—instead, when the algorithm reaches the compound goal \( G \) on the stack, it checks whether all \( g_1, \dots, g_k \) hold in the current state, and re-pushes any broken subgoal \( g_i \) to repair it. **Answer: B — False.** A: **Incorrect:** GSP does not fail when a subgoal is broken; it keeps the compound goal on the stack specifically to detect and re-achieve broken subgoals. B: **Correct:** GSP re-achieves any broken subgoal when it verifies the compound goal kept on the stack.

Report a correction for Q22