This document outlines the time complexities of common operations on binary search trees (BST). It shows that insertion, search, and deletion have average and best case complexities of O(log n) but worst case of O(n), while space requirements are O(n).
This document outlines the time complexities of common operations on binary search trees (BST). It shows that insertion, search, and deletion have average and best case complexities of O(log n) but worst case of O(n), while space requirements are O(n).
This document outlines the time complexities of common operations on binary search trees (BST). It shows that insertion, search, and deletion have average and best case complexities of O(log n) but worst case of O(n), while space requirements are O(n).