Hide Index
Binary Search Tree
0% completed
Introduction to binary search trees
Height & balance in binary search trees
Recursive searching in binary search trees
- Understanding recursive search
- Implement recursive search
- Understanding recursive minimum search
- Recursively find minimum
- Understanding recursive maximum search
- Recursively find maximum
- Understanding recursive lower bound search
- Recursively find lower bound
- Understanding recursive upper bound search
- Recursively find upper bound
Iterative searching in binary search trees
- Understanding iterative search
- Implement iterative search
- Understanding iterative minimum search
- Iteratively find minimum
- Understanding iterative maximum search
- Iteratively find maximum
- Understanding iterative lower bound search
- Iteratively find lower bound
- Understanding iterative upper bound search
- Iteratively find upper bound
- Closest value
Insertion in binary search trees
Deletion in binary search trees
Constructing a binary search tree
Lowest common ancestor in binary search trees
Iterators in a binary search trees
Pattern: Sorted traversal
Pattern: Reversed sorted traversal
Pattern: Range postorder
Pattern: Two pointer
Assessments
Certificate
Understanding construction from an unsorted array
Constructing a binary search tree from an unsorted array of values is easy. It is not always the best method, but it is one of the easiest.
Algorithm
To construct a binary search tree from a given sequence, we start with an empty binary tree and insert all the elements in the sequence into it individually.
1 of 7
2 of 7
3 of 7
4 of 7
5 of 7
6 of 7
7 of 7
Insert values one at a time in binary search tree
Liking the course? Check our discounted plans to continue learning.