nextupprevious
Next:5.3.1 2-3 Trees: InsertionUp:5. Balanced TreesPrevious:5.2.3 Red-Black Trees: Deletion

5.3 2-3 Trees

Definition Fields of a Node :

Internal Node
p1 k1 p2 k2 p3

p1 : Pointer to the first child
p2 : Pointer to the second child
p3 : Pointer to the third child
k1 : Smallest key that is a descendent of the second child
k2 : Smallest key that is a descendent of the third child  

Leaf Node
key other fields

$ \bullet$ Records are placed at the leaves. Each leaf contains a record (and key)

Example: See Figure 5.23
 
 

Figure 5.23: An example of a 2-3 tree
\begin{figure}\centerline{\psfig{figure=figures/Ftwothree.ps,width=4in}}\end{figure}

Search

Path Lengths




nextupprevious
Next:5.3.1 2-3 Trees: InsertionUp:5. Balanced TreesPrevious:5.2.3 Red-Black Trees: Deletion
eEL,CSA_Dept,IISc,Bangalore