Binary Trees


Introduction

A linked list makes it easier to store a variable amount of data.  However, since access is only available at the head and current nodes, they can be difficult to search/access.  Binary trees offer an advantage -- by using two pointers instead of one, it is now possible to use binary search instead of linear search.  Unfortunately, it also becomes more difficult to do linear search in that a tree traversal is now required.
 

Resources

Back to Main Menu