请输入您要查询的字词:

 

单词 Prim's algorithm
释义

Prim's algorithm

(to solve the minimum connector problem) This method is more effective than Kruskal's algorithm when a large number of vertices and/or when the distances are listed in tabular form rather than shown on a graph. Since all vertices will be on the minimum connected route, it does not matter which vertex you choose as a starting point, so make an arbitrary choice, calling it P1 say. Now choose a point with the shortest edge connecting it to P1 and call it P2. At each stage add the edge and new point Pi which adds the shortest distance to the total and does not create any loops. Once Pn has been reached, the minimum connected path has been identified.

随便看

 

数学辞典收录了4151条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/21 7:44:29