- The repo is homeworks for solving 0/1 knapsack problem with 4 different methods, and each has its pros and cons.
- Exhaustive Search
- Greedy
- Dynamic Programming
- Simulated Annealing
- To clone the repo, type the command below.
git clone https://github.com/aryenchiu/CSE315-Algorithm.git
- To execute the program, change the directory to the corresponding methods first, then compile and execute.
g++ <filename.cpp> -o <filename>
./<filename>