I have a heap where both child nodes of the root are 10, and I'd like to perform an operation to remove the min value 9.
I proceed to replacing the root with its next of kin, 18. However when I bubble down, I am unsure of which direction to take.
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityPicking either should work. The heap property (assuming you have changed it to mean parent $\le$ children) will not be violated.