Professional Documents
Culture Documents
INFO 136 Assignment 2
INFO 136 Assignment 2
1. Suppose the keys on the middle row of a standard keyboard (ASDFGHJKL) are inserted
in succession into an initially empty binary search tree. Draw the tree after this sequence
of insertions has been made. [10]
2. Suppose the keys on the middle row of a standard keyboard (ASDFGHJKL) are inserted
in succession into an initially empty 2-3 tree. Draw diagrams to illustrate the growth of the
tree, showing the tree just before and just after all splits. [10]
3. The following program compiles and runs. What is the output of this program? [10]
Page 1 of 1