Tree and Fundamental Circuits
Tree and Fundamental Circuits
Circuits
• Tree is a connected simple graph without any circuits.
• As a graph must have at least one vertex, and therefore so must a
tree. A tree without any vertices is called null tree.
• Similarly, considering only finite graphs, our trees are also finite.
• a tree has to be a simple graph, that is, having neither a self-loop
nor parallel edges.
• The maximum level, lmax of any vertex in a binary tree is call the
height of the tree.
• The minimum possible height of an n-vertex binary tree is
• Where lj is the level of pendant vertex vj, and the sum is taken over
all pendant vertices.
Example
Examples
• How many edges does a full binary tree with 1000 internal
vertices have?
• Suppose 1000 people enter a chess tournament. Use a rooted tree
model of the tournament to determine how many games must be
played to determine a champion, if a player is eliminated after one
loss and games are played until only one entrant has not lost.
(Assume there are no ties.)
• Given N coins, all may be genuine or only one coin is defective. We
need a decision tree with atleast (2N + 1) leaves correspond to the
outputs. Because there can be N leaves to be lighter, or N leaves to
be heavier or one genuine case, on total (2N + 1) leaves.
• As explained earlier ternary tree at level k, can have utmost
3k leaves and we need a tree with leaves of 3k > (2N + 1).
• In other words, we need atleast k > log3(2N + 1) weighing to find the
defective one.
Spanning Trees
• A tree is a subgraph of another graph. A graph has numerous subgraphs – from e
edges, 2e distinct combination are possible.
• Some of these subgraphs will be trees. Out of these trees particular interest is to
find the spanning trees.
• A tree T is said to be a spanning tree of a connected graph G if T is a subgraph of
G and T contains all vertices of G. Spanning tree represents a sort of skeleton of
the original graph G, this is why it is also referred to as a skeleton or scaffolding
of G.
• Applications include
• Cluster Analysis
• Message Broadcasting
• Image Registration
• Image Segmentation
• Feature Extraction
• Handwriting Recognition
On Counting Trees
• Arthur Cayley discovered trees while trying to count the number
of structural isomers of the saturated hydrocarbons CkH2k+2.
• Corresponding to their chemical valences, a carbon atom was
represented by a vertex of degree four and a hydrogen atom by a
vertex of degree one (pendent vertices).
• The total number of vertices in such a graph is
Example are leaf nodes and the blue nodes are the smallest leaf node
for the tree.
Example: Generate the Prufer code from
the given spanning tree.
Example: Generate the Prufer code from
the given spanning tree.
3 5
9
12 8
2 6
Find a spanning tree at a distance of five from spanning
tree as shown in the graph. List all fundamental circuits
with respect to the new spanning tree.
G is an undirected graph with n vertices and 25 edges such that each
vertex of G has degree at least 3. What is the maximum possible
value of n?
• No. of Vertices are: 16.
Count the number of edges in a regular graph of n vertices with
degree d.