summaryrefslogtreecommitdiffstats
path: root/Algorithms/Part-I/5-KdTrees/run.sh
diff options
context:
space:
mode:
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