Complete the code to identify the page replacement algorithm that removes the oldest page first.
algorithm = "[1]" # This algorithm replaces the oldest page in memory first.
FIFO stands for First-In-First-Out. It replaces the oldest page in memory first, regardless of how often or recently it was used.
Complete the code to identify the algorithm that replaces the page which will not be used for the longest time in the future.
algorithm = "[1]" # This algorithm requires future knowledge of page references.
Optimal page replacement algorithm replaces the page that will not be used for the longest time in the future. It is theoretical and requires future knowledge.
Fix the error in the description of the algorithm that replaces the least recently used page.
algorithm = "[1]" # This algorithm replaces the page that was used the longest time ago.
LRU stands for Least Recently Used. It replaces the page that has not been used for the longest time.
Fill both blanks to complete the sentence describing FIFO and LRU algorithms.
The [1] algorithm replaces pages in the order they were loaded, while the [2] algorithm replaces pages based on least recent usage.
FIFO replaces pages in the order they were loaded (oldest first). LRU replaces pages based on least recent usage.
Fill all three blanks to complete the dictionary that maps algorithm names to their key characteristics.
algorithms = {"FIFO": "[1]", "LRU": "[2]", "Optimal": "[3]"}This dictionary maps each algorithm to its main page replacement strategy: FIFO removes the oldest page, LRU removes the least recently used page, and Optimal removes the page not used for the longest time in the future.