Content deleted Content added
Undid revision 872683431 by 134.34.7.218 (talk) cited below | →Best case and worst case heights: make h consistent | ||
Line 117: ==Best case and worst case heights== Let ''h'' be the height of the classic B-tree; let the root node be height 0. Let ''n'' > 0 be the number of entries in the tree.<ref>If ''n'' is zero, then no root node is needed, so the height of an empty tree is not well defined.</ref> Let ''m'' be the maximum number of children a node can have. Each node can have at most ''m''−1 keys. It can be shown (by induction for example) that a B-tree of height ''h'' with all its nodes completely filled has {{nowrap|1=''n'' = ''m''<sup>''h''+1</sup>−1}} entries. Hence, the best case height of a B-tree is: : <math>h_{\mathrm{min}} = \lceil \log_{m} (n+1) \rceil -1</math> Let <math>d</math> be the minimum number of children an internal (non-root) node can have. For an ordinary B-tree, <math> d = \left\lceil m/2 \right\rceil. </math> |
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025