Networks & Graphs

Table of Contents

Trees

Tree definitions:

Theorems/lemmas:

Constructing minimum spanning trees (Kruskal):

  1. Remove all loops and parallel edges, except one with smallest weight

  2. Create edge table in ascending order of weight

  3. Pick smallest edge. If it creates a cycle in the graph, discard it. Otherwise, include it.

  4. Repeat step 3 until there are n-1 edges in the three. This is the minimum spanning tree.

Prim-Jarnik algorithm:

  1. Select any vertex as first of T

  2. Consider which edge connects vertices in T to vertices outside T. Pick the one with minimum weight. Add edge and vertex to T.

  3. Repeat step 2 until T has every verrtex of G.