Downloading lots more stuff from algs4 book site

This commit is contained in:
Dan Buch 2013-01-20 14:05:01 -05:00
parent d834b81003
commit 150a3745f6
3 changed files with 143 additions and 18 deletions

64
algs4/.gitignore vendored
View File

@ -7,7 +7,63 @@
/findbugs-2.0.1/
/findbugs.zip
/stdlib.jar
/largeT.txt
/largeW.txt
/tinyT.txt
/tinyW.txt
16Kints.txt
1Kints.txt
1Mints.txt
2Kints.txt
32Kints.txt
4Kints.txt
8Kints.txt
abra.txt
cards.txt
ex1.txt
ex2.txt
ex3.txt
ex4.txt
jobs.txt
jobsPC.txt
largeEWD.txt
largeEWG.txt
largeT.txt
largeUF.txt
largeW.txt
leipzig100K.txt
leipzig1M.txt
leipzig300K.txt
list.txt
mediumEWD.txt
mediumEWDnc.txt
mediumEWG.txt
mediumUF.txt
mobydick.txt
movies.txt
rates.txt
routes.txt
tale.txt
tiny.txt
tinyBatch.txt
tinyCG.txt
tinyDAG.txt
tinyDG.txt
tinyEWD.txt
tinyEWDAG.txt
tinyEWDn.txt
tinyEWG.txt
tinyG.txt
tinyL.txt
tinyST.txt
tinyT.txt
tinyTale.txt
tinyUF.txt
tinyW.txt
tinytinyTale.txt
tnyTale.txt
tobe.txt
words3.txt
Binomial.java
RightTriangle.java
Scale.java
Tone.java
Wget.java

View File

@ -3,26 +3,19 @@
set -e
set -x
OTHERS="
11model/RightTriangle.java
11model/Tone.java
11model/Scale.java
11model/Binomial.java
11model/Wget.java
11model/largeT.txt
11model/largeW.txt
11model/tinyT.txt
11model/tinyW.txt
"
OTHERS="$(cat others.txt)"
cd src/java
for other in $OTHERS
do
bn=$(basename "$other")
if [ ! -f "$bn" ]
if [ ! -f "$other" ]
then
dn=$(dirname "$other")
mkdir -p "$dn"
pushd "$dn"
curl -O "http://algs4.cs.princeton.edu/${other}"
chmod 444 "$bn"
chmod 444 "$(basename "$other")"
popd
fi
done

76
algs4/others.txt Normal file
View File

@ -0,0 +1,76 @@
11model/Binomial.java
11model/RightTriangle.java
11model/Scale.java
11model/Tone.java
11model/Wget.java
11model/cards.txt
11model/largeT.txt
11model/largeW.txt
11model/tinyT.txt
11model/tinyW.txt
13stacks/tobe.txt
14analysis/16Kints.txt
14analysis/16Kints.txt
14analysis/1Kints.txt
14analysis/1Kints.txt
14analysis/1Mints.txt
14analysis/1Mints.txt
14analysis/2Kints.txt
14analysis/2Kints.txt
14analysis/32Kints.txt
14analysis/32Kints.txt
14analysis/4Kints.txt
14analysis/4Kints.txt
14analysis/8Kints.txt
14analysis/8Kints.txt
15uf/largeUF.txt
15uf/mediumUF.txt
15uf/tinyUF.txt
21sort/tiny.txt
21sort/words3.txt
22mergesort/tiny.txt
22mergesort/words3.txt
23quicksort/tiny.txt
23quicksort/words3.txt
24pq/tiny.txt
24pq/tinyBatch.txt
24pq/words3.txt
31elementary/leipzig100K.txt
31elementary/leipzig1M.txt
31elementary/leipzig300K.txt
31elementary/tale.txt
31elementary/tinyST.txt
31elementary/tnyTale.txt
32bst/tinyST.txt
33balanced/tinyST.txt
35applications/ex1.txt
35applications/ex2.txt
35applications/ex3.txt
35applications/ex4.txt
35applications/list.txt
35applications/movies.txt
35applications/tinyTale.txt
41undirected/movies.txt
41undirected/routes.txt
41undirected/tinyCG.txt
41undirected/tinyG.txt
42directed/jobs.txt
42directed/tinyDAG.txt
42directed/tinyDG.txt
43mst/largeEWG.txt
43mst/mediumEWG.txt
43mst/tinyEWG.txt
44sp/jobsPC.txt
44sp/largeEWD.txt
44sp/mediumEWD.txt
44sp/mediumEWDnc.txt
44sp/rates.txt
44sp/tinyEWD.txt
44sp/tinyEWDAG.txt
44sp/tinyEWDn.txt
54regexp/tinyL.txt
55compression/abra.txt
55compression/tinytinyTale.txt
63suffix/mobydick.txt
63suffix/tale.txt
63suffix/tinyTale.txt