Welcome to the Algorithms repository! This collection contains efficient and clean C++ implementations of core computer science algorithms. It is designed for practice, academic learning, competitive programming, and quick reference.
- Features
- Folder Structure
- Implemented Algorithms
- How to Use
- Future Plans
- Contributing
- License
- Author
- Clean and modular C++ code
- Covers essential algorithms in graph theory, dynamic programming, searching, etc.
- Well-structured folder system
- Ideal for students, developers, and competitive programmers
Each folder contains one or more .cpp
files based on the algorithm category:
📁 0-1-knapsack
📁 Bellman Ford Algorithm
📁 Breadth First Search (BFS)
📁 Cycle Detection mod-6
📁 Depth First Search (DFS) and 2D Grid
📁 Dijkstra Algorithm
📁 Dynamic Programming (DP)
📁 Floyd-Warshall Algorithms
📁 Graph Representations
📁 Two Pointers Technique
📁 Union find DSU
📁 knapsack variations
Category | Algorithms Included |
---|---|
Graph Algorithms | BFS, DFS, Dijkstra, Bellman-Ford, Floyd-Warshall, Cycle Detection, DSU |
Dynamic Programming | 0-1 Knapsack, Knapsack Variations, Fibonacci (Bottom-up) |
Search Techniques | Two Pointers Technique |
Data Structures | Graph Representations, Union-Find |
Miscellaneous | 2D Grid DFS Traversal, Modulo-Based Cycle Detection |
-
Clone this repository:
git clone https://github.com/raihanuldev/Algorithms.git cd Algorithms
-
Compile any algorithm file using g++:
g++ path/to/your/code.cpp -o output ./output
-
Explore, modify, and practice!
- Add problem statements and sample test cases for each algorithm
- Include time & space complexity notes
- Integrate unit tests
- Add advanced algorithms: Segment Trees, Trie, Suffix Arrays, etc.
- Visual explanations (e.g. Graph traversal animations)
Contributions are welcome! To contribute:
- Fork this repository
- Create a branch:
git checkout -b new-algorithm
- Add your algorithm inside a relevant folder
- Commit your changes:
git commit -m 'Add new algorithm'
- Push to the branch:
git push origin new-algorithm
- Open a Pull Request 🚀
This project is licensed under the MIT License – you are free to use, modify, and share!
Raihanul Islam Sharif
🎓 CSE Student | 💼 Full Stack Developer | 🧠 C++ Problem Solver
🌐 GitHub: raihanuldev
“Strive for clean code and clear logic — your future self will thank you.”