A heuristic function, also called simply a heuristic, is a function that ranks alternatives in search algorithms at each branching step based on available information to decide which branch to follow. (from https://en.wikipedia.org/wiki/Heuristic_(computer_science))