Using the A* search alghorithm is there anything you can do to detect if goal is unreachable?
Otherwise the alghorithm ends up traversing the entire graph, which is unfortunate on really large sets
If not is there any variant of A* or similiar alghorithm that can do this while still finding the shortest path?
For example:
s = start
f = goal
passable = 1, impassable = 0
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 0 0 0 1 1
1 1 0 f 0 1 1
1 1 0 0 0 1 1
1 1 1 1 1 1 1
1 1 1 s 1 1 1