A professional and optimized collection of classic data structures and algorithms developed in standard C++.
This repository contains a well-structured set of foundational and advanced algorithms implemented with clean architecture, Doxygen-style documentation, and robustness in mind.
| Algorithm / Problem | Approach | Time Complexity | Space Complexity |
|---|---|---|---|
| Dijkstra's Shortest Path | Min-Heap / Greedy | ||
| 0/1 Knapsack | Dynamic Programming (Bottom-Up) |
|
You can build and run this project using either g++ (direct compilation) or CMake.
Open your terminal in the root directory of the project and run:
`bash g++ -std=c++17 main.cpp src/graph.cpp src/dp_algorithms.cpp src/greedy.cpp -Iinclude -o AdvancedDSALab
To run the executable:
- Linux / macOS: ./AdvancedDSALab
- Windows: AdvancedDSALab.exe Method 2: Using CMake (Recommended)
mkdir build cd build
cmake ..
cmake --build .