推 FRAXIS: Difference Constraints12/17 23:55
推 odanaga: 你可以畫成有向圖來解12/17 23:58
推 irenelove: 點2連到點1 邊的權重是1 以次類推把圖建出來12/18 00:05
→ irenelove: 再新增一點s連到所有點 這些新增的邊的weight都是012/18 00:06
→ irenelove: 再跑bellman-ford12/18 00:06
→ irenelove: *以此12/18 00:07
噢噢原來如此!太感謝各位了!
※ 編輯: panda04056 (61.228.154.42), 12/18/2015 00:09:28