/* memalloc.c: EECS111 exercise on memory allocation strategies */ #include #define NUM_HOLES 10 #define NUM_REQUESTS 10 int holes[NUM_HOLES] = {100,512,100,300,666,70,450,823,333,123}; int requests[NUM_REQUESTS] = {212,417,112,100,44,555,340,26,617,270}; int firstFit(int size) { /* fill in code here */ return -1; } int bestFit(int size) { /* fill in code here */ return -1; } int worstFit(int size) { /* fill in code here */ return -1; } void printHoles(void) { int i; printf("Holes: "); for(i=0; i