We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f25f4b0 commit 30b6f3aCopy full SHA for 30b6f3a
src/main/java/edu/princeton/cs/algs4/BellmanFordSP.java
@@ -39,7 +39,7 @@
39
* <p>
40
* This implementation uses a queue-based implementation of
41
* the Bellman-Ford-Moore algorithm.
42
- * The constructor takes Θ(<em>V</em> (<em>V</em> + <em>E</em>)) time
+ * The constructor takes Θ(<em>E</em> <em>V</em>) time
43
* in the worst case, where <em>V</em> is the number of vertices and
44
* <em>E</em> is the number of edges. In practice, it performs much better.
45
* Each instance method takes Θ(1) time.
0 commit comments