Skip to content
Official PYQ · 2002

GATE CS 2002 Q1.23 — Memory Management and Virtual Memory

Explain with AI

The optimal page replacement algorithm will select the page that

Choose one option
View worked solution

Answer: B

The Optimal Page Replacement Algorithm (also known as Belady's Optimal Algorithm) is designed to achieve the lowest possible page-fault rate for a fixed number of frames.

It operates on the principle of looking forward in time:

  • Rule: Replace the page that will not be used for the longest period of time in the future.

Let's analyze the given options to understand why B is correct and identify the other algorithms:

  • Option A: "Has not been used for the longest time in the past" describes the Least Recently Used (LRU) algorithm.
  • Option B: "Will not be used for the longest time in the future" describes the Optimal algorithm.
  • Option C: "Has been used least number of times" describes the Least Frequently Used (LFU) algorithm.
  • Option D: "Has been used most number of times" describes the Most Frequently Used (MFU) algorithm.

Since the optimal algorithm requires perfect knowledge of future page references, it is practically impossible to implement in real-time operating systems but serves as a benchmark for evaluating other page replacement strategies.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions