diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-03-04 14:07:19 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-11-15 17:38:13 +0100 |
commit | 14b420d69d51ea37a3e89f1787ec22c9406dd39b (patch) | |
tree | b26de93d49282572cbd1abd6f363873a2776b018 | |
parent | 5499e190c5fca84aca9cda4504172aaf3e98a91f (diff) | |
download | coursera-14b420d69d51ea37a3e89f1787ec22c9406dd39b.zip coursera-14b420d69d51ea37a3e89f1787ec22c9406dd39b.tar.gz |
Algorithms-I : 1-Percolation: add run.sh
-rwxr-xr-x | Algorithms/Part-I/1-Percolation/run.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Algorithms/Part-I/1-Percolation/run.sh b/Algorithms/Part-I/1-Percolation/run.sh new file mode 100755 index 0000000..5987222 --- /dev/null +++ b/Algorithms/Part-I/1-Percolation/run.sh @@ -0,0 +1,18 @@ +#! /bin/bash + +export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar" + +CLASSES="Percolation PercolationStats" + +rm *.class +for kls in $CLASSES; do + ~/algs4/bin/checkstyle ${kls}.java + javac ${kls}.java + # ~/algs4/bin/findbugs ${kls}.class +done + +java PercolationStats 200 100 +java PercolationStats 200 100 +java PercolationStats 2000 100 +java PercolationStats 2 10000 +java PercolationStats 2 1000000 |