chapter

    Search Practice Questions for Gate Da

    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:

    1. BFS is guaranteed to find a solution if one exists, regardless of edge costs.
    2. DFS uses space, where is the branching factor and is the depth of the shallowest goal.
    3. If all edge costs are equal, BFS finds the optimal (shortest-path) solution.
    4. DFS can get stuck in an infinite loop if the state space contains cycles and no visited set is maintained.
    5. BFS expands fewer nodes than DFS when the goal is located at the maximum depth of the tree.
    6. 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 , , and , 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 are 5 and 7. The utilities for the children of are and 9, where is an integer. The utilities for the children of are 6 and 8.

    Which of the following statements about the value of and the resulting optimal strategy are CORRECT?

    Free preview ends here

    Login to view the complete practice questions and solutions

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    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.

    Search Practice Questions for GATE DA

    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 Practice Questions

    638 practice questions for Search in GATE DA, sorted chapter by chapter and graded from basic to exam level, each with a full solution.

    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.

    Search Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Uninformed Search and Heuristic SearchUninformed Search: Bfs, Dfs and Search Strategy Classification, A* Search, Admissible Heuristics and Expansion Order457%367
    Adversarial Search, Minimax and Alpha-beta PruningMinimax Game Tree Evaluation and Strategy Selection, Alpha-beta Pruning Bounds and Interpretation343%271

    More from Artificial Intelligence

    One Solved Question from Each Search Chapter

    Question 1 · Uninformed Search and Heuristic Search MCQ

    Consider the following six statements about Breadth-First Search (BFS) and Depth-First Search (DFS) on a finite state space graph:

    1. BFS is guaranteed to find a solution if one exists, regardless of edge costs.
    2. DFS uses space, where is the branching factor and is the depth of the shallowest goal.
    3. If all edge costs are equal, BFS finds the optimal (shortest-path) solution.
    4. DFS can get stuck in an infinite loop if the state space contains cycles and no visited set is maintained.
    5. BFS expands fewer nodes than DFS when the goal is located at the maximum depth of the tree.
    6. 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?

    1. A.

      2

    2. B.

      3

    3. C.

      4

    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 space." FALSE. DFS uses space, where is the maximum depth of the tree, not (shallowest goal depth). 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 , BFS expands all nodes up to depth , which is . 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 and ) 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 Pruning MSQ

    Consider a two-player zero-sum game of perfect information. The root is a MAX node with three children , , and , 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 are 5 and 7. The utilities for the children of are and 9, where is an integer. The utilities for the children of are 6 and 8.

    Which of the following statements about the value of and the resulting optimal strategy are CORRECT?

    1. A.

      If MAX breaks ties in favor of the leftmost branch, the minimum integer value of for which is the optimal first move is 6.

    2. B.

      If MAX breaks ties in favor of the rightmost branch, the minimum integer value of for which is the strictly unique optimal first move is 7.

    3. C.

      For all , the minimax value of the game is exactly 9.

    4. D.

      If , 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.

    • .
    • .
    • .

    Step 2: The root value is .

    Step 3: Analyze the conditions for B to be the optimal move.

    • For B to be chosen, its value must be (since C gives 6).
    • If , there is a tie between B and C.
    • If , B is the strictly unique optimal move.

    Step 4: Evaluate the options.

    • Option A: Tie favors leftmost (B is left of C). If , . Tie between B and C. Leftmost is B. So minimum integer is 6. (True)
    • Option B: Tie favors rightmost (C is right of B). To be strictly unique, we need . This requires . Minimum integer is 7. (True)
    • Option C: If , . Root is . (True)
    • Option D: If , . Root is . (False)

    Answer: A, B, C