You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong weight for edge-based CH when using AStar #2061
changed the title [-]Distance mismatch between CH and Dijkstra on Moscow test map[/-][+]Wrong distance for edge-based CH when using AStar[/+]on Jun 10, 2020
Unfortunately there seem to be cases where AStar finds a worse path than Dijkstra. Therefore I made Dijkstra the default again (I recently changed it to AStar here: #2054) for now here: f738fdf. We should also revisit why not more of our tests failed because of this.
Not sure if the same thing, but I just looked at today's failing test in the debugger, and it doesn't look very wrong to me.
The test complains about a wrong distance -- however, we are not optimizing for distance, but for travel time. The travel time difference between the expected route and the actual route is just 1 millisecond. This could be a rounding error. Meaning there are multiple best paths. Meaning no problem.
The test complains about a wrong distance -- however, we are not optimizing for distance, but for travel time. The travel time difference between the expected route and the actual route is just 1 millisecond. This could be a rounding error. Meaning there are multiple best paths. Meaning no problem.
This can also happen, but was not the (real) problem here. If there are equal weight paths that have different time/distance/nodes that is only counted as 'soft validation' and the tests will only fail when this happens too many times (normally it does not).
Activity
[-]Distance mismatch between CH and Dijkstra on Moscow test map[/-][+]Wrong distance for edge-based CH when using AStar[/+]easbar commentedon Jun 10, 2020
Unfortunately there seem to be cases where AStar finds a worse path than Dijkstra. Therefore I made Dijkstra the default again (I recently changed it to AStar here: #2054) for now here: f738fdf. We should also revisit why not more of our tests failed because of this.
michaz commentedon Jun 19, 2020
Not sure if the same thing, but I just looked at today's failing test in the debugger, and it doesn't look very wrong to me.
The test complains about a wrong distance -- however, we are not optimizing for distance, but for travel time. The travel time difference between the expected route and the actual route is just 1 millisecond. This could be a rounding error. Meaning there are multiple best paths. Meaning no problem.
[-]Wrong distance for edge-based CH when using AStar[/-][+]Wrong weightg for edge-based CH when using AStar[/+][-]Wrong weightg for edge-based CH when using AStar[/-][+]Wrong weighting for edge-based CH when using AStar[/+][-]Wrong weighting for edge-based CH when using AStar[/-][+]Wrong weight for edge-based CH when using AStar[/+]easbar commentedon Dec 17, 2020
This can also happen, but was not the (real) problem here. If there are equal weight paths that have different time/distance/nodes that is only counted as 'soft validation' and the tests will only fail when this happens too many times (normally it does not).