Home | Projects | Notes > Data Structures & Algorithms > Binary Search Trees (BST)

Binary Search Trees (BST)

 

Introduction

A Binary Search Tree (BST) is a type of binary tree where each node follows a specific ordering rule:

BSTs are widely used for efficient searching, insertion, and deletion, with average-case time complexity of O(log n) for balanced trees.

 

binary-search-tree

 

 

Implementation (C++): Non-Recursive

Header (bstree.hpp)

Source (bstree.cpp)

Test Driver