Given references to the following pages by a program: 4, 2, 3, 9, 3, 2, 5, 4, 6, 3, 5, 4, 9, 3, 6, 9, 4, 6, 3, 1, 6, 1, 2, 1.
Question: Determine the number of page faults if the program has 4 frames available to it and uses:
a. Clock algorithm =
b. Second-chance algorithm =