kruskalsalgo.html

来自「数据结构词典(英文)」· HTML 代码 · 共 50 行

HTML
50
字号
<!DOCTYPE HTML PUBLIC "-//IETF//DTD W3 HTML 2.0//EN">
<HTML lang="en-US">
<HEAD>
<TITLE>Kruskal's algorithm</TITLE>
<META name="description"
  content="Definition of Kruskal's algorithm,
	possibly with links to more information and implementations.">
<META name="keywords" content="Kruskal's algorithm">
</HEAD>
<BODY BGCOLOR="#FFFFFF">

<H1>Kruskal's algorithm</H1>
<P>
(algorithm)

<P>
<strong>Definition:</strong>
An algorithm for computing a <a href="minspantree.html" tppabs="http://hissa.nist.gov/dads/HTML/minspantree.html"><em>minimum spanning tree</em></a>.  It maintains a set of partial minimum spanning trees, and repeatedly adds the shortest <a href="edge.html" tppabs="http://hissa.nist.gov/dads/HTML/edge.html"><em>edge</em></a> in the <a href="graph.html" tppabs="http://hissa.nist.gov/dads/HTML/graph.html"><em>graph</em></a> whose <a href="vertex.html" tppabs="http://hissa.nist.gov/dads/HTML/vertex.html"><em>vertices</em></a> are in different partial minimum spanning trees.
<P><strong>See also</strong>
<a href="primsalgrthm.html" tppabs="http://hissa.nist.gov/dads/HTML/primsalgrthm.html"><em>Prim's algorithm</em></a>.
<P>Author: <a href="terms.html#authorJLG" tppabs="http://hissa.nist.gov/dads/terms.html#authorJLG">JLG</a>
<H2>Implementation</H2>
<A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/mst.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/mst.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://www.ee.uwa.edu.au/%7Eplsd210/ds/mst.html">analysis and code (C)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://students.ceid.upatras.gr/%7Epapagel/project/pseukrus.htm  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://students.ceid.upatras.gr/%7Epapagel/project/pseukrus.htm'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://students.ceid.upatras.gr/%7Epapagel/project/pseukrus.htm">(pseudocode)</A>, <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Ejlubinsk/cs333/kruskal.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Ejlubinsk/cs333/kruskal.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://watson2.cs.binghamton.edu/%7Ejlubinsk/cs333/kruskal.html">(C++)</A>
<H2>More information</H2>
OR-Notes on graph theory, including <A HREF="javascript:if(confirm('http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mscmga.ms.ic.ac.uk/jeb/or/graph.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mscmga.ms.ic.ac.uk/jeb/or/graph.html'" tppabs="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://mscmga.ms.ic.ac.uk/jeb/or/graph.html">Kruskal's algorithm</A>.

<hr>

Go to the
<A HREF="terms.html" tppabs="http://hissa.nist.gov/dads/terms.html">Algorithms, Data Structures, and Problems</A>
home page.

<hr>

If you have suggestions, corrections, or comments, please get in touch
with
<a href="javascript:if(confirm('http://hissa.nist.gov/~black/black.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://hissa.nist.gov/~black/black.html'" tppabs="http://hissa.nist.gov/~black/black.html">Paul E. Black</a>
&nbsp;(<a href="mailto:paul.black@nist.gov">paul.black@nist.gov</a>).

<p>
Entry modified Thu Sep 30 13:37:05 1999.<BR>
HTML page formatted Wed Dec 22 09:35:40 1999.

<P>
This page's URL is
<A href="kruskalsalgo.html" tppabs="http://hissa.nist.gov/dads/HTML/kruskalsalgo.html">http://hissa.nist.gov/dads/HTML/kruskalsalgo.html</A>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?