Page Replacement Algorithms

Consider the following page reference string.
1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2.
How may page faults would occur for FIFO, LRU and Optimal page replacement algorithms assuming three frames? Assume that all frames are initially empty. How many page faults would occur if four frames are used?

Consider the following page reference string.
2, 3, 4, 5, 3, 2, 6, 7, 3, 2, 3, 4, 1, 7, 1, 4, 3, 2, 4, 7.
How may page faults would occur for FIFO, LRU and Optimal page replacement algorithms assuming three frames? Assume that all frames are initially empty. How many page faults would occur if four frames are used?

Consider the following page reference string.
1, 2, 3, 5, 2, 3, 5, 7, 2, 1, 2, 3, 8, 6, 4, 3, 2, 2, 3, 6.
How may page faults would occur for FIFO, LRU and Optimal page replacement algorithms assuming three frames? Assume that all frames are initially empty. How many page faults would occur if four frames are used?

Consider the following page reference string.
0, 9, 0, 1, 8, 1, 8, 7, 8, 7, 1, 2, 8, 2, 7, 8, 2, 3, 8, 3.
How may page faults would occur for FIFO, LRU and Optimal page replacement algorithms assuming three frames? Assume that all frames are initially empty. How many page faults would occur if four frames are used?

When do page fault occur? Consider the following page reference string.
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page fault and page fault rate occur for the FIFO, LRU and optimal replacement algorithms, assuming one, two, three and four page frames?

Consider the following page reference string:
7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1.
Assuming demand paging with three frames, how many page faults would occur for the FIFO, LRU and optimal page replacement algorithms. Does the page fault decrease if four frames are used?

Consider the following page reference string.
1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6
How may page faults would occur for FIFO, LRU and Optimal page replacement algorithms assuming three frames? Assume that all frames are initially empty. How many page faults would occur if four frames are used?

Consider the following page–reference string
1, 2, 3, 2, 5, 6, 3, 4, 6, 3, 7, 3, 1, 5, 3, 6, 3, 4, 2, 4, 3, 4, 5, 1
Indicate page faults and calculate total number of page faults and success ratio for FIFO, Optimal and LRU algorithms. Assume there are four frames and initially all the frames are empty.

Consider the following page–reference string
1, 2, 3, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 5, 4, 5, 4.
How many page faults would occur in the case of FIFO, Optimal and LRU algorithms. Assume three frames and initially all the frames are empty.

Consider the following page reference string:
1, 2, 3, 4, 1, 2, 3, 5, 6, 2, 1, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
How many page faults would occur for the each page replacement algorithms, assuming three frames? All frames are initially empty.