Least recently used pages are replaced in the memory.
p[12]={2,3,2,1,5,2,4,5,3,2,5,2}
Page Replacement Algorithm - LEAST RECENTLY USED 2 -1 -1 2 3 -1 2 3 -1 2 3 1 2 5 1 2 5 1 2 5 4 2 5 4 3 5 4 3 5 2 3 5 2 3 5 2 Number of page faults :7