CSC266 ยท 2081 ยท 10 marks
How is informed search different from uninformed search? Create a state space with appropriate heuristics, now illustrate how hill climbing search expands nodes to reach a goal. Modify the state space heuristics and demonstrate when the hill climbing will not be complete.
How is informed search different from uninformed search? Create a state space with appropriate heuristics, now illustrate how hill climbing search expands nodes to reach a goal. Modify the state space heuristics and demonstrate when the hill climbing will not be complete.[10]
Informed vs Uninformed Search, Hill Climbing, and Incompleteness
Given
This is a conceptual and design question. There are no fixed numeric inputs provided; the student must construct a state space with heuristics. The state space used below is:
Working state space (Part 3):
| Node | h(n) | Neighbors |
|---|---|---|
| A | 10 | B, C |
| B | 7 | D, E |
| C | 8 | F |
| D | 4 | G |
| E | 5 | - |
| F | 6 | - |
| G | 0 | GOAL |
Modified state space (Part 4):
| Node | h(n) | Neighbors |
|---|---|---|
| A | 10 | B, C |
| B | 7 | D, E |
| E | 3 | X |
| D | 5 | G |
| X | 4 | (dead end) |
| G | 0 | GOAL |
No data is missing since the values are self-created and internally consistent.
Solution
Part 1: Informed vs Uninformed Search
| Feature | Uninformed (Blind) Search | Informed (Heuristic) Search |
|---|---|---|
| Knowledge | Uses only the problem definition; no extra info | Uses domain-specific heuristic $h(n)$ |
| Guidance | Explores blindly in fixed order | Guided toward goal by $h(n)$ |
| Efficiency | Explores more nodes; usually slower | Explores fewer nodes; usually faster |
| Optimality/Completeness | Some (e.g., BFS) are complete/optimal | Depends on heuristic (A* optimal if admissible) |
| Examples | BFS, DFS, DLS, IDDFS, Uniform Cost, Bidirectional | Greedy Best-First, A*, Hill Climbing, AO* |
The heuristic function is: $$h(n) = \text{estimated cost of the cheapest path from node } n \text{ to a goal}$$
Informed search leverages $h(n)$ to prioritize promising nodes, which uninformed search cannot do.
Part 2: Hill Climbing Concept
Hill climbing is a local, informed search that:
- keeps only the current state (no frontier, no memory),
- always moves to the best neighbor (here, lowest $h$ toward goal),
- halts when no neighbor improves on the current node.
Part 3: State Space Where Hill Climbing Succeeds
A (10)
/ \
B(7) C(8)
/ \ \
D(4) E(5) F(6)
|
G(0) <-- GOAL
Execution (choose neighbor with lowest $h$):
| Step | Current | Neighbors ($h$) | Best (lower than current?) | Move |
|---|---|---|---|---|
| 1 | A (10) | B(7), C(8) | B(7) < 10 โ | B |
| 2 | B (7) | D(4), E(5) | D(4) < 7 โ | D |
| 3 | D (4) | G(0) | G(0) < 4 โ | G |
| 4 | G (0) | - | GOAL reached | STOP |
Solution path: $A \to B \to D \to G$
Hill climbing succeeds because the heuristic decreases monotonically along the correct path.
Part 4: Modified State Space Where Hill Climbing Fails
We change $D$'s value to $5$ and add a misleading branch $E \to X$ with $h(E)=3$, $h(X)=4$, so the greedy choice leads into a local minimum.
A (10)
/ \
B(7) C(8)
/ \ \
D(5) E(3) F(6)
| \
G(0) X(4) <-- dead-end trap
Execution:
| Step | Current | Neighbors ($h$) | Best | Move |
|---|---|---|---|---|
| 1 | A (10) | B(7), C(8) | B(7) < 10 | B |
| 2 | B (7) | D(5), E(3) | E(3) < 5, so E preferred over D | E |
| 3 | E (3) | X(4) | X(4) > 3 โ no improvement | STOP (stuck) |
Path followed: $A \to B \to E$ โ stuck at $E$ (local minimum).
The actual goal lies on $A \to B \to D \to G$, but at step 2 the greedy heuristic picked $E$ (h=3) over $D$ (h=5). At $E$, the only neighbor $X$ (h=4) is worse, so hill climbing terminates without reaching $G$.
Why incomplete: Hill climbing has no backtracking and no memory, so once it commits to a locally attractive but misleading node it cannot recover. This illustrates the classic failure modes:
- Local minimum/maximum (shown above),
- Plateau (all neighbors equal),
- Ridge (progress only via non-improving sideways moves).
Hence hill climbing is not complete: it can fail to find an existing goal.
Conclusion: Informed search uses $h(n)$ to guide exploration (unlike blind uninformed search). Hill climbing exploits $h(n)$ greedily and works when the heuristic slopes toward the goal, but because it lacks backtracking it becomes incomplete at local minima, plateaus, and ridges.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.