Picking up the Sedgewick & Wayne Algorithms book

starting by fetching copies of chapter 01 files.  Should I take on
maven?  Stick with ant?  Neither?
This commit is contained in:
Dan Buch 2012-05-05 07:42:42 -04:00
parent b893ebef78
commit d57f2f524f
3 changed files with 68 additions and 0 deletions

28
algs4/src/java/.gitignore vendored Normal file
View File

@ -0,0 +1,28 @@
Average.java
BinarySearch.java
Cat.java
Counter.java
RandomSeq.java
Shuffle.java
StaticSETofInts.java
Whitelist.java
Vector.java
Date.java
Transaction.java
Point2D.java
Interval1D.java
Interval2D.java
ResizingArrayStack.java
Stack.java
ResizingArrayQueue.java
Queue.java
Bag.java
Stopwatch.java
ThreeSum.java
ThreeSumFast.java
DoublingTest.java
DoublingRatio.java
QuickFindUF.java
QuickUnionUF.java
WeightedQuickUnionUF.java
UF.java

View File

@ -0,0 +1,28 @@
Average
BinarySearch
Cat
Counter
RandomSeq
Shuffle
StaticSETofInts
Whitelist
Vector
Date
Transaction
Point2D
Interval1D
Interval2D
ResizingArrayStack
Stack
ResizingArrayQueue
Queue
Bag
Stopwatch
ThreeSum
ThreeSumFast
DoublingTest
DoublingRatio
QuickFindUF
QuickUnionUF
WeightedQuickUnionUF
UF

12
algs4/src/java/download-all Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
cd $(dirname $(readlink -f $0))
set -x
for n in $(cat chapter-01-files)
do
curl -O "http://algs4.cs.princeton.edu/11model/${n}.java"
chmod 444 "${n}.java"
done