FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpplib/docs/graph/minimumSpanningTree.md at main · edge2992/cpplib · GitHub
edge2992
/
cpplib
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpplib
/
docs
/
graph
/
minimumSpanningTree.md
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (15 loc) · 549 Bytes
Breadcrumbs
cpplib
/
docs
/
graph
/
minimumSpanningTree.md
Copy path
File metadata and controls
21 lines (15 loc) · 549 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
title
Minimum Spanning Tree (Kruskal)
documentation_of
graph/maximumSpanningTree.hpp
概要
最小全域木を求めるアルゴリズム。
$ O(E \log V)$
辺のソートに一番時間がかかる。
あとは全ての辺を一度見るだけ。
実装のヒント
辺を小さい順に追加していく
閉路ができなければその辺は最小全域木の辺となる。
閉路の確認をUnion Find木で行う。
参考
Luzhiled's Library
Back
|
FazBrowse Home
|
New Git URL