Please describe a general problem solving heuristic. For example you might choose means-end analysis, or hill-climbing. Describe how the heuristic works, describe a problem that might be solved well by this kind of heuristic, and then describe a problem for which this heuristic might be inappropriate or suboptimal.