Advantages of Binary Search Trees over Hash Tables
One advantage that no one else has pointed out is that binary search tree allows you to do range searches efficiently. In order to illustrate my idea, I want to make an extreme case. Say you want to get all the elements whose keys are between 0 to 5000. And actually there is only one … Read more