However, one's ideal configuration cannot generally be maintained. The question
then again is this: “What is to be preferred in the space of all configurations?” In AI, this
scoring of states is referred to as heuristic evaluation. By defining a heuristic scoring
function (or heuristic function), we formalize what we value in a given configuration of
tiles. Consider how much one should value…