I want to find the solution to the problem shown
I am new to motion planning and also dont know much about graph based search algorithms. Here the "red" obstacles are not already known. Without red obstacles, i can find shortest path using BFS. Now in presence of red obstacles, which is not already known as blue, i am thinking to apply DFS to first fully determine the location of red obstacles and then BFS to solve the shortest path problem. However i doubt whether this is what the the best approach is. I dont know any motion planning algorithms. So it would be great if someone can help me giving few hints.