In This concept , we are maintaining heap which contains 3 things , mainly :-> element, element-index, array-index , in the 2d vector ,
I want to ask , on which basis value does minheap is build , we know on basis of element value , but how does it know , it have to build min heap on it , and Can we change it accordingly and How?