Solved

(A) Set Up a Binary Tree for the Following List

Question 25

Essay

(a) Set up a binary tree for the following list, in the given order, using alphabetical ordering: STOP, LET, THERE, TAPE, NONE, YOU, ANT, NINE, OAT, NUT.
(b) Explain step by step how you would search for the word TEST in your tree.
(c) What is the height of the shortest binary search tree that can hold all 10 words?
(d) Write the preorder traversal of the tree.
(e) Write the postorder traversal of the tree.
(f) Write the inorder traversal of the tree.

Correct Answer:

verifed

Verified

(a)
blured image
(b) In sequence, TEST would be comp...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions