Talk:Borůvka's algorithm: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
Line 147:
 
Borůvka's algorithm is in many cases presented in a variant, which works for disconnected graphs and generates a minimum spanning forest, by presenting it using the edge contractions. But the pseudocode assumes, that the graph is connected by saying:
<source lang="text" start="0" line>
Input: A connected graph G whose edges have distinct weights
</source>
<source lang="text" start="2" line>
While T has more than one component:
</source>
I believe this should read:
<source lang="text" start="0" line>
Input: A graph G whose edges have distinct weights
</source>
<source lang="text" start="2" line>
While there is an edge between any two components:
</source>
 
Although it is possible, that the original paper covers only the connected case. <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/2.219.26.139|2.219.26.139]] ([[User talk:2.219.26.139#top|talk]]) 19:25, 14 July 2017 (UTC)</small> <!--Autosigned by SineBot-->