Binary Search Tree
1. If a node in a binary search tree has two children, how can its value be deleted using its inorder successor?
2. If a node in a BST has only one child to the right and no left child, how can the node be deleted?
3. In a real BST, deletion takes time when the tree is balanced. Assume an oracle can search and compute the minimum or maximum of a subtree in time. What is the time complexity of an optimal deletion algorithm using this oracle?
4. When deleting a leaf node from a BST, what should be done?
5. Which node can be used to replace a BST node that has two children while preserving the BST ordering property?
6. Which of the following cases is generally the simplest BST deletion case?
7. When deleting a BST node using its inorder successor, where is that successor located?
8. After replacing a BST node with its inorder successor, why is deleting the successor usually simpler than deleting the original two-child node?
9. If a BST node has only a left child, what is the appropriate structural action when deleting that node?