Implements the following algorithms as examples of Dynamic Programming:
Implementation is provided in the package io.gitbub.thehappybug.Algorithms
.
The project can be compiled using make
tool:
$ make
cd io/github/thehappybug/Algorithms/ && javac *.java
The build directory can be cleaned again by running make clean
.
$ make clean
rm io/github/thehappybug/Algorithms/*.class
$ cat inputs/fib.txt | java -cp "." io.github.thehappybug.Algorithms.FibonacciModified
5
$ cat inputs/knap.txt | java -cp "." io.github.thehappybug.Algorithms.Knapsack
12
$ cat inputs/lcs.txt | java -cp "." io.github.thehappybug.Algorithms.LCS
3 4 1