Chapter-7. Binary Search Tree
Chapter-7. Binary Search Tree
Trees are particularly useful in computer science, where they are employed in a wide range of
algorithms. For instance, trees are used to construct efficient algorithms for locating items in a list.
They can be used in algorithms, such as Huffman coding, that construct efficient codes saving
costs in data transmission and storage. Trees can be used to study games such as checkers and
chess and can help determine winning strategies for playing these games. Trees can be used to
model procedures carried out using a sequence of decisions. Constructing these models can help
determine the computational complexity of algorithms based on a sequence of decisions, such as
sorting algorithms.
1
https://java2blog.com/binary-tree-inorder-traversal-in-java/
Figure 7.10: preorder traversal
1.8 References
• Kruse, R. L., Ryba, A. J., & Ryba, A. (1999). Data structures and program design in C++
(p. 280). New York: Prentice Hall.
• Shaffer, C. A. (2012). Data structures and algorithm analysis. Update, 3, 0-3.
• Dale, N. B. (2003). C++ plus data structures. Jones & Bartlett Learning.