What is 2-3 Tree?

This lesson is an introduction to 2-3 trees, its properties, and an example with the basic operations that this data structure offers.

Introduction #

A 2-3 Tree is another form of search tree but is very different from Binary Search Tree. Unlike BST, 2-3 Tree is a balanced and ordered search tree which provides a very efficient storage mechanism to guarantee fast operations. In this chapter, we will take a detailed look at 2-3 Trees’ structure, the limitations it follows, and how elements are inserted and deleted from it.

One key feature of a 2-3 Tree is that it remains balanced, no matter how many insertions or deletion you perform. The leaf nodes are always present on the same level and are quite small in number. This is to make sure the height doesn’t increase up to a certain ...

Access this course and 1400+ top-rated courses and projects.