Best First Search This algorithm is same as Depth First Search but a small change is there. A sorted OPEN list is maintained here due to which automatically the node with the best heuristic value comes to the head of the list. In the entire algorithm, only one line needs to be replaced : OPEN append (NEW, tail(OPEN)) with OPEN sort h (append (NEW, tail(OPEN))) If someone wants to include the heuristic value then he has to make required changes in the search node representation.