Thursday, November 25, 2021

Ask HN: Pathfinding algorithm to find all shortest k paths between two nodes?

Im developing a city builder game and want to simulate citizens walking from point A to point B, but have each citizen take a random k shortest path to reach their destination. This is to avoid clumping that you'll see if you use Dijkstra's or flow fields (since these return only one available path). I will also use this for cars, so the algorithm must handle weighted and directed edges.

I have created my own solution, but I'm always looking for more optimal algorithms.


Comments URL: https://news.ycombinator.com/item?id=29344011

Points: 2

# Comments: 0



from Hacker News: Newest https://ift.tt/32yzisl
via IFTTT

No comments:

Post a Comment

Nvidia confirms the Switch 2 supports DLSS, G-Sync, and ray-tracing

Article URL: https://arstechnica.com/gadgets/2025/04/nvidia-confirms-the-switch-2-supports-dlss-g-sync-and-ray-tracing/ Comments URL: https...