2081 3

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]

Artificial IntelligenceChapter 3: Problem Solving by SearchingInformed SearchNumerical: Hill climbing search

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):

Nodeh(n)Neighbors
A10B, C
B7D, E
C8F
D4G
E5-
F6-
G0GOAL

Modified state space (Part 4):

Nodeh(n)Neighbors
A10B, C
B7D, E
E3X
D5G
X4(dead end)
G0GOAL

No data is missing since the values are self-created and internally consistent.


Solution

FeatureUninformed (Blind) SearchInformed (Heuristic) Search
KnowledgeUses only the problem definition; no extra infoUses domain-specific heuristic $h(n)$
GuidanceExplores blindly in fixed orderGuided toward goal by $h(n)$
EfficiencyExplores more nodes; usually slowerExplores fewer nodes; usually faster
Optimality/CompletenessSome (e.g., BFS) are complete/optimalDepends on heuristic (A* optimal if admissible)
ExamplesBFS, DFS, DLS, IDDFS, Uniform Cost, BidirectionalGreedy 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$):

StepCurrentNeighbors ($h$)Best (lower than current?)Move
1A (10)B(7), C(8)B(7) < 10 โœ“B
2B (7)D(4), E(5)D(4) < 7 โœ“D
3D (4)G(0)G(0) < 4 โœ“G
4G (0)-GOAL reachedSTOP

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:

StepCurrentNeighbors ($h$)BestMove
1A (10)B(7), C(8)B(7) < 10B
2B (7)D(5), E(3)E(3) < 5, so E preferred over DE
3E (3)X(4)X(4) > 3 โ†’ no improvementSTOP (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:

  1. Local minimum/maximum (shown above),
  2. Plateau (all neighbors equal),
  3. 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.