MST

Minimum Spanning Tree

Need to connect all nodes to the tree in the smallest possible way

1, ๋งŒ๋“œ๋Š” ๋ฒ•

Kruskal’s algorithm์— ๋”ฐ๋ผ์„œ ๋งŒ๋“ ๋‹ค. (์ž์„ธํ•œ ์˜ˆ์‹œ๋Š” ์ฐธ๊ณ ์‚ฌ์ดํŠธ[1] ์ฐธ๊ณ ํ•˜๊ธฐ)

2. ๊ทœ์น™ ๋ฐ ํŠน์ง•

๊ทœ์น™1. Check each node is connected and no breaks in the tree.
๊ทœ์น™2. Don’t add an edge if it doesn’t improve connectivity.

ํŠน์ง•1. There may be more than one MST.

์ฐธ๊ณ ์‚ฌ์ดํŠธ

[1] Youtube