summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/5-KdTrees/run.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-26 17:55:03 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-15 17:38:45 +0100
commit44e9d3d9e4e82d15208f753f08396ab94af133d2 (patch)
tree2c1cd50b4d6c0e20af01d3203c33b3780983cd04 /Algorithms/Part-I/5-KdTrees/run.sh
parent82f8813923826bc71aec6d600a85710853ac44a3 (diff)
downloadcoursera-44e9d3d9e4e82d15208f753f08396ab94af133d2.zip
coursera-44e9d3d9e4e82d15208f753f08396ab94af133d2.tar.gz
Algorithms-I : 5-KdTrees: update scripts
Diffstat (limited to 'Algorithms/Part-I/5-KdTrees/run.sh')
-rwxr-xr-xAlgorithms/Part-I/5-KdTrees/run.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/Algorithms/Part-I/5-KdTrees/run.sh b/Algorithms/Part-I/5-KdTrees/run.sh
index 04a4561..1ddfb96 100755
--- a/Algorithms/Part-I/5-KdTrees/run.sh
+++ b/Algorithms/Part-I/5-KdTrees/run.sh
@@ -9,14 +9,21 @@ rm *.class *.zip 2>/dev/null
echo "javac RectHV.java" && javac RectHV.java
for kls in $CLASSES; do
~/algs4/bin/checkstyle ${kls}.java
- echo "javac ${kls}.java" && javac ${kls}.java
+ echo "javac ${kls}.java" && javac ${kls}.java || exit 1
done
~/algs4/bin/findbugs *.class
-echo "RUN..."
for kls in KdTreeVisualizer NearestNeighborVisualizer RangeSearchVisualizer; do
- echo "javac ${kls}.java" && javac ${kls}.java && java ${kls}
+ echo "javac ${kls}.java" && javac ${kls}.java
done
+echo "RUN..."
+java KdTreeVisualizer circle10.txt
+java RangeSearchVisualizer input10K.txt
+java NearestNeighborVisualizer input10K.txt
+java RangeSearchVisualizer input100K.txt
+java NearestNeighborVisualizer input100K.txt
+java RangeSearchVisualizer input1M.txt
+java NearestNeighborVisualizer input1M.txt
zip kdtree.zip PointSET.java KdTree.java