summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/1-Percolation/run.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-04 14:07:19 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-15 17:38:13 +0100
commit14b420d69d51ea37a3e89f1787ec22c9406dd39b (patch)
treeb26de93d49282572cbd1abd6f363873a2776b018 /Algorithms/Part-I/1-Percolation/run.sh
parent5499e190c5fca84aca9cda4504172aaf3e98a91f (diff)
downloadcoursera-14b420d69d51ea37a3e89f1787ec22c9406dd39b.zip
coursera-14b420d69d51ea37a3e89f1787ec22c9406dd39b.tar.gz
Algorithms-I : 1-Percolation: add run.sh
Diffstat (limited to 'Algorithms/Part-I/1-Percolation/run.sh')
-rwxr-xr-xAlgorithms/Part-I/1-Percolation/run.sh18
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