A. Simulated annealing allows occasional moves to worse solutions to escape local optima, whereas hill climbing only moves to better solutions.