Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Find the height of \({{\bf{B}}_{\bf{k}}}\). Prove that your answer is correct.

Short Answer

Expert verified

Therefore, the height of \({{\bf{B}}_{\bf{k}}}\) is k.

Step by step solution

01

General form

Principle of Binomial trees: The binomial trees \({{\bf{B}}_{\bf{i}}}\), \({\bf{i = 0,1,2,}}...{\bf{,}}\) are ordered rooted trees defined recursively:

Basis step: the binomial tree \({{\bf{B}}_0}\) is the tree with a single vertex.

Recursive step: Let k be a nonnegative integer. To construct the binomial tree \({{\bf{B}}_{{\bf{k + 1}}}}\), add a copy of \({{\bf{B}}_{\bf{k}}}\) to a second copy of \({{\bf{B}}_{\bf{k}}}\) by adding an edge that makes the root of the first copy of \({{\bf{B}}_{\bf{k}}}\) the leftmost child of the root of the second copy of \({{\bf{B}}_{\bf{k}}}\).

Principle of Mathematical induction: To prove that \({\bf{P}}\left( {\bf{n}} \right)\) is true for all positive integers n, where \({\bf{P}}\left( {\bf{n}} \right)\) is a propositional function, we complete two steps:

Basis step: We verify that \({\bf{P}}\left( 1 \right)\) is true.

Inductive step: We show that the conditional statement \({\bf{P}}\left( {\bf{k}} \right) \to {\bf{P}}\left( {{\bf{k + 1}}} \right)\) is true for all positive integers k.

02

Estimation of the height

Referring Exercise 13: The graph trees are shown below.

Now, estimate height in the first 5 binomial trees.

Since, \({{\bf{B}}_0}\)has 0 height. And \({{\bf{B}}_1}\) has 1 height.

Similarly, the height of \({{\bf{B}}_{\bf{k}}}\) is k.

03

Proof the answer

To prove: \({{\bf{B}}_{\bf{k}}}\) has height k.

Prove that by using induction method.

Let \({\bf{P}}\left( {\bf{n}} \right)\) be “\({{\bf{B}}_{\bf{n}}}\) has height n.”

Basis step:

Put \({\bf{n = 0}}\).

Then, \({{\bf{B}}_0}\) has exactly one vertex. Since the root is at level 0, the height of \({{\bf{B}}_0}\) is then 0.

Thus \({\bf{P}}\left( 0 \right)\) is true.

Inductive step:

Let \({\bf{P}}\left( {\bf{k}} \right)\) be true. Thus \({{\bf{B}}_{\bf{k}}}\) has height k.

We need to prove that \({\bf{P}}\left( {{\bf{k + 1}}} \right)\)is true.

Since, \({{\bf{B}}_{{\bf{k + 1}}}}\) consists of two copies of \({{\bf{B}}_{\bf{k}}}\), where one of the copies of \({{\bf{B}}_2}\) is moved down one level, the height of \({{\bf{B}}_{{\bf{k + 1}}}}\) is higher than the height of \({{\bf{B}}_{\bf{k}}}\). Thus \({{\bf{B}}_{{\bf{k + 1}}}}\) has height \({\bf{k + 1}}\).

So, \({\bf{P}}\left( {{\bf{k + 1}}} \right)\) is true.

Conclusion: So, \({{\bf{B}}_{\bf{k}}}\) has height k.

Hence proved.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Show that there is a unique minimum spanning tree in a connected weighted graph if the weights of the edges are all different.

Show that Sollin’s algorithm requires at most \({\bf{logn}}\) iterations to produce a minimum spanning tree from a connected undirected weighted graph with \({\bf{n}}\) vertices.

Sollin's algorithm produces a minimum spanning tree from a connected weighted simple graph \({\bf{G = (V,E)}}\) by successively adding groups of edges. Suppose that the vertices in \({\bf{V}}\) are ordered. This produces an ordering of the edges where \({\bf{\{ }}{{\bf{u}}_{\bf{0}}}{\bf{,}}{{\bf{v}}_{\bf{0}}}{\bf{\} }}\) precedes \({\bf{\{ }}{{\bf{u}}_{\bf{1}}}{\bf{,}}{{\bf{v}}_{\bf{1}}}{\bf{\} }}\) if \({{\bf{u}}_{\bf{0}}}\) precedes \({{\bf{u}}_{\bf{1}}}\) or if \({{\bf{u}}_{\bf{0}}}{\bf{ = }}{{\bf{u}}_{\bf{1}}}\) and \({{\bf{v}}_{\bf{0}}}\) precedes \({{\bf{v}}_{\bf{1}}}\). The algorithm begins by simultaneously choosing the edge of least weight incident to each vertex. The first edge in the ordering is taken in the case of ties. This produces a graph with no simple circuits, that is, a forest of trees (Exercise \({\bf{24}}\) asks for a proof of this fact). Next, simultaneously choose for each tree in the forest the shortest edge between a vertex in this tree and a vertex in a different tree. Again the first edge in the ordering is chosen in the case of ties. (This produces a graph with no simple circuits containing fewer trees than were present before this step; see Exercise \({\bf{24}}\).) Continue the process of simultaneously adding edges connecting trees until \({\bf{n - 1}}\) edges have been chosen. At this stage a minimum spanning tree has been constructed.

Show that the addition of edges at each stage of Sollin’s algorithm produces a forest.

Build a binary search tree for the word’s oenology,phrenology, campanology, ornithology, ichthyology, limnology, alchemy, and astrology using alphabetical order.

Devise an algorithm based on breadth-first search for finding the connected components of a graph.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free