Write a program that implements the Buddy System algorithm for memory management.
For input the program accepts:
1) the amount of total available memory and
2) the sequence of integers with allocation (+) or return (-) requests.
As output, the program must print the table showing the state of the memory ( after each allocation or return).
Test the program with the following input parameters: Two megabytes of available memory and the following sequence: (A: +20K), (B: +35K), (C: +90K), (D: +40K), (E: +240K), (D: -40K), (A: -20K), (C: -90K), (B: -35K), (E: -240K).
Code must be written in c++.
9 freelancers están ofertando el promedio de $70 para este trabajo
I am interested in this job. I am experienced programmer with high C++ skills. You can read more about me on [login to view URL] or check my GitHub projects: [login to view URL]