This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: tree in levelorder. List the root, then nodes at depth 1, followed by nodes at depth 2, and so on. You must do this in linear time. Prove your time bound. Q4. (a) Show the result of inserting the following keys into an initially empty 23 tree: 3, 1, 4, 5, 9, 2, 6, 8, 7, 0. (b) Show the result of deleting 0 and then 9 from the 23 tree created in part (a)....
View
Full
Document
This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.
 Fall '06
 CJYuan

Click to edit the document details