Skip to content

Cancel node-based witness searches early -> ~20% faster CH preparation - #2390

Merged
easbar merged 3 commits into
masterfrom
faster_node_based_wps
Sep 21, 2021
Merged

easbar merged 3 commits into
masterfrom
faster_node_based_wps

Conversation

@easbar

@easbar easbar commented Sep 21, 2021 •

Copy link
Copy Markdown
Member

Any path with equal or smaller weight than the path via the contracted node serves as witness. Therefore we can cancel the witness search as soon as we found such a path and do not have to continue the search until we found the actual shortest path.

With this change also the number of shortcuts becomes smaller. I think this is because we now might accept some of these sub optimal witness paths when previously the search had already stopped due to the visited nodes limit.

@easbar easbar added this to the 4.0 milestone Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant