// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 3333, Fall 2013 // Lab 5: Binary Heap // Date: 10/13/2014 // Comment: The code here is meant to be revised. // //----------------------------------------------------------------- // // Description: This program is to implement a generic binary heap // class template // ***************************************************************** #include #include #include #include #include #include "lab3333_16_head.h" using namespace std; int main() { /********************************************************** Part A: Some practice **********************************************************/ //pratice integer hash table int S = 20; binaryHeapType bh(S); int num, i, j, N=20; bool tag; //load fill up the heap srand(time(0)); for (i=0; i<15; i++) { num = 2 + rand()%100; bh.add(i+1, num); } bh.print(); cout<