Content deleted Content added
Qrwe~enwiki (talk | contribs) m Improve listing format in "Deletion" subsection. Tag: Reverted |
Qrwe~enwiki (talk | contribs) m Clarify/summarize the three cases in the "Deletion" subsection. Tag: Reverted |
||
Line 153:
===Deletion===
Deletion of a node, say <math>\text{D}</math>, from a binary search tree <math>\text{BST}</math> should abide three cases
<ol>
<li>
<li>
<li>
<ul>
<li>If <math>\text{E}</math> is {{nowrap|<math>\text{D}</math>'s}} immediate right child, <math>\text{E}</math> gets elevated and <math>\text{E}</math>'s left child pointer is made point to {{nowrap|<math>\text{D}</math>'s}} initial left sub-tree, as shown in fig. 2 part (c).
|