Spanning Tree 전자공학이론/이산수학2015. 12. 10. 01:32
Spanning Tree
A tree T is a spannig tree of a graph G if T is a subgraph of G that contains all of the vertices of G.
method to find a spanning tree
Breadth-First search is a method to process all the vertices on a given level before moving to the next-higher level.
Depth-First search is a method to proceeds to successive levels in a tree at the earliest possible opportunity.
Breadth-First search Depth-First search
Minimal spanning tree
Let G be a weighted graph. A minimal spanning tree of G is a spanning tree of G with minimum weight.
Algorithm to find a minimal spanning tree
Prim's Algorithm begins with a single vertex. Then at each iteration, it adds to the current tree a minimum-weight edge that does not complete a cycle.
Kruskal's algorithm find the edge in the graph with smallest weight that does not complete a cycle.
Prim's Algorithm
Kruskal's algorithm
'전자공학이론 > 이산수학' 카테고리의 다른 글
Binary Tree (0) | 2015.12.10 |
---|---|
Tree (0) | 2015.12.10 |
Isomorphic Graphs / Homeomorphic graphs/ Planar graph (0) | 2015.12.09 |
A shortest-path algoritnm (0) | 2015.12.09 |
Euler cycle & Hamiltonian cycle (0) | 2015.12.09 |