# HaskellFinalProject

### Compile Subset Sum Solver
* `stack ghc -- -O2 -Wall subsetsum.hs -threaded -rtsopts -eventlog`
* `./subsetsum test.txt <targetSum> +RTS -N<cores> -s -ls`

### Compile nQueens
* `stack ghc -- -O2 -Wall nQueens.hs -threaded -rtsopts -eventlog`
* `./nQueens <option> <length of the board> +RTS -N<cores> -s -ls -M<n>G` \
option: \
1 show the number of solutions \
2 print all the solutions


References: \
https://stackoverflow.com/questions/33339773/assigning-command-line-arguments-to-variables
http://www.cs.columbia.edu/~sedwards/classes/2019/4995-fall/strategies.pdf
