You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is a Unity-based simulation of **three classic page replacement algorithms**:
7
-
- FIFO (First-In, First-Out)
8
-
- LRU (Least Recently Used)
9
-
- OPT (Optimal)
10
-
11
-
It was developed as part of an asynchronous final activity for April 11, 2025, in accordance with the instructions from the CCS course's Chapter 10 (Virtual Memory Management).
5
+
This project is a Unity-based simulation program that demonstrates the concepts of **Page Replacement Algorithms**:
6
+
-**FIFO** (First In First Out)
7
+
-**LRU** (Least Recently Used)
8
+
-**OPT** (Optimal Replacement)
12
9
13
10
---
14
11
15
-
## 🎯 Objectives
16
-
17
-
- Simulate **FIFO**, **LRU**, and **Optimal** page replacement algorithms.
18
-
- Use a **randomly generated page reference string** (pages 0–9).
19
-
- Accept a **custom number of page frames** at runtime.
20
-
- Track and display the **number of page faults** for each algorithm.
21
-
- Show **step-by-step GUI representations** for each algorithm.
22
-
- Provide **screen captures** and documentation for evaluation.
12
+
## 🎮 How to Play
13
+
- Select the **number of page frames** and **reference string length** at the start.
14
+
- Press the **Generate** Button.
15
+
- Press the **Simulate** Button.
16
+
- Choose an algorithm (**FIFO**, **LRU**, or **OPT**) to simulate.
17
+
- View the number of page faults and simulation details!
23
18
24
19
---
25
20
@@ -36,69 +31,56 @@ Replaces the page that will not be used for the longest time in the future.
36
31
37
32
---
38
33
39
-
## 💻 Technologies Used
34
+
## 📦 Download & Installation
40
35
41
-
- Unity (C#)
42
-
- TextMeshPro for UI
43
-
- Visual Studio Code / Unity Editor
36
+
| Version | Link | Instructions |
37
+
|:--------|:-----|:-------------|
38
+
| Windows (.exe) |**[Download EXE Build](#)**| Download the `.zip` → Extract → Run the `.exe` file |
39
+
| Android (.apk) |**[Download APK Build](#)**| Download the `.apk` → Transfer to your phone → Install APK (Allow "Unknown Sources" if needed) |
40
+
| Web Browser |**[Play Web Version]([#](https://mumei-28.github.io/VirtualMemorySimulator/))**| Open the link → No installation needed! Just click and play! |
44
41
42
+
next time ko na update nalang yung exe at apk 😵💫
45
43
---
46
44
47
-
## 🗂️ Repository Contents
48
-
49
-
```
50
-
📁 Assets/
51
-
├── Scripts/
52
-
│ ├── FIFOAlgorithm.cs
53
-
│ ├── LRUAlgorithm.cs
54
-
│ ├── OptimalAlgorithm.cs
55
-
│ └── DataManager.cs
56
-
├── Prefabs/
57
-
│ ├── FrameSlot.prefab
58
-
│ └── FaultText.prefab
59
-
├── Scenes/
60
-
│ └── MainScene.unity
61
-
📄 PageReplacementDocumentation.pdf
62
-
📄 PageReplacementExecutable.exe
63
-
📄 README.md
64
-
```
45
+
## 💻 Technologies Used
46
+
47
+
- Unity (C#)
48
+
- TextMeshPro for UI
49
+
- Visual Studio Code
50
+
- Unity Editor 2022.3.49f1
65
51
66
52
---
67
53
68
54
## 📸 Sample Screenshots
69
55
70
-
The documentation includes **screen captures of three sample inputs and outputs** for each algorithm, showcasing how the system responds to different random reference strings and frame counts.
0 commit comments