Heap (data structure)

cosmos 28th September 2017 at 11:49pm
Data structure

https://en.wikipedia.org/wiki/Heap_(data_structure) A Binary tree which is complete and the children are smaller than the parents.

a specialized tree-based data structure that satisfies the heap property: If A is a parent node of B then the key (the value) of node A is ordered with respect to the key of node B with the same ordering applying across the heap. A heap can be classified further as either a "max heap" or a "min heap".

video

Algorithms on heaps