Computer PPSC
Optimal page-replacement algorithm is difficult to implement, because:
Explanation
Because the future reference string is unknowable at runtime, the optimal algorithm is impossible to implement in practice. It is used only as a theoretical benchmark: the closer a real algorithm (such as LRU) comes to the optimal fault count, the better it is considered.
Related facts:
Belady proposed the optimal algorithm; it never suffers from Belady's anomaly.
LRU approximates the optimal algorithm by looking at the recent past instead of the future.
FIFO is the simplest replacement algorithm but can suffer from Belady's anomaly.
Exam tip: Remember the one-liner: "Optimal needs future knowledge." It is a commonly tested basic fact in operating-system memory-management questions.