210k views
5 votes
Describe the nodes in a 2-4 tree.

User Josephap
by
6.4k points

1 Answer

1 vote

Answer:

The node of the 2-4 tree can have at most three values.

There are basically 3 types of nodes in the 2-4 tree which are as following:-

  1. 2-Node.
  2. 3-Node.
  3. 4-Node.

2-Node:-It contains 1 data element and two child pointers.

3-Node:-It has 2 data elements and three child pointers.

4-Node:-It has 3 data elements and four child pointers.

There is also leaf node which can contain 2,3 or 4 data elements but has no child pointers.

User RaR
by
6.0k points