-
Notifications
You must be signed in to change notification settings - Fork 5
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
"Bug": routing can't find shortest path in every case #16
Comments
We agree on accepting this bug for better performance, because we think the problematic situation occurs seldom or never. |
We should check the performance under following settings: we allow pushing visited nodes into the priority queue. Possible problems:
|
I've implemented a data structure providing following functionality:
With this data structure, the storage is in |
Edit to skip list: Access time in comparison to Java's priority queue is doubled, so the skip list is too slow. |
Possible approximation: |
Maybe the restrictions are used in a wrong way, so not every shortest path could be found. Max comment on this:
The leaving edges depend on the incoming edge, so if a shortest-path would lead through a certain node from a certain edge that enables different outgoing edges than the evaluation of said node before, and such an outgoing edge is only accessible from the incoming edge used at the second evaluation, the algorithm would not provide a correct answer, because the node will not be evaluated two (or more) times.
The correct behaviour could be restored by storing visited nodes in combination with outgoing edges.
The text was updated successfully, but these errors were encountered: