Solved

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

Question 18

Essay

(a) Set up a binary tree for the following list, in the given order, using alphabetical ordering: SHE, SELLS, SEA, SHELLS, BY, THE, SEASHORE.
(b) How many comparisons with words in the tree are needed to determine if the word SHARK is in the tree?
(c) How many comparisons with words in the tree are needed to determine if the word SEAWEED is in the tree?
(d) How many comparisons with words in the tree are needed to determine if the word SHELLS is in the tree?

Correct Answer:

verifed

Verified

(a)
blured image

(b) ...

View Answer

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

Related Questions