Parent nodes are called max-heaps and child nodes are called min-heaps. Once heap is built out of unsorted data, the very first element is the smallest or largest value (based on Max-Heap or Min-Heap).