Chapter 12: Problem 12
a) Let \(T=(V, E)\) be a binary tree. If \(|V|=n\), what is the maximum height that \(T\) can attain? b) If \(T=(V, E)\) is a complete binary tree and \(|V|=n\), what is the maximum height that \(T\) can reach in this case?
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 12: Problem 12
a) Let \(T=(V, E)\) be a binary tree. If \(|V|=n\), what is the maximum height that \(T\) can attain? b) If \(T=(V, E)\) is a complete binary tree and \(|V|=n\), what is the maximum height that \(T\) can reach in this case?
All the tools & learning materials you need for study success - in one app.
Get started for free
Let \(L_{i}\), for \(1 \leq i \leq 4\), be four lists of numbers, each sorted in ascending order. The numbers of entries in these lists are \(75,40,110\), and 50 , respectively. a) How many comparisons are needed to merge these four lists by merging \(L_{1}\) and \(L_{2}\), merging \(L_{3}\) and \(L_{4}\), and then merging the two resulting lists? b) How many comparisons are needed if we first merge \(L_{1}\) and \(L_{2}\), then merge the result with \(L_{3}\), and finally merge this result with \(L_{4}\) ? c) In order to minimize the total number of comparisons in this merging of the four lists, what order should the merging follow? d) Extend the result in part (c) to \(n\) sorted lists \(L_{1}, L_{2}, \ldots, L_{n}\).
Let \(T=(V, E)\) be a tree with \(|V|=n \geq 2\). How many distinct paths are there (as subgraphs) in \(T\) ?
If \(B_{1}, B_{2}, \ldots, B_{k}\) are the biconnected components of a loop-free connected undirected graph \(G\), how is \(\chi(G)\) related to \(\chi\left(B_{i}\right), 1 \leq i \leq k\) ?
a) Let \(T=(V, E)\) be a tree. If \(v \in V\), prove that \(v\) is an articulation point of \(T\) if and only if \(\operatorname{deg}(v)>1\). b) Let \(G=(V, E)\) be a loop-free connected undirected graph with \(|E| \geq 1\). Prove that \(G\) has at least two vertices that are not articulation points.
a) If \(G=(V, E)\) is a forest with \(|V|=v,|E|=e\), and \(\kappa\) components (trees), what relationship exists among \(v, e\), and \(\kappa\) ? b) What is the smallest number of edges we must add to \(G\) in order to get a tree?
What do you think about this solution?
We value your feedback to improve our textbook solutions.