Skip to content

Commit 1ae557d

Browse files
committed
update README
1 parent 063dae5 commit 1ae557d

File tree

6 files changed

+36
-13
lines changed

6 files changed

+36
-13
lines changed

8puzzle/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ For more informations, check the [official assignment description][1].
2020

2121
## How to compile
2222

23-
* Mac OS / Linux / Windows
23+
Mac OS / Linux / Windows
2424

25-
```
26-
javac -cp ../lib/* Board.java Solver.java
27-
```
25+
javac -cp ../lib/* Board.java Solver.java
2826

2927
[1]: http://coursera.cs.princeton.edu/algs4/assignments/8puzzle.html

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ Week 1 | [Percolation][w1] | 100/100
1919
Week 2 | [Queues][w2] | 100/100
2020
Week 3 | [Collinear][w3] | 100/100
2121
Week 4 | [8puzzle][w4] | 100/100
22+
Week 5 | [Kd-Trees][w5] | 100/100
2223

2324
[1]: https://www.coursera.org/learn/introduction-to-algorithms
2425
[w1]: http://coursera.cs.princeton.edu/algs4/assignments/percolation.html
2526
[w2]: http://coursera.cs.princeton.edu/algs4/assignments/queues.html
2627
[w3]: http://coursera.cs.princeton.edu/algs4/assignments/collinear.html
2728
[w4]: http://coursera.cs.princeton.edu/algs4/assignments/8puzzle.html
29+
[w5]: http://coursera.cs.princeton.edu/algs4/assignments/kdtree.html

collinear/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# How to run
1+
# Pattern Recognition
22

33
Given a set of _n_ distinct points in the plane, find every (maximal) line
44
segment that connects a subset of 4 or more of the points. For more
55
informations, check [the official assignment description][1].
66

7-
## Mac OS / Linux
7+
## How to compile
8+
9+
Mac OS / Linux
810

911
$ javac -cp ".:../lib/*" FastCollinearPoints.java BruteCollinearPoints.java Point.java
1012

11-
## Windows
13+
Windows
1214

1315
$ javac -cp ".;../lib/*" FastCollinearPoints.java BruteCollinearPoints.java Point.java
1416

kdtree/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Kd-Trees
2+
3+
Write a data type to represent a set of points in the unit square (all points
4+
have x- and y-coordinates between 0 and 1) using a 2d-tree to support efficient
5+
range search (find all of the points contained in a query rectangle) and nearest
6+
neighbor search (find a closest point to a query point). 2d-trees have numerous
7+
applications, ranging from classifying astronomical objects to computer
8+
animation to speeding up neural networks to mining data to image retrieval. For
9+
more information, check [the official assignment description][1].
10+
11+
## How to compile
12+
13+
Mac OS / Linux / Windows
14+
15+
javac -cp ../lib/* PointSET.java KdTree.java
16+
17+
[1]: http://coursera.cs.princeton.edu/algs4/assignments/kdtree.html

percolation/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# How to run
1+
# Percolation
22

33
The program `PercolationStats` takes two command-line arguments _n_ and _T_,
44
performs _T_ independent computational experiments on an _n_ * _n_ grid, and
55
prints the mean, standard deviation, and the 95% confidence interval for the
66
percolation threshold. For more informations, check [the official assignment
77
description][1].
88

9-
## Mac OS / Linux
9+
## How to compile and run
10+
11+
Mac OS / Linux
1012

1113
$ javac -cp ../lib/* Percolation.java PercolationStats.java
1214
$ java -cp "../lib/*:." PercolationStats 200 1000
1315

14-
## Windows
16+
Windows
1517

1618
$ javac -cp ../lib/* Percolation.java PercolationStats.java
1719
$ java -cp "../lib/*;." PercolationStats 200 1000

queues/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# How to run
1+
# Deques and Randomized Queues
22

33
The client program `Subset.java` takes a command-line integer _k_; reads in a
44
sequence of _N_ strings from standard input using `StdIn.readString()`; and
@@ -7,13 +7,15 @@ can be printed out at most once. You may assume that _0 ≤ k ≤ n_, where _n_
77
the number of string on standard input. For more information, check [the
88
official assignment description][1].
99

10-
## Mac OS / Linux
10+
## How to compile and run
11+
12+
Mac OS / Linux
1113

1214
$ javac -cp ../lib/* Deque.java RandomizedQueue.java Subset.java
1315
$ echo A B C D E F G H I | java -cp ".:../lib/*" Subset 3
1416
$ echo AA BB BB BB BB BB CC CC | java -cp ".:../lib/*" Subset 8
1517

16-
## Windows
18+
Windows
1719

1820
$ javac -cp ../lib/* Deque.java RandomizedQueue.java Subset.java
1921
$ echo A B C D E F G H I | java -cp ".;../lib/*" Subset 3

0 commit comments

Comments
 (0)