GATE DA Search: 2 chapters, 7 previous year questions (50% of Artificial Intelligence), 638 practice questions and one solved question from each chapter.
A question from this chapter
Question 1
Level 3: Exam Standard
Consider the following six statements about Breadth-First Search (BFS) and Depth-First Search (DFS) on a finite state space graph:
BFS is guaranteed to find a solution if one exists, regardless of edge costs.
DFS uses O(b⋅d) space, where b is the branching factor and d is the depth of the shallowest goal.
If all edge costs are equal, BFS finds the optimal (shortest-path) solution.
DFS can get stuck in an infinite loop if the state space contains cycles and no visited set is maintained.
BFS expands fewer nodes than DFS when the goal is located at the maximum depth m of the tree.
Both BFS and DFS are complete for finite state spaces when a visited set (explored set) is used.
How many of the above statements are TRUE?
Question 2
Level 3: Exam Standard
Consider a two-player zero-sum game of perfect information. The root is a MAX node with three children A, B, and C, each of which is a MIN node. Each MIN node has exactly two terminal children representing the utility for MAX. The utilities for the children of A are 5 and 7. The utilities for the children of B are x and 9, where x is an integer. The utilities for the children of C are 6 and 8.
Which of the following statements about the value of x and the resulting optimal strategy are CORRECT?
Free preview ends here
Login to view the complete short notes
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
GATE DA Search: 2 chapters, 7 previous year questions (50% of Artificial Intelligence), 638 practice questions and one solved question from each chapter.
About Search Short Notes
Quick revision sheets for Search in GATE DA. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 2 chapters fast before the exam.
Search Weightage in GATE DA
Search accounts for 7 of 14 Artificial Intelligence previous year questions in our bank (50%), about 2.3 per paper across 3 papers.
Question 1 · Uninformed Search and Heuristic SearchMCQ
Consider the following six statements about Breadth-First Search (BFS) and Depth-First Search (DFS) on a finite state space graph:
BFS is guaranteed to find a solution if one exists, regardless of edge costs.
DFS uses O(b⋅d) space, where b is the branching factor and d is the depth of the shallowest goal.
If all edge costs are equal, BFS finds the optimal (shortest-path) solution.
DFS can get stuck in an infinite loop if the state space contains cycles and no visited set is maintained.
BFS expands fewer nodes than DFS when the goal is located at the maximum depth m of the tree.
Both BFS and DFS are complete for finite state spaces when a visited set (explored set) is used.
How many of the above statements are TRUE?
A.
2
B.
3
C.
4
D.
5
Correct Answer:
C
Step-by-Step Solution
Key idea: Evaluate each statement individually by recalling the completeness, optimality, and complexity properties of BFS and DFS.
Step 1: Statement 1 — "BFS is complete regardless of edge costs." TRUE. BFS is complete for finite state spaces (and infinite spaces with finite branching factor). Completeness means it will find a solution if one exists, independent of edge costs. (Optimality depends on costs, but completeness does not.)
Step 2: Statement 2 — "DFS uses O(b⋅d) space." FALSE. DFS uses O(b⋅m) space, where m is the maximum depth of the tree, not d (shallowest goal depth). O(b⋅d) is closer to BFS's space complexity.
Step 3: Statement 3 — "BFS finds optimal solution with equal edge costs." TRUE. When all edge costs are equal, the shortest path in terms of number of edges is also the minimum-cost path. BFS finds the shallowest goal first, which is optimal.
Step 4: Statement 4 — "DFS can loop infinitely with cycles and no visited set." TRUE. Without a visited set, DFS can revisit the same states indefinitely in a cycle, leading to an infinite loop.
Step 5: Statement 5 — "BFS expands fewer nodes than DFS when goal is at max depth." FALSE. When the goal is at maximum depth m, BFS expands all nodes up to depth m, which is O(bm). DFS might find the goal much faster if it goes down the right branch first. BFS does not necessarily expand fewer nodes.
Step 6: Statement 6 — "Both BFS and DFS are complete for finite spaces with visited set." TRUE. A visited set prevents infinite loops, and for finite state spaces, both algorithms will eventually explore all reachable states, guaranteeing completeness.
Step 7: Count TRUE statements: 1, 3, 4, 6 → 4 statements.
Answer: C
Common trap: Students often think Statement 2 is true (confusing d and m) or Statement 5 is true (assuming BFS is always more efficient). This leads to overcounting and choosing 5.
Question 2 · Adversarial Search, Minimax and Alpha-Beta PruningMSQ
Consider a two-player zero-sum game of perfect information. The root is a MAX node with three children A, B, and C, each of which is a MIN node. Each MIN node has exactly two terminal children representing the utility for MAX. The utilities for the children of A are 5 and 7. The utilities for the children of B are x and 9, where x is an integer. The utilities for the children of C are 6 and 8.
Which of the following statements about the value of x and the resulting optimal strategy are CORRECT?
A.
If MAX breaks ties in favor of the leftmost branch, the minimum integer value of x for which B is the optimal first move is 6.
B.
If MAX breaks ties in favor of the rightmost branch, the minimum integer value of x for which B is the strictly unique optimal first move is 7.
C.
For all x≥9, the minimax value of the game is exactly 9.
D.
If x=4, the minimax value of the game is 4.
Correct Answer:
["A","B","C"]
Step-by-Step Solution
Key idea: This is a missing value deduction question with casework on tie-breaking. The core constraint is that MAX will only choose branch B if its guaranteed value is strictly greater than the guaranteed values of A and C (or greater than/equal if tie-breaking favors B).
Step 1: Evaluate the known branches.
A=min(5,7)=5.
C=min(6,8)=6.
B=min(x,9).
Step 2: The root value is max(5,min(x,9),6)=max(6,min(x,9)).
Step 3: Analyze the conditions for B to be the optimal move.
For B to be chosen, its value min(x,9) must be ≥6 (since C gives 6).
If min(x,9)=6, there is a tie between B and C.
If min(x,9)>6, B is the strictly unique optimal move.
Step 4: Evaluate the options.
Option A: Tie favors leftmost (B is left of C). If x=6, min(6,9)=6. Tie between B and C. Leftmost is B. So minimum integer x is 6. (True)
Option B: Tie favors rightmost (C is right of B). To be strictly unique, we need min(x,9)>6. This requires x>6. Minimum integer x is 7. (True)
Option C: If x≥9, min(x,9)=9. Root is max(6,9)=9. (True)
Option D: If x=4, B=min(4,9)=4. Root is max(5,4,6)=6. (False)