an algorithm a heuristic a mental set trial and error