a) 511 data was stored in a computer system. It was later realized the data had been havazardly stored. This makes search and retrieving from the computer system a herculean task. It was suggested that to ease the searching process, the data should be stored in a binary search tree structure. Determine the height of the tree and explain how you arrived at the answer. b) Draw the binary expression tree for the complex expression (f*m) – b*(z+p) c) All passengers who booked a flight at a particular airline were stored as a binary search tree. Unfortunately the person whose data was used as the root node called to cancel the flight. The data was deleted from the booking list. Critically explain how the structure of the booking list will remain as a binary search tree.
a) 511 data was stored in a computer system. It was later realized the
data had been havazardly stored. This makes search and retrieving
from the computer system a herculean task. It was suggested that to
ease the searching process, the data should be stored in a binary
search tree structure. Determine the height of the tree and explain
how you arrived at the answer.
b) Draw the binary expression tree for the complex expression (f*m) –
b*(z+p)
c) All passengers who booked a flight at a particular airline were stored
as a binary search tree. Unfortunately the person whose data was used
as the root node called to cancel the flight. The data was deleted from
the booking list. Critically explain how the structure of the booking
list will remain as a binary search tree.
Step by step
Solved in 3 steps with 4 images