20 - Spanning and Binary Trees - 9.3, 9.4, 9.5
ucla | MATH 61 | 2022-11-28T18:38
Table of Contents
Definitions
- internal vertices
- vertices that are not “leaf nodes”
- leaf nodes / terminal vertices
- “dead end” vertices in a tree
Big Ideas
Spanning Trees
Spanning Trees
- subgraph
of s.t. is a tree where e.g. spanning trees
Breadth First Search (BFS)
![]() |
e.g. visual
Depth First Search (DFS)
![]() |
e.g. visual
Minimal Spanning Trees (MST)
- the spanning tree of weighted graph
whose sum of weights is the lowest
Prim’s Algorithm
![]() |
e.g. visual
Binary Tree
Binary Tree
- a rooted tree where each vertex has
children - the children are labeled as “right” or “left”
e.g. visual
Full Binary Tree
- a binary tree with each vertex having
children
Thm. Full Binary Tree
- if full binary tree
has internal vertices terminal vertices (leaf nodes)$\implies V(T) = 2i+1$
Resources
📌
**SUMMARY
**