I think your priority queue is doing O(nlogn) sort for every insert https://github.com/npretto/pathfinding/blob/master/src/algo/...
This should be a heap with O(logn) insert instead to be truly Dijsktra/A*
21–23 of 23 posts
This should be a heap with O(logn) insert instead to be truly Dijsktra/A*
I think your priority queue is doing O(nlogn) sort for every insert https://github.com/npretto/pathfinding/blob/master/src/algo/... This should be a heap with O(logn) insert instead to be truly Dijsktra/A*