AI path help

Need help on AI. Not sure how to code works.

The algorithm
[FONT=courier new]f = g + h[/FONT]