Skip to content

Landmarks+QueryGraph bug - #1747

Closed
michaz wants to merge 2 commits into
masterfrom
bug-1532
Closed

michaz wants to merge 2 commits into
masterfrom
bug-1532

Conversation

@michaz

@michaz michaz commented Oct 13, 2019 •

Copy link
Copy Markdown
Member

I think this was all about finding the closest non-virtual node to the destination node, i.e. with Dijkstra, instead of guessing. Actually, it's less code than the workaround.

Correcting for the edge length is not necessary for correctness, I think [citation needed]. And I'm sure it's not necessary for the current node v (we can just return 0 if it's virtual*). If anything, something has to be done for the destination node (a or b), but so far I don't see anything failing.

*) That shouldn't be a performance problem. It should just mean that the algorithm behaves like Dijkstra (approximation 0) until it has expanded the virtual edges around a and b, and when it finds virtual edges on the way, it should just "explode" into them before doing anything else. Seems safe.

@michaz

michaz commented Oct 13, 2019

Copy link
Copy Markdown
Member Author

Oops, perhaps we have to tell Dijkstra not to allocate big maps for a small search (same as with MapMatching a year ago).

@michaz

michaz commented Oct 13, 2019 •

Copy link
Copy Markdown
Member Author

Btw, this is more important than it may look: Being able to do the right thing when no landmark distance is available for a node (also for other reasons than because it is virtual) is an ingredient of things to come, like CH-ALT.

@michaz michaz closed this Oct 13, 2019
@michaz
michaz deleted the bug-1532 branch April 22, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant