Skip to content

Commit f220471

Browse files
committed
fixes a few typos in UF Javadoc
1 parent 47dc9ef commit f220471

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/java/edu/princeton/cs/algs4/QuickFindUF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <em>n</em> elements, with each element in exactly one set.
2424
* The elements are named 0 through <em>n</em>–1.
2525
* Initially, there are <em>n</em> sets, with each element in its
26-
* own set. The <em>cannonical elemement</em> of a set
26+
* own set. The <em>canonical element</em> of a set
2727
* (also known as the <em>root</em>, <em>identifier</em>,
2828
* <em>leader</em>, or <em>set representative</em>)
2929
* is one distinguished element in the set. Here is a summary of

src/main/java/edu/princeton/cs/algs4/QuickUnionUF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <em>n</em> elements, with each element in exactly one set.
2424
* The elements are named 0 through <em>n</em>–1.
2525
* Initially, there are <em>n</em> sets, with each element in its
26-
* own set. The <em>cannonical elemement</em> of a set
26+
* own set. The <em>canonical element</em> of a set
2727
* (also known as the <em>root</em>, <em>identifier</em>,
2828
* <em>leader</em>, or <em>set representative</em>)
2929
* is one distinguished element in the set. Here is a summary of

src/main/java/edu/princeton/cs/algs4/UF.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* <em>n</em> elements, with each element in exactly one set.
3636
* The elements are named 0 through <em>n</em>–1.
3737
* Initially, there are <em>n</em> sets, with each element in its
38-
* own set. The <em>cannonical elemement</em> of a set
38+
* own set. The <em>canonical element</em> of a set
3939
* (also known as the <em>root</em>, <em>identifier</em>,
4040
* <em>leader</em>, or <em>set representative</em>)
4141
* is one distinguished element in the set. Here is a summary of
@@ -66,7 +66,7 @@
6666
* The <em>count</em> operation takes &Theta;(1) time.
6767
* Moreover, starting from an empty data structure with <em>n</em> sites,
6868
* any intermixed sequence of <em>m</em> <em>union</em> and <em>find</em>
69-
* operations takes <em>O</em>(m &alpha;(<em>n</em>)) time,
69+
* operations takes <em>O</em>(<em>m</em> &alpha;(<em>n</em>)) time,
7070
* where &alpha;(<em>n</em>) is the inverse of
7171
* <a href = "https://en.wikipedia.org/wiki/Ackermann_function#Inverse">Ackermann's function</a>.
7272
* <p>

src/main/java/edu/princeton/cs/algs4/WeightedQuickUnionUF.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* <em>n</em> elements, with each element in exactly one set.
2424
* The elements are named 0 through <em>n</em>–1.
2525
* Initially, there are <em>n</em> sets, with each element in its
26-
* own set. The <em>cannonical elemement</em> of a set
26+
* own set. The <em>canonical element</em> of a set
2727
* (also known as the <em>root</em>, <em>identifier</em>,
2828
* <em>leader</em>, or <em>set representative</em>)
2929
* is one distinguished element in the set. Here is a summary of

0 commit comments

Comments
 (0)