Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DijkstraのアルゴリズムとPrim のアルゴリズムの違いを教えてもらえますか? それぞれのアルゴリズムが何をするかを知っています。しかし、私には同じように見えます。ダイクストラのアルゴリズムは最小コスト エッジの合計を格納しますが、プリムのアルゴリズムは最大で 1 つの最小コスト エッジを格納します。これは同じではありませんか?