https://web.cecs.pdx.edu/~harry/os/slides/Ch3-MemMgmt-2.pdf
Visit page 16 of the slide. You'll see second chance page replacement algorithm.
When page fault occurs and reference bit was 1, it is set to 0. I don't get the reason behind doing this? What problem are we trying to solve here?