next up previous
Next: 5.3.2 2-3 Trees: Deletion Up: 5.3 2-3 Trees Previous: 5.3 2-3 Trees

5.3.1 2-3 Trees: Insertion

For an example, see Figure 5.24.

  
Figure 5.24: Insertion in 2-3 trees: An example
\begin{figure}
\centerline{\psfig{figure=figures/Ftwothreeins.ps,width=5in}}
\end{figure}


  
Figure 5.25: Deletion in 2-3 trees: An Example
\begin{figure}\centerline{\psfig{figure=figures/Ftwothreedel.ps,width=5in}}
\end{figure}

Insert (x)

1.
Locate the node v, which should be the parent of x
2.
If v has two children,
3.
If v has three children,


next up previous
Next: 5.3.2 2-3 Trees: Deletion Up: 5.3 2-3 Trees Previous: 5.3 2-3 Trees
eEL,CSA_Dept,IISc,Bangalore