This diagram shows an example of memory configuration under
Solution
A) As allcoation happes from left to right, hence while X got it\'s palce in memory, there should have been some process to the right of X. In current picture there is an empty fragment of 1MB right of X, hence this should be a process which got swapped out. (Max size of swappwed out process is 1MB)
B)Size of a black just before it got partitioned by X = size of X + size of empty block which is left of X = 2 + 5=7MB
C) 3 MB allcoation with following stategies.
1)Best Fit: The right most 3MB vacant slot.
2)First Fit: First block from left to right which satisfy the need, That is right most 4MB vacant slot.
3)Next Fit: Next vacant block after X which have space for 3MB allocation, that is 5MB empty slot.
4) Worst Fit : The max possible empty slot, that is 8MB
