aboutsummaryrefslogtreecommitdiff
path: root/src/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heap.c')
-rw-r--r--src/heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/heap.c b/src/heap.c
index 091e761..45902a4 100644
--- a/src/heap.c
+++ b/src/heap.c
@@ -277,11 +277,11 @@ main(void)
277 // Kapitel 5.10, Seite 372 ff. 277 // Kapitel 5.10, Seite 372 ff.
278 T heap[20] = { 18, 18, 16, 9, 7, 1, 9, 3, 7, 5 }; 278 T heap[20] = { 18, 18, 16, 9, 7, 1, 9, 3, 7, 5 };
279 279
280 //heapify(heap, 10); 280 // heapify(heap, 10);
281 assert(is_heap(heap, 10)); 281 assert(is_heap(heap, 10));
282 print_heap(heap, 10); 282 print_heap(heap, 10);
283 283
284 //heap[10] = 13; fixup(heap, 10); 284 // heap[10] = 13; fixup(heap, 10);
285 swap(heap, 0, 9); 285 swap(heap, 0, 9);
286 fixdown(heap, 0, 9); 286 fixdown(heap, 0, 9);
287 287