#include using namespace std; int blksize[] = {100, 500, 200, 300, 600}; int processes[] = {212, 417, 112, 426}; void firstfit(int pr[], int pr_size, int blk[], int blk_size) { for(int i = 0; i < pr_size; i++) { bool check = false; for(int j = 0; j < blk_size; j++) { if((blk[j] - pr[i]) >= 0) { blk[j] = blk[j] - pr[i]; cout<<"\nProcess with value "<= 0 && (blk[j] - pr[i]) < store) { k = j + 1; store = blk[j] - pr[i]; check = true; } } if(!check) { cout<<"\nProcess with value "<= 0 && (blk[j] - pr[i]) > store) { k = j + 1; store = blk[j] - pr[i]; check = true; } } if(!check) { cout<<"\nProcess with value "<= 0) { blk[j] = blk[j] - pr[i]; cout<<"\nProcess with value "<