Machine Learning.
Each node stores the path taken to get there and the cost of this pass. The enqueue function places the expanded nodes, next, onto the queue according to some variable ordering that can yield depth-first, breadth-first, greedy, beam, hill-climbing, and A* search (among others). Since most search