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

what is the largest possible number of internal nodes in a redblack tree with black height k? what is the smallest possiblenumber?

Respuesta :

KrystaCort KrystaCort
  • 01-08-2019

Answer:

A Red Black Tree is a type of self-balancing(BST) in this tree ,each node is red or black colored. The red black tree meets all the properties of the binary search tree, but some additional properties have been added to a Red Black Tree.

A Red-Black tree's height is O(Logn) where (n is the tree's amount of nodes).

In a red-black tree with black height k

The maximum number of internal nodes is [tex]2^{2k}[/tex] [tex]-1[/tex].

The smallest possible number is [tex]2^{k}[/tex] [tex]-1[/tex].

Answer Link

Otras preguntas

the software that was developed to handle the increasing volumes of data is called ...
The ability of typhoid to spread can best be attributed to:__. a. bacteria in unclean water. b. the lack of good medicine. c. an unhealthy lifestyle. d. mosquit
NEED URGENT HELP PLEASE!
What famous person inspires you?
a client with hypervolemia asks the nurse by what mechanism the sodium–potassium pump will move the excess body fluid. what is the nurse's best answer?
The Pact Movie Guide - Back Side PLEASE ANSWER!
The point of a square pyramid is cut off, making each lateral face of the pyramid a trapezoid with the dimensions shown. 1 in. 1 in. 3 in. What is the area of o
if you add a competitive inhibitor of enzyme e1 to a cell, which species would increase in concentration in the cell?
valentine for erstern mann
use the homgraph to construst a sentence use word books​