About 345,000 results
Open links in new tab
  1. Kruskal’s Minimum Spanning Tree (MST) Algorithm

    Aug 26, 2025 · A minimum spanning tree (MST) or minimum weight spanning tree for a weighted, connected, and undirected graph is a spanning tree (no cycles and connects all vertices) that …

  2. Minimum spanning tree - Wikipedia

    The first algorithm for finding a minimum spanning tree was developed by Czech scientist Otakar Borůvka in 1926 (see Borůvka's algorithm). Its purpose was an efficient electrical coverage of …

  3. Minimum Spanning Tree: Algorithms Explained with Examples

    There are multiple algorithms for computing a minimum spanning tree, and the two most widely used methods are the Kruskal algorithm and the Prim algorithm. In this article, we’ll cover all …

  4. em, Minimum Spanning Trees (MST). The MST of an undirected, weighted graph is a tree that spans the graph while minimizing the tota weight of the edges in the tree. We first define …

  5. Minimum Spanning Trees - Princeton University

    Jan 10, 2025 · A minimum spanning tree (MST) of an edge-weighted graph is a spanning tree whose weight (the sum of the weights of its edges) is no larger than the weight of any other …

  6. CS 225 | Minimum Spanning Tree

    We can assign each node the minimum weight it takes to add it to our tree, and then choose the node with minimum such value. For those nodes that are not our immediate neighbors, assign …

  7. Kruskal's Algorithm and Minimum Spanning Tree

    Sort all the edges in non-decreasing order of their weight. Pick the smallest edge. Check if it forms a cycle with the spanning tree formed so far. If cycle is not formed, include this edge. Else, …

  8. What is Minimum Spanning Tree (MST) - GeeksforGeeks

    Jul 23, 2025 · The algorithm works by iteratively building the minimum spanning tree, starting with each vertex in the graph as its own tree. In each iteration, the algorithm finds the cheapest …

  9. DSA Part 19 - Minimum Spanning Tree (MST) Algorithms in …

    When facing a Minimum Spanning Tree (MST) problem—such as determining the optimal bridges to connect islands at minimal cost—two classical algorithms often come to mind: Prim’s …

  10. Kruskal's algorithm - Wikipedia

    Kruskal's algorithm[1] finds a minimum spanning forest of an undirected edge-weighted graph. If the graph is connected, it finds a minimum spanning tree. It is a greedy algorithm that in each …