Data Structures and Algorithms
Depth First Traversal
Lab Sheet 08
Answer all questions.
1. What are the three types of Depth First Traversal (DFT)?
2. Briefly explain the identified traversal methods.
3. Explain the terms used in trees.
4. You have been given the following integer array,
Array: 6, 19, 3, 4, 2, 30, 12, 15, 7.
(a) Draw a binary search tree based on the given array.
(b) Get the outputs of post-order, pre-order, and in-order using the tree that you
identified.
5. Identify the practical use of the types of DFT types.
Faculty of Computing - NSBM Green University Town page. 1