Bifalgorithm post · Brisk · Chapter 1
What is a free tree and how does it relate to a spanning tree?
What is a free tree and how does it relate to a spanning tree? (Brisk · Chapter 1) — "n nodes, there are n − 1 edges. (Think about it!) 4 There appears to be n…
Ideas in this flowchart
- Free trees and spanning trees connect all graph nodes.
- A free tree connecting n nodes has exactly n − 1 edges.
- Adding an edge is redundant, while removing an edge breaks the connection.
- There is no consensus about which concept, free tree or rooted tree, is more basic.
- Some authors call a free tree a “tree” and use “rooted tree” for the other kind.
- Other authors use the opposite terminology.
- Using the full terms avoids confusion, although rooted trees are considered the default concept by the author.
- Prim’s algorithm produces a free tree connecting all nodes with the shortest possible total length.
- This result is why the algorithm is called Prim’s minimal spanning tree algorithm.
- A spanning tree is a free tree that spans, or connects, all the graph’s nodes.
- The darkened edges in the final frame of Figure 5.14 form a free tree.
- Many different free trees can be made from the same set of vertices.
- For example, removing the edge from A to F and adding another edge to F produces a different free tree.
