<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>最短路徑 on BenzHub</title><link>https://benzhub.github.io/tags/%E6%9C%80%E7%9F%AD%E8%B7%AF%E5%BE%91/</link><description>Recent content in 最短路徑 on BenzHub</description><generator>Hugo</generator><language>zh-TW</language><lastBuildDate>Fri, 10 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://benzhub.github.io/tags/%E6%9C%80%E7%9F%AD%E8%B7%AF%E5%BE%91/index.xml" rel="self" type="application/rss+xml"/><item><title>最短路徑演算法 — Dijkstra、Bellman-Ford、Floyd-Warshall 完整比較 | 資料結構與演算法</title><link>https://benzhub.github.io/post/javascript/data-structures--algorithms/027-shortest-path/</link><pubDate>Fri, 10 Jul 2026 00:00:00 +0000</pubDate><guid>https://benzhub.github.io/post/javascript/data-structures--algorithms/027-shortest-path/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;最短路徑演算法（Shortest Path Algorithm）&lt;/strong&gt; 是圖論中最核心的問題之一。從 GPS 導航選擇最快路線，到網路封包選擇最短跳數路由，背後都是這一類演算法在運作。本文系統介紹三大主流演算法：&lt;strong&gt;Dijkstra&lt;/strong&gt;（單源正權）、&lt;strong&gt;Bellman-Ford&lt;/strong&gt;（支援負權、可偵測負環）、&lt;strong&gt;Floyd-Warshall&lt;/strong&gt;（全源最短路），並涵蓋 A* 啟發式搜尋與 SPFA 優化。&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>