Greedy Best-First Search
Greedy best-first expands the node that looks closest to the goal (smallest h only). Fast, not guaranteed optimal. Can walk into a dead alley. A* adds g so you don’t ignore cost already paid.
Greedy Best-First Search — output — three exam lines. Graph on paper first.
start
├── BFS queue
├── DFS stack
└── A* g+h
│
▼
goalExam tip
Greedy vs A*: h vs g+h.