Want to remove point p = (a, b)
• First find node t which has this point
• Node t discriminates on x (say)
– If t is a leaf node, replace it by null
– Otherwise, find a replacement node r with coordinates (c, d)
– Replace the data at t by (c, d). The kd-tree structure must not
be violated
– Recursively remove point p = (c, d)
• Finding the replacement
– If t has a right child, use the inorder successor
– Otherwise minimum value of the left child is appropriately used