An Array Implementation of Binary Heaps

For each node a in A, if a is located at index i, then: For the children of the root  1 :