I am given a map that looks like so:
Every node is connected with its horizontal and vertical (not diagonal) neighbors and all connections have the same cost.
I want to find the best path, from one location to a set of end locations (the one which can be reached quickest). Also note that every node has the ability to be blocked and and thus not be used as a node in the path.
What would be the most efficient algorithm to solve this problem with?
I have thought of maybe A* but find it difficult to apply the multiple endpoint rule.