Minimum Spanning Trees - Prim's Algorithm(최소신장트리-프림 알고리즘)
·
Algorithms/The Greedy Approach
Basic ConceptConsider the problem of removing edges from a connected, weighted, undirected graph G to form a subgraph such that all the vertices remain connected and the sum of the weights on the remaining edges is as small as possible. Such a problem has numerous applications.Road construction: want to connect a set of cities with a minimum amount of road.Telecommunications: want to use a minim..