1 /* Authors: Arnaud Legrand */
3 /* This program is free software; you can redistribute it and/or modify it
4 under the terms of the license (GNU LGPL) which comes with this package. */
9 typedef struct xbt_heapItem {
12 } s_xbt_heapItem_t ,*xbt_heapItem_t;
14 typedef struct xbt_heap {
23 #define RIGHT(i) 2*i+1
25 #define KEY(H,i) ((H->items)[i]).key
26 #define CONTENT(H,i) ((H->items)[i]).content
28 void xbt_heap_maxHeapify(xbt_heap_t H);
29 void xbt_heap_increaseKey(xbt_heap_t H, int i);