Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bidir A* has a problem with shortcuts with same start & end node #4609

Open
nilsnolde opened this issue Feb 25, 2024 · 4 comments
Open

bidir A* has a problem with shortcuts with same start & end node #4609

nilsnolde opened this issue Feb 25, 2024 · 4 comments
Labels

Comments

@nilsnolde
Copy link
Member

I've discovered this during the possibly only test that properly tests shortcuts end to end in test/astar.cc. with this map where ABCDE is faster than AXYE, we still take AXYE:

           X-----------Y
          /             \
    1----A               E---2
          \             /
           B--C--------D

I created a failing test which is currently disabled:

TEST(BiDiAstar, DISABLED_test_recost_path_failing) {
.

it seems very similar to the issue with trivial routes and our bidir algorithms.

@nilsnolde nilsnolde added the bug label Feb 25, 2024
@nilsnolde
Copy link
Member Author

This should really be a sufficiently rare problem. I’d rather do the low effort thing and log out if that happens. If we see many of those in a planet build, we can prioritize maybe.

@nilsnolde
Copy link
Member Author

see #4632 (comment).

it's not rare at all!

@radekvermirovsky
Copy link

@nilsnolde Hello Nils, do you have any estimates on how this could impact performance? Could you provide an estimation of how much the current presence of same start-end shortcuts might degrade performance? Its only in bidir A* or costmatrix bidir dijsktra can be also affected?

@nilsnolde
Copy link
Member Author

there's no impact on performance at all @radekvermirovsky .

costmatrix might be affected, I didn't look at that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants