seung-lab / dijkstra3d

Dijkstra's Shortest Path for 6, 18, and 26-Connected 3D (Volumetric) Image Volumes
GNU General Public License v3.0
71 stars 13 forks source link

Bidirectional Dijkstra #2

Closed william-silversmith closed 4 years ago

william-silversmith commented 5 years ago

Dijkstra's algorithm is a bottleneck in Kimimaro. Would it be possible to make it faster in target mode?

https://en.wikipedia.org/wiki/Bidirectional_search

william-silversmith commented 5 years ago

Since we are literally searching in 3D space, a rough approximation of how much faster it would be is (4/3 pi (2r)^3 ) / (2 x 4/3 pi r^3 ) = 4x in free space