I have ~6500 nodes with (x,y,z)-coordinates. For my task, I need to find a route from Node A
to Node B
, given that I can only move K
distance between nodes. K
changes between routes (so it's constant while calculating a given route, but for a new start and end node it may be different).
I imagined doing an A* algorithm, but that would mean that I would have to calculate the distance between each "current" node and all other nodes for each jump, which is unfeasable. I could also pre-compute the graph for each increment of K
(1, 2, 3, 4) but that would leave me a massive amount of data (maximum K
would be around 15).
Is there a smart way that, with some precomputation, allows me to quickly lookup such a route. The data set is expected to grow slightly, but would probably never exceed 10.000.