Page Replacement
Compare FIFO, LRU and Optimal.
- FIFO
- LRU
- Optimal
I built these interactive experiments to make operating systems and algorithms easier to understand. Try different inputs, follow each step and see how each algorithm works and how its results change.
Learn how an operating system manages memory and shares CPU time between processes.
Compare FIFO, LRU and Optimal.
Explore seven ways an operating system decides which process gets CPU time.
See how memory blocks are assigned and compare different ways of choosing free space.
Learn how common algorithms work by following their decisions one step at a time.
Compare nine ways to arrange numbers in order.
Compare four ways to find a value in a list.
Explore how algorithms work with nodes, connections, paths and networks.
01
All calculations happen on your device. Nothing you enter is sent anywhere, so you can try different inputs freely.
02
Each experiment focuses on explaining one idea clearly. Real-world systems are more complex, so these examples are meant for learning, not production use.
03
Whenever an algorithm makes a decision, you'll see a simple explanation of what happened and why.
All experiments follow the same structure. The algorithm logic is kept separate from the user interface. Each decision is saved as a step with an explanation, and automated tests help check that the results are correct.
Select any part of the diagram to learn what it does and why it is designed this way.
The simulation logic and explanations are also checked through automated tests.