Question: Recursive Definitions and Structural Induction Consider the following recursive definition of a set of a set of full binary trees: 2 Base Case: A single
Recursive Definitions and Structural Induction
Consider the following recursive definition of a set of a set of full binary trees:
Base Case: A single vertex is a full binary tree, and we call this vertex a root of that tree.
Recursive Case: If v is a single vertex and T and T are two FBT elements ie two
full binary trees with roots respectively v and v then thefollowing is a full binary tree with
root v: A vertex v with a left outgoing edge from v to the root of T and a right outgoing edge
from v to the root of T
More Treerelated Terminology: A vertex of a binary tree which has no outgoing edge is called
a leaf, and a vertex which does have outgoing edges is called an internal node.
Denote the set of full binary trees as FBT and do the following three things:
Define recursively function L : FBT N st LT is a number of leaves in T
Define recursively function I : FBT N st IT is a number of intenal nodes in T
Use structural induction to prove that LT IT for every T in FBT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
