Give an examples of Best-Fit algorithm
Suppose four memory partitions of 15MB, 50MB, 39MB, and 25MB are in order. How would Best-Fit algorithm place processes of 20MB, 40MB, 12MB, and 37MB (in order)?
The Best-Fit will place the processes as follows;
(i) process of 20MB will be placed in 25MB partition.
(ii) process of 40MB will be placed in 50MB partition.
(iii) process of 12MB will be placed in 15MB partition.
(iv) process of 37MB will be placed in 39MB partition.