Least roads required for shortest path: Multisource, single destination with shortest path from each source

156 Views Asked by At

I have a problem that looks like this: partial solution found

enter image description here

I want to calculate the minimum number of roads required to connect all sources (yellow) to the destination (green). However, I also want to ensure that there is the minimum path length from each source to destination. Diagonals are same move cost as up/down/left/right.

Greedy doesn't work, it won't guarantee min total roads, got any other suggestions? Shown in the image is the possible min paths from each source to the destination, with overlap shown as larger circles.

Edit: greedy example failing:

enter image description here

0

There are 0 best solutions below