blob: de8c21ce03adf52c09419d9dc00bba6cd1ae7add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#! /bin/bash
export "CLASSPATH=$CLASSPATH:.:$HOME/algs4/algs4.jar:$HOME/algs4/stdlib.jar"
CLASSES="Point Brute Fast"
rm *.class *.zip 2>/dev/null
for kls in $CLASSES; do
~/algs4/bin/checkstyle ${kls}.java
javac ${kls}.java
done
~/algs4/bin/findbugs *.class
echo "RUN..."
java -enableassertions Point
java Brute input6.txt
java Brute input8.txt
java Brute random152.txt
java Fast horizontal5.txt
java Fast input6.txt
java Fast input8.txt
java Fast input300.txt
java Fast input400.txt
java Fast random152.txt
java Fast input1000.txt
java Fast input10000.txt
zip collinear.zip Point.java Brute.java Fast.java
|