Consider the operation of deleting the root of a binary search tree. If the root has one child, then

A) the root of the subtree should be recursively deleted
B) the element stored in the root node should be replaced with null
C) the reference to the root of the tree should be set to point to the one child
D) the operation should be recursively performed on the one subtree of the root

C) the reference to the root of the tree should be set to point to the one child

Computer Science & Information Technology

You might also like to view...

Which of the following would indicate the usage of fiber?

A) 10BASE-36 B) 10BASE-F C) 10BASE-T4 D) 1000BASE-T

Computer Science & Information Technology

Both document.write() and window.alert() are examples of ____.

A. functions B. methods C. arrays D. events

Computer Science & Information Technology