A Search* computes a cost function , where:

  • is the cost from the initial state to
  • is the estimated distance of from the goal state

We choose the state with the lowest value of when expanding nodes.