6.20. SummaryΒΆ
In this chapter we have looked at the tree data structure, which enables us to write many interesting algorithms. We have looked at algorithms that use various kinds of trees to do the following:
A binary tree for parsing and evaluating expressions.
A binary tree for implementing the map ADT.
A balanced binary tree (AVL tree) for implementing the map ADT.
A binary tree to implement a min heap.
A min heap used to implement a priority queue.
You have attempted of activities on this page