浏览代码

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";