nathansttt / hog2

Pathfinding and search testbed/visualization suite. Current code is in PDB-refactor branch.
MIT License
112 stars 55 forks source link

BAE* Necessary Expansions Do Not Count Start and Goal Expansions #94

Open lior8 opened 2 weeks ago

lior8 commented 2 weeks ago

The current count is done in an in-between state where there can be no nodes in queue as we get start out but do not enter its successors. Therefore, the check should be done just before we expand the node.

But that can conflict with the lazy nipping, The approach I am thinking about is to cache the lower bound before closing the node, but it would generate calls for getLowerBound() as number of nodes closed, including all the ones that aren't actually expanded.