So in a binomial heap, insertion is ammortized O(1), thus O(n) for n elements. On the other hand deletion is O(log n), so for n inputs, emptying a heap would be something like ~O( n * log n), right?
So when I build my app, it works on multiple machines (that coincidentally maybe all have VS 2017?) but on some other machines it claims missing .dll files
I'm not sure if my logic is correct. But is this how I should go about it: 1. When a node is created, new_node->children = malloc(n*sizeof(node*)) 2. for(i = 0; i < n; i++) new_node->children[i] = NULL
I need to make a n-ary tree where n is dynamically defined, so I made a structure that contains a "struct node** children" since I want to allocate n pointers