1
0
Fork 0

More work on max heap.

This commit is contained in:
wael 2022-01-30 15:17:00 +02:00
parent a25860a4ac
commit 829049ed3f
No known key found for this signature in database
GPG Key ID: C0A5FBF4558963D4
1 changed files with 0 additions and 2 deletions

View File

@ -66,8 +66,6 @@ static inline max_heap_t* initialize_max_heap_node_store(void *data);
int initialize_max_heap_recursive_implementation(void **array, size_t index_start, size_t index_end, heap_node_t *root);
/* This helper function is used to recursively fill a sorted array into a new heap. */
max_heap_t* initialize_max_heap_recursive(void **array, size_t index_start, size_t index_end, max_heap_t *heap);
/* This function creates a heap for a sorted array. */
max_heap_t* initialize_max_heap(void **array, int length);
/* This function combines two heaps into one - keeps the orignal ones. */
max_heap_t* merge_max_heaps(max_heap_t *first_heap, max_heap_t *second_heap);
/* This function combines two heaps into one - destroys the orignal ones. */