IAE Academy

GATE 2025 DA Q.43: solution and answer

GATE 2025 · DAQ.43 · 2 marks · MCQ

Consider game trees Tree-1 and Tree-2 as shown. The first level is a MAX agent and the second level is a MIN agent. The value in the square node is the output of the utility function.

For what ranges of and , the right child of node and the right child of node will be pruned by alpha-beta pruning algorithm?

GATE 2025 DA question 43: Two game trees.Tap to open full size
Figure from the GATE 2025 DA paper. It is part of the question.
Figure description

Two game trees. Tree-1: root A (circle, MAX level) has two children: a left leaf (square) with value 2, and a right child B (circle, MIN level). B has two children: a left leaf with value x and a right leaf with value 1 (joined to B by a dotted edge, meaning it is the branch to be pruned). Tree-2: root C (circle, MAX level) has two children, D (circle) and E (circle), both at the MIN level. D has two leaf children with values 5 and y. E has a left leaf child with value 2 and a right child drawn as a triangle (a subtree) joined to E by a dotted edge, the branch to be pruned.

  1. (A)

    and

  2. (B)

    and

  3. (C)

    and

  4. (D)

    and

Answer and solution

ANSWER

Option (C): and .

Official answer: CSource: Official answer key, GATE 2025 DA (IIT Roorkee)

  1. Pruning rule: at a MIN node, once its running value is (the best value MAX can already guarantee on the path to the root), the remaining children are pruned, because MAX would never choose this node.

  2. Tree-1: is MAX. Its left child is the leaf , so after the left branch at .

  3. is MIN and its left leaf is , so 's running value is at most . The right child of (the leaf ) is pruned exactly when , that is .

  4. Tree-2: is MAX. Its left child is MIN with leaves and , so and gets .

  5. is MIN. Its first leaf is , so 's running value is at most . The right child of is pruned exactly when .

  6. holds only if both (always true) and . So .

  7. Both pruning conditions must hold together: and , which is option (C).

KEY IDEA

A MIN node stops searching its remaining children as soon as its running value drops to or below, where is the best value MAX has already secured from earlier siblings. Pruning therefore needs the first child to be .

WATCH OUT FOR

Comparing with the pruned leaf instead of with , which gives . Another slip is forgetting that in Tree-2 is , not , and writing or .

From the GATE 2025 DA paper. Every question of this paper · Download the full paper · All 7 Search questions, with notes

More Search questions