diff options
-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 |