---
title: "Discussion on \"Belady's Anomaly: FIFO vs LRU vs Optimal, Checked in Python\" | Hashnode"
description: "Discussion on \"Belady's Anomaly: FIFO vs LRU vs Optimal, Checked in Python\". A GATE CS page-replacement walkthrough on one reference string, plus a script that shows how rare Belady's anomaly really is."
url: "https://hashnode.com/posts/belady-s-anomaly-fifo-vs-lru-vs-optimal-checked-in-python/6ad388fbfe226b8f9f3ee2ce"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Belady's Anomaly: FIFO vs LRU vs Optimal, Checked in Python](https://realdev9868.hashnode.dev/belady-s-anomaly-fifo-vs-lru-vs-optimal-checked-in-python?utm_source=hashnode&utm_medium=feed)

A GATE CS page-replacement walkthrough on one reference string, plus a script that shows how rare Belady's anomaly really is.

Oct 17 · 6 min read · realdev9868.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#gate](https://hashnode.com/tag/gate)
-   [#operating-system](https://hashnode.com/tag/operating-system)
-   [#computer-science](https://hashnode.com/tag/computer-science)

## Written by

[Real Dev](https://hashnode.com/@realdev9868)

@realdev9868

  
[View profile](https://hashnode.com/@realdev9868)

Free interactive coding practice for students and developers. SQL, DSA, Python and more. From the Schoolabe team.

Free interactive coding practice for students and developers. SQL, DSA, Python and more. From the Schoolabe team.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
