4.5 Going between Rimnicu Vilcea and Lugoj is one example. The shortest path is the Southern one, through Medadia, Dobreta and Craiova. But a greedy search using the straight-line heuristic starting in Rimnicu Vilcea will start the wrong way, heading to Sibiu. Starting at Lugoj, the heuristic will correctly lead us to Mehadia, but then a greedy search will return to Lugoj, and oscillate forever between those nodes.
5.1