소스 검색

Heapify defs

avadapal 2 년 전
부모
커밋
232cf19ae8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      heap.cpp

+ 2 - 0
heap.cpp

@@ -614,7 +614,9 @@ void Heap(MPCIO & mpcio,
         //  std::cout << "num_items " << tree.num_items << std::endl;
         tree.initialize_random(tio, yield);
               // tree.print_heap(tio, yield);
+        #ifdef HEAPIFY
         tree.heapify(tio, yield);
+        #endif
        //tree.print_heap(tio, yield);
 
         std::cout << "\n===== Heapify Stats =====\n";