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:

Verified
(a)

(b) ...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
(b) ...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q5: Use backtracking to find a sum of
Q14: Use the merge sort to sort the
Q15: The string <span class="ql-formula" data-value="p\
Q16: fill in the blanks.<br>-The minimum number of
Q17: fill in the blanks.<br>-If T is a
Q19: fill in the blanks.<br>-There are _ full
Q20: Describe the difference between Prim's algorithm and
Q21: refer to this graph. <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB6843/.jpg"
Q22: refer to the tree <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB6843/.jpg" alt="refer
Q23: No tree has a Hamilton path.