Introduction to Algorithms Third Edition The (binary) heap data structure is an array object that we can view as anearly complete binary tree (see Section B.5.3), as shown in Figure 6.1. Eachnode of the tree corresponds to an element of the array. Th…