<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Dijkstra on Changlin&#39;s Blog</title>
    <link>https://timely-sprinkles-c55fc0.netlify.app/tags/dijkstra/</link>
    <description>Recent content in Dijkstra on Changlin&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 18 Dec 2023 18:39:55 -0600</lastBuildDate><atom:link href="https://timely-sprinkles-c55fc0.netlify.app/tags/dijkstra/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Dijkstra&#39;s Algorithm</title>
      <link>https://timely-sprinkles-c55fc0.netlify.app/posts/dijkstra/</link>
      <pubDate>Mon, 18 Dec 2023 18:39:55 -0600</pubDate>
      
      <guid>https://timely-sprinkles-c55fc0.netlify.app/posts/dijkstra/</guid>
      <description>Dijkstra&amp;rsquo;s Algorithm Given a weighted graph and a source vertex in the graph, find the shortest paths from the source to all the other vertices in the given graph.
The process of the algorithm:
每次从未标记的节点中选择距离出发点最近的节点，标记并收录到最优路径集合中 计算刚加入节点A的邻近节点B的距离（不包含标记的节点），若节点A的距离+节点A到节点B的边长之和&amp;lt;节点B的距离，就更新节点B的距离和前面节点 循环直到目的地被标记
Node Starting Node Previous Node 0 0 1 4 0 2 12 1 3 19 2 4 21 5 5 11 6 6 9 7 7 8 0 8 14 2 From the table we know that the shortest path from node 0 to 4 is 21, we can also backtrace the path using the previous node from above: 4-5-6-7-0.</description>
    </item>
    
  </channel>
</rss>
