AI Problem Formulation & Search Simulator

Automated Clothing Warehouse Robot — 3×3 grid, cost-aware planning

Islamic Azad University, Central Tehran Branch · Presenter: Mohammad Mehdi Koulaei · Professor: Nayereh Zaghari

(1,1)
Start S₀
(1,2)
Corridor
(1,3)
Shipping unit
(2,1)
Corridor
(2,2)
Blocked obstacle
(2,3)
Corridor
(3,1)
Clothing rack
(3,2)
Corridor
(3,3)
Corridor

((1,1),(3,1),0)

Start · g=0 h=10 f=10

Solved, g = 10, 8 actionsExpanded: 9Max frontier: 5

Optimal with an admissible, consistent h; expands only the f=10 path and leaves f≥12 on the frontier.

A* chose ((1,1),(3,1),0) because f=g+h=0+10=10 is lowest; the best alternative has f=10 (frozen on the frontier).

Frontier inspector: Priority queue by f = g + h
▶ ((1,1),(3,1),0) f=10
Optimal path (f = 10)Frontier (unexpanded)× Pruned duplicate / obstacle hit

Click a node to show its state on the grid.

Down (+1)Right (+1)Down (+1)Right (+1)Up (+1)Pick (+2)Right (+1)Up (+1)Right (+1)Up (+1)Drop (+2)Right (+1)Up (+1)Left (+1)Up (+1)Left (+1)Down (+1)Up (+1)Left (+1)Drop (+2)Down (+1)Left (+1)((1,1),(3,1),0)g=0 h=10 f=10((2,1),(3,1),0)g=1 h=9 f=10((1,2),(3,1),0)g=1 h=11 f=12((3,1),(3,1),0)g=2 h=8 f=10× ((2,1),(3,1),0)g=2 h=9 f=11× ((1,1),(3,1),0)g=2 h=10 f=12((3,1),(3,1),1)g=4 h=6 f=10((3,2),(3,1),0)g=3 h=9 f=12× ((2,1),(3,1),0)g=3 h=9 f=12((3,2),(3,2),1)g=5 h=5 f=10((2,1),(2,1),1)g=5 h=5 f=10× ((3,1),(3,1),0)g=6 h=8 f=14((3,3),(3,3),1)g=6 h=4 f=10× ((3,2),(3,2),1)g=6 h=5 f=11× ((3,1),(3,1),1)g=6 h=6 f=12((2,3),(2,3),1)g=7 h=3 f=10× ((3,2),(3,2),1)g=7 h=5 f=12× ((3,3),(3,3),1)g=8 h=4 f=12((1,3),(1,3),1)g=8 h=2 f=10× ((2,3),(2,3),1)g=8 h=3 f=11((1,3),(1,3),0)g=10 h=0 f=10× ((2,3),(2,3),1)g=9 h=3 f=12((1,2),(1,2),1)g=9 h=3 f=12
Expansion log
#StateActionghf
1((1,1),(3,1),0)Start01010
2((2,1),(3,1),0)Down (+1)1910
3((3,1),(3,1),0)Down (+1)2810
4((3,1),(3,1),1)Pick (+2)4610
5((3,2),(3,2),1)Right (+1)5510
6((3,3),(3,3),1)Right (+1)6410
7((2,3),(2,3),1)Up (+1)7310
8((1,3),(1,3),1)Up (+1)8210
9((1,3),(1,3),0)Drop (+2)10010

Green rows lie on the returned solution; grey rows have f ≥ 12.