From 14b420d69d51ea37a3e89f1787ec22c9406dd39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 4 Mar 2013 14:07:19 +0100 Subject: Algorithms-I : 1-Percolation: add run.sh --- Algorithms/Part-I/1-Percolation/run.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 Algorithms/Part-I/1-Percolation/run.sh 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 -- cgit v1.1-2-g2b99