I'm confused about the final image after a delete-max operation. When 87 is deleted does 48 get brought to the spot that 87 once held? Does the rest of the tree not change after?
Add a comment |
1 Answer 1
No. 78 would be bubbled up to fill the spot that 87 once held.
You should read the original paper: Min-Max Heaps and Generalized Priority Queues: http://www.cs.otago.ac.nz/staffpriv/mike/Papers/MinMaxHeaps/MinMaxHeaps.pdf
answered Apr 8, 2016 at 14:43
Jim Mischel
135k2525 gold badges197197 silver badges377377 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
- The Overflow Blog
-
- Featured on Meta
-
-
-
Related
Hot Network Questions
- A link between polynomial function and power
- How to use ISO 8601 dates in a sentence?
- What does sectarian mean/imply in this passage?
- Is there a construction of the Everywhere doubled line for which homogeneity is apparent in the representation?
- Short story: jumping to/from FTL travel affects body and mind at different rates
- Is it a problem if I don’t have a recommendation letter from my thesis advisor due to retirement?
- The Optimal Way
- Short film about man that saw gore and blood as cake/candy/good instead of disturbing
- Does the content of LUKS disks become encrypted again at unmount or at power-off
- Automatically repeat meshes on top of each other with geometry nodes
- What term describes a person who always remains ill?
- Getting notified when X11 window is minimized and restored
- Does the passport one use to enter and leave a country sometimes determine which passport one must use when entering the next country?
- Why did West Berlin police sometimes thwart escape attempts from East Berlin?
- Are there any general expectations for the outputs of a deterministic process?
- Why are novel, easier music notation systems not widely accepted?
- Is there significance in Jesus's specifications "all of you" and "for many" in Matthew 26:26-28, the Lord's Supper?
- Does a Monopoly housing shortage auction have a minimum price?
- How to express a series of coughs when you have a cough?
- Is the bottom panel of my dishwasher installed correctly?
- A system of 1st order non-linear PDEs
- Was the second copy of the FAT ever used for anything?
- Invariance of the interval in Schutz - maths error?
- In Stepwise regression, should one use R² or adjusted R² to describe the change in explained variance contributed by each variable?
lang-cpp