So glad I found this. Dr. Edwards explains these so well. Best I've seen on the internet so far.
@augustuscaeser89396 жыл бұрын
love this man. This man and his amazing glass board has made my class so much easier to understand
@Banthor6 жыл бұрын
What if you wanted to remove a particular node? What would the process be then? For example, if I wanted to remove the node with the value of 17.
@yagzyalcntas5536 жыл бұрын
exactly my question, he spoke as nothing other than root can be removed...
@yagzyalcntas5536 жыл бұрын
@@mutoso wow dude thnx! where did you find this??
@1Eagler5 жыл бұрын
@@mutoso why not always replacing it with A[lastIndex]?
@drcl7429 Жыл бұрын
For those who are wondering: It seems that heaps have a specific use case and that mostly is related to priority queues. This means that taking the top off the heap is dequeuing the item with the min/max priority. Other data structures should be used if you need to do other things. You can remove from anywhere in the heap if you want but its probably not very efficient.