I have to implement a project for my class and is needed to apply breadth first search, depth first search and LRTA* algorithms to find shortest path.I have a grid and i have to travel from the start position to the finish.In this grid there are many ways and every step has a cost, and I have to apply these algorithms.There are some walls that they stop me, grass that costs 2 units and land costs 1 unit.
I want someone to explain how i have to choose every step when applying bfs,dfs and LRTA*.