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.
Feed/

What is a free tree and how does it relate to a spanning tree?

Channel

Brisk

1 page

"n nodes, there are n − 1 edges. (Think about it!) 4 There appears to be no consensus as to which of these concepts is the most basic. Some authors refer to a free tree simply as a “tree” — as though this were the “normal” kind of tree — and use the term rooted tree for the other kind. Other authors do the opposite. To avoid confusion, I’ll try to always use the full term (although I admit I’m one who considers rooted trees to be the more important, default concept).\n\nSo basically, if your goal is connecting all the nodes, and you have a free tree, you’re all set. Adding anything is redundant, and taking away anything breaks it. If this reminds you of Prim’s algorithm, it should. Prim’s algorithm produced exactly this: a free tree connecting all the nodes — and specifically the free tree with shortest possible total length. Go back and look at the final frame of Figure 5.14 and convince yourself that the darkened edges form a free tree. For this reason, the algorithm is often called Prim’s minimal spanning tree algorithm. A “spanning tree” just means “a free tree that spans (connects) all the graph’s nodes.” Keep in mind that there are many free trees one can make with the same set of vertices. For instance, if you remove the edge from A to F, and add one from anything else to F, you have a different free tree."

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.