Cycle : A cycle is a circuit whose edge list contains no duplicates. It is customary to use to denote a cycle with edges.
A Tree contains no cycle or self-loops.
A forest is an undirected graph whose components are all trees.
is a connected undirected graph.
A Spanning Tree is the spanning subgraph (remove unrequired edges only) of that is a tree.
Minimal Spanning Tree
is the spanning tree with weight of each edge.
Minimal Spanning Tree
Find the minimal spanning tree of a connected, undirected, weighted graph.
Bridge
is a connected undirected graph. is a partition of ,
is a bridge is an edge that connect a vertex in and a vertex in .
is a weighted undirected connected graph. is a partition of , if is the least weighted bridge between , then exists a minimal spanning tree of that include .
Prim's Algorithm
Given a connected undirected graph , find a spanning tree of such that the longest path in is as short as possible.
Alternative waty to find the minimal spanning tree (MST)
An ordered rooted tree is a rooted tree whose subtrees are put into a definite order and are, themselves, ordered rooted trees. An empty tree and a single vertex with no descendants (no subtrees) are ordered rooted trees.
Two Different Ordered Rooted Trees
Binary Tree
(1) A tree consisting of no vertices (the empty tree) is a binary tree
(2) A vertex together with two subtrees that are both binary trees is a binary tree. The subtrees are called the left and right subtrees of the binary tree.
A vertex of a binary tree with two empty subtrees is called a leaf.
All other vertices are called internal vertices.
A full binary tree is a tree for which each vertex has either zero or two empty subtrees.
Binary Sort Tree + Inorder Traversal would create a sorted ascending list.
Binary Sort Tree for 25, 17, 9, 20, 33, 13, and 30.
Expression Tree removed the parenthese.
Let be the number of different binary trees of size ( vertices), .
=
left subtree with vertex * right subtree with vertices +
left subtree with vertex * right subtree with vertices +
left subtree with vertices * right subtree with vertex.
math