bendlogan6727 bendlogan6727
  • 19-07-2019
  • Computers and Technology
contestada

What is the height of the tallest possible red-black tree containing 31 values?

Respuesta :

ExieFansler ExieFansler
  • 23-07-2019

Answer:

The height of tallest possible red-black tree having 31 values is 10.

Explanation:

The height of tallest possible red-black tree = 2㏒₂(n+1)

here we have n=31 So substituting the value of n in the equation.

=2㏒₂(31+1)

=2㏒₂(32)

=2㏒₂(2⁵)                   since ㏒(aⁿ)=n㏒(a)  

=2x5㏒₂(2)

=10㏒₂(2)                   since ㏒ₙ(n)=1.

=10.

Answer Link

Otras preguntas

2. Explain how the distribution and availability of resources might influence population density?
What is the area of a triangle whose vertices are R(3, 4), S(6, 2), and T(7, 10)? Enter your answer in the box.
What is the purpose of using facts and data in your argument essay?
Analyze diction: "Marian leaned back rigidly in her chair." Why did Welty choose "rigidly?"
Hi Spain, my name is Lola. It is a beautiful cool summer day in Madrid. This is the weather forecast for the sixth of June soccer game. Lions play tigers in the
What were a few factors during the Korean War that led the United States to seek an armistice with North Korea and China?
Please help me math
How is this theme developed in Julius Caesar? Often, people say one thing, but do another. Antony only speaks to the people when the situation calls for it. Th
what is poetry please help
15. Consider any eight points such that no three are collinear. How many lines are determined?