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.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/Algorithms/Part-I/5-KdTrees/run.sh b/Algorithms/Part-I/5-KdTrees/run.sh
new file mode 100755
index 0000000..04a4561
--- /dev/null
+++ b/Algorithms/Part-I/5-KdTrees/run.sh
@@ -0,0 +1,22 @@
+#! /bin/bash
+
+export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"
+
+CLASSES="PointSET KdTree"
+
+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
+done
+~/algs4/bin/findbugs *.class
+
+echo "RUN..."
+for kls in KdTreeVisualizer NearestNeighborVisualizer RangeSearchVisualizer; do
+ echo "javac ${kls}.java" && javac ${kls}.java && java ${kls}
+done
+
+
+zip kdtree.zip PointSET.java KdTree.java