Skip to content

Commit ad8342c

Browse files
committed
ST slides
1 parent 4eeedef commit ad8342c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Binary file not shown.

slides/graphtheory/prims_mst_script.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ Now let's look at the actual algorithm for eager Prim's.
509509
@173.
510510
In this first block I define a few more variables we'll need:
511511
'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
513513
variable is used to make sure the tree spans the whole graph.
514514
'mstCost' tracks the total cost of the MST
515515
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.
541541
Next, skip edges which point at already visited nodes.
542542

543543
@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
545545
contains the key with the value of the destination node.
546546

547547
@181.

0 commit comments

Comments
 (0)