Uninformed Search and Heuristic Search Short Notes for Gate Da
Uninformed Search and Heuristic Search short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice ques
Uninformed Search and Heuristic Search short notes
Topic Summary: Uninformed Search Essentials
Key Takeaways
1. BFS
Structure: FIFO Queue.
Pros: Complete, Optimal (unit cost).
Cons: High Memory O(bd).
Best for: Shallow solutions.
2. DFS
Structure: LIFO Stack.
Pros: Low Memory O(b⋅m).
Cons: Not Complete (infinite spaces), Not Optimal.
Best for: Deep solutions, memory constraints.
3. Strategy Selection
No heuristic? → Uninformed.
Have heuristic? → Informed (A*).
Cycles present? → Use Graph Search (Explored Set).
4. Complexity
Time is generally exponential for both.
Space is the differentiator: BFS is exponential, DFS is linear.
Topic Summary: A* Exam Readiness
A* Search: Final Revision Checklist
1. The Formula
f(n)=g(n)+h(n). Always expand the lowest f(n). Tie-break with lowest h(n), then alphabetical.
2. Admissibility
Rule: 0≤h(n)≤h∗(n). Meaning: Never overestimates. Guarantees optimality in Tree Search.
3. Consistency (Monotonicity)
Rule: h(n)≤c(n,n′)+h(n′). Meaning: Satisfies triangle inequality. Guarantees optimality and no re-expansion in Graph Search. Fact: Consistent ⟹ Admissible. (The reverse is false).
4. Combining Heuristics
If h1 and h2 are admissible, max(h1,h2) is always admissible and dominates (better). min(h1,h2) is admissible but weaker.
5. Tracing Protocol
Maintain a strict table of g, h, and f. Update a node's parent only if the new g value is strictly lower than the existing one.
Try a question
Answer it here to see how it works. Nothing is recorded until you sign in.
Question 1
Level 1: Warm-up
In A* search, an admissible heuristic never overestimates the true cost. Suppose the true cost from the start node S to the goal G is 20. A student assumes that any heuristic value h(S)≤20 is admissible, ignoring the condition that h(n) must also be admissible for all intermediate nodes. If the actual true cost from an intermediate node A to G is 6, and the student sets h(A)=10, what is the minimum amount by which h(A) overestimates the true cost from A to G, thus violating admissibility at node A?
Question 2
Level 1: Warm-up
A heuristic h(n) is admissible if it never overestimates the true optimal cost h∗(n) to the goal. For a specific node n, the true optimal cost is h∗(n)=10. Which of the following values could be a valid admissible heuristic h(n) for this node?
Question 3
Level 1: Warm-up
Which of the following statements correctly estimates the space complexity of Breadth-First Search (BFS) and Depth-First Search (DFS)?
Question 4
Level 1: Warm-up
Which of the following statements correctly estimates the worst-case space complexity of Breadth-First Search (BFS) and Depth-First Search (DFS) in terms of branching factor b and maximum depth m?
Question 5
Level 1: Warm-up
For a heuristic function h(n) to be admissible in A* search, it must satisfy the condition 0≤h(n)≤h∗(n) for all nodes n. If the true optimal cost h∗(n) from node X to the goal is 15, how many of the following heuristic values for X are valid for an admissible heuristic?
Values: 10, 15, 18, 0, -2
Question 6
Level 1: Warm-up
Let h∗(n) be the true optimal cost from node n to the goal. For a heuristic h(n) to be admissible, it must satisfy 0≤h(n)≤h∗(n). If h∗(n)=20, what is the maximum possible value of h(n) such that the heuristic remains admissible?
Question 7
Level 1: Warm-up
A heuristic h is consistent if h(n)≤c(n,n′)+h(n′) for all nodes n and successors n′. Consider a graph with three nodes: Start S, intermediate A, and Goal G. The edge costs are c(S,A)=4 and c(A,G)=5. The heuristic values are h(S)=x, h(A)=3, and h(G)=0. What is the maximum integer value of x such that the heuristic remains consistent?
Question 8
Level 1: Warm-up
A heuristic h is consistent if h(n)≤c(n,n′)+h(n′) for all edges. Consider a linear path S→A→B→G with edge costs c(S,A)=2, c(A,B)=3, and c(B,G)=4. The heuristic values are h(G)=0, h(B)=3, h(A)=5, and h(S)=x. Assuming h(n)≥0 for all nodes, how many non-negative integer values of x make the heuristic consistent along this path?
Question 9
Level 1: Warm-up
A student makes the invalid assumption that for a consistent heuristic, the estimated cost must satisfy h(n′)≥h(n)+c(n,n′) for all edges. If h(n)=5 and the edge cost is c(n,n′)=3, what is the minimum value of h(n′) that satisfies the student's invalid assumption?
Question 10
Level 1: Warm-up
According to the standard classification of search strategies, how many of the following algorithms are strictly categorized as "uninformed" (blind) search?
Breadth-First Search (BFS)
Depth-First Search (DFS)
A* Search
Uniform Cost Search
Greedy Best-First Search
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.
Uninformed Search and Heuristic Search Short Notes for GATE DA
Uninformed Search and Heuristic Search short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.
Topic Summary: Uninformed Search Essentials
Key Takeaways
1. BFS
Structure: FIFO Queue.
Pros: Complete, Optimal (unit cost).
Cons: High Memory O(bd).
Best for: Shallow solutions.
2. DFS
Structure: LIFO Stack.
Pros: Low Memory O(b⋅m).
Cons: Not Complete (infinite spaces), Not Optimal.
Best for: Deep solutions, memory constraints.
3. Strategy Selection
No heuristic? → Uninformed.
Have heuristic? → Informed (A*).
Cycles present? → Use Graph Search (Explored Set).
4. Complexity
Time is generally exponential for both.
Space is the differentiator: BFS is exponential, DFS is linear.
Topic Summary: A* Exam Readiness
A* Search: Final Revision Checklist
1. The Formula
f(n)=g(n)+h(n). Always expand the lowest f(n). Tie-break with lowest h(n), then alphabetical.
2. Admissibility
Rule: 0≤h(n)≤h∗(n). Meaning: Never overestimates. Guarantees optimality in Tree Search.
3. Consistency (Monotonicity)
Rule: h(n)≤c(n,n′)+h(n′). Meaning: Satisfies triangle inequality. Guarantees optimality and no re-expansion in Graph Search. Fact: Consistent ⟹ Admissible. (The reverse is false).
4. Combining Heuristics
If h1 and h2 are admissible, max(h1,h2) is always admissible and dominates (better). min(h1,h2) is admissible but weaker.
5. Tracing Protocol
Maintain a strict table of g, h, and f. Update a node's parent only if the new g value is strictly lower than the existing one.
Uninformed Search and Heuristic Search: Solved Questions with Step-by-Step Explanations (10 Problems)
Question 1 · Artificial IntelligenceNAT
In A* search, an admissible heuristic never overestimates the true cost. Suppose the true cost from the start node S to the goal G is 20. A student assumes that any heuristic value h(S)≤20 is admissible, ignoring the condition that h(n) must also be admissible for all intermediate nodes. If the actual true cost from an intermediate node A to G is 6, and the student sets h(A)=10, what is the minimum amount by which h(A) overestimates the true cost from A to G, thus violating admissibility at node A?
Correct Answer:
4.00
Step-by-Step Solution
Key idea: Admissibility must hold for every node, not just the start node.
Step 1: The true cost from A to G is h∗(A)=6.
Step 2: The student sets h(A)=10.
Step 3: The overestimation at node A is h(A)−h∗(A)=10−6=4.
Answer: 4.00
Question 2 · Artificial IntelligenceMSQ
A heuristic h(n) is admissible if it never overestimates the true optimal cost h∗(n) to the goal. For a specific node n, the true optimal cost is h∗(n)=10. Which of the following values could be a valid admissible heuristic h(n) for this node?
A.
h(n)=10
B.
h(n)=8
C.
h(n)=12
D.
h(n)=0
Correct Answer:
["A","B","D"]
Step-by-Step Solution
Key idea: This is a reverse-engineering question, recognisable because it provides a boundary condition (h∗(n)) and asks to identify valid values that satisfy a definition.
Step 1: Recall the mathematical definition of admissibility: 0≤h(n)≤h∗(n).
Step 2: Substitute the given true optimal cost: 0≤h(n)≤10.
Step 3: Evaluate Option A: $10$ is ≤10 and ≥0. Valid.
Step 4: Evaluate Option B: $8$ is ≤10 and ≥0. Valid.
Step 5: Evaluate Option C: $12$ is >10. This overestimates the cost, so it is invalid.
Step 6: Evaluate Option D: $0$ is ≤10 and ≥0. Valid (a heuristic of 0 is always admissible, reducing A* to Uniform Cost Search).
Answer: Options A, B, and D are correct.
Question 3 · Artificial IntelligenceMCQ
Which of the following statements correctly estimates the space complexity of Breadth-First Search (BFS) and Depth-First Search (DFS)?
A.
BFS requires O(bd) space, while DFS requires O(b⋅m) space.
B.
BFS requires O(b⋅d) space, while DFS requires O(bm) space.
C.
Both BFS and DFS require O(bd) space in the worst case.
D.
Both BFS and DFS require O(b⋅m) space in the worst case.
Correct Answer:
A
Step-by-Step Solution
Key idea: BFS stores all nodes at the current depth, while DFS only stores the current path and its siblings.
Step 1: Recall the space complexity of BFS. In the worst case, it stores all nodes at depth d, which is O(bd).
Step 2: Recall the space complexity of DFS. It only needs to store the current path from the root to the leaf (depth m) and the unexpanded siblings at each level, giving O(b⋅m).
Step 3: Compare with the options. Option A matches both complexities correctly.
Answer: Option A.
Question 4 · Artificial IntelligenceMCQ
Which of the following statements correctly estimates the worst-case space complexity of Breadth-First Search (BFS) and Depth-First Search (DFS) in terms of branching factor b and maximum depth m?
A.
BFS requires O(b⋅m) space, while DFS requires O(bm) space.
B.
Both BFS and DFS require O(bm) space in the worst case.
C.
BFS requires O(bm) space, while DFS requires O(b⋅m) space.
D.
Both BFS and DFS require O(b⋅m) space in the worst case.
Correct Answer:
C
Step-by-Step Solution
Key idea: This is an estimation question, recognizable because it asks to evaluate the truth of statements regarding asymptotic space bounds.
Step 1: Recall the space complexity of BFS. It stores all generated nodes in the frontier, which grows exponentially as O(bm).
Step 2: Recall the space complexity of DFS. It only stores the current path and unexpanded siblings, which is linear with respect to depth, O(b⋅m).
Step 3: Compare with the options. Option C correctly assigns O(bm) to BFS and O(b⋅m) to DFS.
Answer: Option C.
Question 5 · Artificial IntelligenceMCQ
For a heuristic function h(n) to be admissible in A* search, it must satisfy the condition 0≤h(n)≤h∗(n) for all nodes n. If the true optimal cost h∗(n) from node X to the goal is 15, how many of the following heuristic values for X are valid for an admissible heuristic?
Values: 10, 15, 18, 0, -2
A.
2
B.
3
C.
4
D.
5
Correct Answer:
B
Step-by-Step Solution
Key idea: This is a construction question, recognizable because it asks to count how many values satisfy a specific mathematical condition.
Step 1: The condition for admissibility is 0≤h(n)≤h∗(n). We are given h∗(X)=15.
Step 2: Evaluate each value:
10: 0≤10≤15 (Valid)
15: 0≤15≤15 (Valid)
18: 18>15 (Invalid, overestimates)
0: 0≤0≤15 (Valid)
-2: −2<0 (Invalid, negative)
Step 3: Count the valid values: 10, 15, and 0. There are 3 valid values.
Answer: Option B.
Question 6 · Artificial IntelligenceMCQ
Let h∗(n) be the true optimal cost from node n to the goal. For a heuristic h(n) to be admissible, it must satisfy 0≤h(n)≤h∗(n). If h∗(n)=20, what is the maximum possible value of h(n) such that the heuristic remains admissible?
A.
0
B.
10
C.
19
D.
20
Correct Answer:
D
Step-by-Step Solution
Key idea: This is an observation question focusing on the boundary condition of admissibility, recognizable because it asks for the "maximum possible value" given a strict inequality definition.
Step 1: Recall the definition of an admissible heuristic: 0≤h(n)≤h∗(n).
Step 2: Note that the inequality is non-strict (≤). This means h(n) can be exactly equal to the true cost h∗(n).
Step 3: Given h∗(n)=20, the maximum value h(n) can take without violating the condition is exactly 20.
Answer: Option D.
Question 7 · Artificial IntelligenceNAT
A heuristic h is consistent if h(n)≤c(n,n′)+h(n′) for all nodes n and successors n′. Consider a graph with three nodes: Start S, intermediate A, and Goal G. The edge costs are c(S,A)=4 and c(A,G)=5. The heuristic values are h(S)=x, h(A)=3, and h(G)=0. What is the maximum integer value of x such that the heuristic remains consistent?
Correct Answer:
7.00
Step-by-Step Solution
Key idea: Consistency requires the triangle inequality: h(n)≤c(n,n′)+h(n′).
Step 1: Apply the condition to the edge from S to A: h(S)≤c(S,A)+h(A).
Step 2: Substitute the given values: x≤4+3.
Step 3: This gives x≤7. The maximum integer value for x is 7.
Step 4: Verify the other edge: h(A)≤c(A,G)+h(G)⟹3≤5+0, which is true.
Answer: 7.00
Question 8 · Artificial IntelligenceNAT
A heuristic h is consistent if h(n)≤c(n,n′)+h(n′) for all edges. Consider a linear path S→A→B→G with edge costs c(S,A)=2, c(A,B)=3, and c(B,G)=4. The heuristic values are h(G)=0, h(B)=3, h(A)=5, and h(S)=x. Assuming h(n)≥0 for all nodes, how many non-negative integer values of x make the heuristic consistent along this path?
Correct Answer:
8.00
Step-by-Step Solution
Key idea: Consistency requires the triangle inequality h(n)≤c(n,n′)+h(n′) to hold for every edge in the graph.
Step 1: Check the edge B→G: h(B)≤c(B,G)+h(G)⟹3≤4+0⟹3≤4. (True)
Step 2: Check the edge A→B: h(A)≤c(A,B)+h(B)⟹5≤3+3⟹5≤6. (True)
Step 3: Check the edge S→A: h(S)≤c(S,A)+h(A)⟹x≤2+5⟹x≤7.
Step 4: The problem states h(n)≥0, so x≥0.
Step 5: The non-negative integer values for x are 0, 1, 2, 3, 4, 5, 6, 7.
Step 6: Count the values: there are exactly 8 values.
Answer: 8.00
Question 9 · Artificial IntelligenceNAT
A student makes the invalid assumption that for a consistent heuristic, the estimated cost must satisfy h(n′)≥h(n)+c(n,n′) for all edges. If h(n)=5 and the edge cost is c(n,n′)=3, what is the minimum value of h(n′) that satisfies the student's invalid assumption?
Correct Answer:
8.00
Step-by-Step Solution
Key idea: Consistency requires the triangle inequality h(n)≤c(n,n′)+h(n′). The student's assumption reverses this relationship.
Step 1: The student's invalid assumption is h(n′)≥h(n)+c(n,n′).
Step 2: Substitute the given values: h(n′)≥5+3.
Step 3: This simplifies to h(n′)≥8.
Step 4: The minimum value that satisfies this inequality is exactly 8.
Answer: 8.00
Question 10 · Artificial IntelligenceMCQ
According to the standard classification of search strategies, how many of the following algorithms are strictly categorized as "uninformed" (blind) search?
Breadth-First Search (BFS)
Depth-First Search (DFS)
A* Search
Uniform Cost Search
Greedy Best-First Search
A.
1
B.
2
C.
3
D.
4
Correct Answer:
C
Step-by-Step Solution
Key idea: Uninformed search strategies do not use any domain-specific knowledge (heuristics) to guide the search.
Step 1: BFS and DFS are classic uninformed search algorithms. (Count = 2)
Step 2: Uniform Cost Search expands the node with the lowest path cost g(n), without using a heuristic h(n). It is also uninformed. (Count = 3)
Step 3: A* Search uses f(n)=g(n)+h(n), and Greedy Best-First Search uses h(n). Both are informed (heuristic) searches.