I want to prove a binary tree with $2^n$ leaves has expected depth at least $n$. Expected depth is calculated as average path length in a tree from root to a leaf. It's obvious for a complete binary tree of depth $n$, but there are many other trees with $2^n$ leaves. Their depth is higher, but how to prove the average path length would be $\geq n$.
2026-04-03 04:39:21.1775191161
Average path length of a binary tree with $2^n$ leaves
570 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in DISCRETE-MATHEMATICS
- What is (mathematically) minimal computer architecture to run any software
- What's $P(A_1\cap A_2\cap A_3\cap A_4) $?
- The function $f(x)=$ ${b^mx^m}\over(1-bx)^{m+1}$ is a generating function of the sequence $\{a_n\}$. Find the coefficient of $x^n$
- Given is $2$ dimensional random variable $(X,Y)$ with table. Determine the correlation between $X$ and $Y$
- Given a function, prove that it's injective
- Surjective function proof
- How to find image of a function
- Find the truth value of... empty set?
- Solving discrete recursion equations with min in the equation
- Determine the marginal distributions of $(T_1, T_2)$
Related Questions in GRAPH-THEORY
- characterisation of $2$-connected graphs with no even cycles
- Explanation for the static degree sort algorithm of Deo et al.
- A certain partition of 28
- decomposing a graph in connected components
- Is it true that if a graph is bipartite iff it is class 1 (edge-coloring)?
- Fake induction, can't find flaw, every graph with zero edges is connected
- Triangle-free graph where every pair of nonadjacent vertices has exactly two common neighbors
- Inequality on degrees implies perfect matching
- Proving that no two teams in a tournament win same number of games
- Proving that we can divide a graph to two graphs which induced subgraph is connected on vertices of each one
Related Questions in TREES
- Explanation for the static degree sort algorithm of Deo et al.
- Finding height of a $k$-ary tree
- Clique-width of a tree
- count "informative" paths in tree
- If the weight of edge E $e$ of an MST is decreased by $\delta$. Could total weight of MST decrease by more than $\delta$.
- Probability of two randomly selected leaves of a tree to be connected only at the root
- Proof in graph theory: maximum degree and number of leaves.
- Graph Theory: Number of vertices in a tree.
- The number of, and an enumeration for, the set of full subtrees of the full complete binary tree
- Is the maximum link length function convex?
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
We need to prove that for a binary tree with $N$ leaves, the average depth is at least $\log_2 N$. We can prove this by induction. For $N=1$, that is for a single node tree, the depth is $0=\log_21$. For all $n<N$ we make the inductive hypothesis that average depth of a binary tree with $n$ leaves is $\ge\log_2n$.
Now consider a binary tree with $N$ leaves. Any binary tree can be written as the union of the root, it left subtree and its right subtree. Supoose the number of leaves of the left subtree be $n_l$ and that of the right subtree is $n_r$. Then $N=n_l+n_r$. We have $n_l,n_r<N$ (I am assuming $n_l,n_r>0$. Otherwise if $n_l=0$, then $n_r=N$ and we look at the right subtree only and carry on the same argument). Now the average depth (d) of the original tree will be one more than the sum of the average depth (d_l) of the left subtree weighted by its proprtion of leaves ($\frac{n_l}{N}$) and the average depth (d_r) of the right subtree weighted by its proprtion of leaves ($\frac{n_r}{N}$),i.e., $$d=\frac{n_l}{N}d_l+\frac{n_r}{N}d_r+1\ge\frac{n_l}{N}\log_2n_l+\frac{n_r}{N}\log_2n_r+1$$ Thus we need to show $$\frac{n_l}{N}\log_2n_l+\frac{n_r}{N}\log_2n_r+1\ge\log_2N$$ or, equivalently $$\frac{n_l}{N}\log_2\frac{n_l}{N}+\left(1-\frac{n_l}{N}\right)\log_2\left(1-\frac{n_l}{N}\right)+1\ge0$$
This follows from $a\log_2a+(1-a)\log_2(1-a)\ge-1$ for $a<1$ (Can you prove this?).