Introduction To AI - Mod 2 Part 2
Introduction To AI - Mod 2 Part 2
• It is the sum of two variables’ values that determines the node it picks at
any point in time.
• At each step, it picks the node with the smallest value of ‘f’ (the sum of ‘g’
and ‘h’) and processes that node/cell.
• ‘g’ is the distance it takes to get to a certain square on the grid from the
starting point, following the path we generated to get there.
• ‘h’ is the heuristic, which is the estimation of the distance it takes to get to
the finish line from that square on the grid.
• Steps:
1. Add start node to list.
2. For all the neighbouring nodes, find the least cost F node.
3. Switch to the closed list. For 8 nodes adjacent to the current node. If the node is not
reachable, ignore it. Else. ...
4. Stop working when you find the destination. It is not possible to find the destination going
through all possible points.
9)