File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
datastructures/sparse_table Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ Now let's look at the actual algorithm for eager Prim's.
509
509
@173.
510
510
In this first block I define a few more variables we'll need:
511
511
'm' the number of expected edges in the MST.
512
- 'edgeCount' the number of edges we have currently included in the MST. This
512
+ 'edgeCount' the number of edges we have currently have included in the MST. This
513
513
variable is used to make sure the tree spans the whole graph.
514
514
'mstCost' tracks the total cost of the MST
515
515
and finally, 'mstEdges' is an array which holds edges which we have included in
@@ -541,7 +541,7 @@ this is the node the edge is pointing at.
541
541
Next, skip edges which point at already visited nodes.
542
542
543
543
@180.
544
- Now here's the bit where we actually relax the edge. First I check if the IPQ
544
+ Now here's the bit where we actually relax the edge. First, check if the IPQ
545
545
contains the key with the value of the destination node.
546
546
547
547
@181.
You can’t perform that action at this time.
0 commit comments