https://de.wikipedia.org/w/api.php?action=feedcontributions&feedformat=atom&user=Cacadril Wikipedia - Benutzerbeiträge [de] 2025-05-18T07:07:31Z Benutzerbeiträge MediaWiki 1.45.0-wmf.1 https://de.wikipedia.org/w/index.php?title=(a,_b)-Baum&diff=143299030 (a, b)-Baum 2009-02-22T19:42:33Z <p>Cacadril: Increased language precision. Correct factual error, a tree can be empty in which case the root has no children.</p> <hr /> <div>In [[computer science]], an '''(a,b) tree''' is a specific kind of [[Tree traversal|search tree]]. <br /> <br /> An (a,b) tree has all of its [[leaf node|leaves]] at the same depth, and all internal [[Node (computer science)|nodes]] have between &lt;math&gt;a&lt;/math&gt; and &lt;math&gt;b&lt;/math&gt; [[Child node|children]], where &lt;math&gt;a&lt;/math&gt; and &lt;math&gt;b&lt;/math&gt; are integers such that &lt;math&gt;2 \le a \le (b+1)/2&lt;/math&gt;. The root may have as few as zero children.<br /> <br /> == Definition ==<br /> Let &lt;math&gt;a, b \in N&lt;/math&gt; such that &lt;math&gt;a \leq b&lt;/math&gt;. Then tree a tree ''T'' is an '''(a,b) tree''' when:<br /> * Every inner node except the root has at least &lt;math&gt;a&lt;/math&gt; and maximally &lt;math&gt;b&lt;/math&gt; child nodes.<br /> * Root has maximally &lt;math&gt;b&lt;/math&gt; child nodes.<br /> * All paths from the root to the leaves are of the same length.<br /> <br /> == Inner node representation ==<br /> Every inner node &lt;math&gt;v&lt;/math&gt; has the following representation:<br /> * Let &lt;math&gt;\rho_v&lt;/math&gt; be the number of child nodes of node v.<br /> * Let &lt;math&gt;S_v[1 \dots \rho_v]&lt;/math&gt; be pointers to child nodes.<br /> * Let &lt;math&gt;H_v[1 \dots \rho_v - 1]&lt;/math&gt; be an array of keys such that &lt;math&gt;H_v[i]&lt;/math&gt; equals the largest key in the subtree pointed to by &lt;math&gt;S_v[i]&lt;/math&gt;.<br /> <br /> ==See also==<br /> *[[B-tree]]<br /> <br /> ==References==<br /> * {{DADS|(a,b)-tree|abtree}}<br /> <br /> [[Category:Trees (structure)|A,b tree]]<br /> <br /> {{datastructure-stub}}<br /> <br /> [[cs:(a,b)-strom]]</div> Cacadril