Previous Lecture Lecture 20

Lecture 20, Thu 06/06

Deletion from the Binary Search Trees and Course Wrap-Up

Plan for today

Final exam logistics

Final exam type questions

Exam topics

See slides for a more detailed breakdown

Student Questions

Lab review

Review Questions

Refer to Lecture 19 slides or the textbook tree, e.g., Figure 3 in the Search Tree Implementation chapter.

Question 1: What node replaces the deleted node 35?

Remember that we go right and then move all the way to the leftmost child to find the successive value (the immediate next largest value after the one we are deleting).

Question 2: What node replaces the deleted node 17?

A. 7
B. 16
C. 35
*D. 29*
E. 38

Question 3: What node replaces the deleted node 7 (after 5 had been removed)?

A. 2
B. 11
C. 16
D. 9
*E. 8*

Student Questions

Lab09 deadline extension

Lab 09 deadline is now 06/09/2024 11:59 PM