Best heuristics aren't just trial and error
Heuristic searches don't necessarily rely on trial and error. Programs can be structured so that a heuristic method moves the search ever closer to a problem solution without the need for redundant backtracking.
Zenon Pylyshyn (1974).