Algorithm for finding the minimum area tree of an undirected connected graph
O(E log E)
Add the cost of the sides from the cheapest to the least expensive to avoid creating a closed channel.
Minimum Global Tree (Kruskal Method and UnionFind) - Algorithm Workshop
This page is auto-translated from /nishio/クラスカル法 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.