{"id":29538743,"url":"https://github.com/adilevi25/memorymanageroop","last_synced_at":"2025-07-17T05:15:42.930Z","repository":{"id":304564311,"uuid":"1019150551","full_name":"AdiLevi25/MemoryManagerOOP","owner":"AdiLevi25","description":"A C++ memory management system using OOP principles","archived":false,"fork":false,"pushed_at":"2025-07-13T21:48:35.000Z","size":266,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T23:33:19.789Z","etag":null,"topics":["allocator","cpp","data-structures","memory-management","oop","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdiLevi25.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-13T21:09:52.000Z","updated_at":"2025-07-13T21:48:38.000Z","dependencies_parsed_at":"2025-07-13T23:43:33.157Z","dependency_job_id":null,"html_url":"https://github.com/AdiLevi25/MemoryManagerOOP","commit_stats":null,"previous_names":["adilevi25/memorymanageroop"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AdiLevi25/MemoryManagerOOP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdiLevi25%2FMemoryManagerOOP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdiLevi25%2FMemoryManagerOOP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdiLevi25%2FMemoryManagerOOP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdiLevi25%2FMemoryManagerOOP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdiLevi25","download_url":"https://codeload.github.com/AdiLevi25/MemoryManagerOOP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdiLevi25%2FMemoryManagerOOP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265567426,"owners_count":23789478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["allocator","cpp","data-structures","memory-management","oop","simulation"],"created_at":"2025-07-17T05:15:29.244Z","updated_at":"2025-07-17T05:15:42.923Z","avatar_url":"https://github.com/AdiLevi25.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MemoryManagerOOP\n\nThis project implements a custom memory management system in C++ using Object-Oriented Programming principles.\nIt was developed as part of an academic assignment in the Electrical and Electronics Engineering department at Ort Braude College.\n\n## 📚 Project Overview\n\nThe system simulates memory allocation using a fixed-size memory pool and supports the following allocation strategies:\n\n- **First Fit**\n- **Best Fit**\n- **Worst Fit**\n\nEach strategy is implemented in a dedicated class that inherits from a shared abstract base class `MemoryManager`.\n\n## 🧩 Components\n\n- `Block` – Represents a single memory block in the pool.\n- `MemoryManager` – Abstract base class for managing the memory pool.\n- `FirstFitAllocator` / `BestFitAllocator` / `WorstFitAllocator` – Subclasses implementing allocation algorithms.\n- `MemorySimulator` – Contains simulation scenarios to compare the algorithms.\n- `Main.cpp` – Contains tests and verification for each class and scenario.\n\n## ⚙️ Build Instructions\n\nTo compile the project using g++:\n\n```bash\ng++ -std=c++11 Main.cpp Block.cpp MemoryManager.cpp FirstFitAllocator.cpp BestFitAllocator.cpp WorstFitAllocator.cpp MemorySimulator.cpp -o memory_manager\n```\n\nTo run:\n\n```bash\n./memory_manager\n```\n\n\u003e Ensure you are in the directory containing all `.cpp` and `.h` files.\n\n## 🧪 Testing\n\nThe project includes custom test functions within `Main.cpp` to verify:\n- Correct block management (allocation, splitting, merging)\n- Strategy-specific behavior\n- Edge cases and exception handling\n- Simulation performance and peak usage\n\n## 🖼️ Simulation Output\n\nHere is a sample from the simulator run (First Fit, Best Fit, Worst Fit):\n\n### ✅ Part 1: First Fit \u0026 Best Fit Scenarios\n\n![Simulation 1](./סימולציה%201.png)\n\n### ✅ Part 2: Worst Fit \u0026 Summary\n\n![Simulation 2](./סימולציה%202.png)\n\n\n## 👤 Authors\n\n- Adi Levi – [LinkedIn](https://www.linkedin.com/in/adi-levi-5008858269/)\n- Aviv Friedman - [LinkedIn](https://www.linkedin.com/in/aviv-friedman-38719426b/)\n\n## 📄 License\n\nThis academic project is shared for learning purposes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadilevi25%2Fmemorymanageroop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadilevi25%2Fmemorymanageroop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadilevi25%2Fmemorymanageroop/lists"}