About 1,670,000 results
Open links in new tab
  1. Prim’s Algorithm in C - GeeksforGeeks

    Jun 27, 2024 · Prim’s algorithm is a greedy algorithm that finds the minimum spanning tree (MST) for a weighted undirected graph. It starts with a single vertex and grows the MST one edge at …

  2. Prim’s Algorithm for Minimum Spanning Tree (MST)

    Feb 26, 2025 · Prim's algorithm is guaranteed to find the MST in a connected, weighted graph. It has a time complexity of O((E+V)*log(V)) using a binary heap or Fibonacci heap, where E is …

  3. Prim’s Algorithm in C [Program & Algorithm] - The Crazy …

    Here you will learn about prim’s algorithm in C with a program example. Prim’s Algorithm is an approach to determine minimum cost spanning tree. In this case, we start with single edge of …

  4. Prim's Algorithm - Programiz

    Prim's algorithm is a minimum spanning tree algorithm that takes a graph as input and finds the subset of the edges of that graph Certification courses in Python, Java, SQL, HTML, CSS, …

  5. Prim’s Minimum Spanning Tree Algorithm in C - Sanfoundry

    Prim’s algorithm is a greedy algorithm that finds a minimum spanning tree for a connected weighted undirected graph. It finds a subset of the edges that forms a tree that includes every …

  6. Prim's Algorithm for minimum Spanning Tree in C - w3resource

    Mar 19, 2025 · Learn how to implement Prim's algorithm in C to find the minimum spanning tree of a weighted undirected graph. Understand greedy algorithms and MST construction.

  7. C Program to find a minimum spanning tree using Prim’s algorithm

    Prims algorithm is a greedy algorithm that finds the minimum spanning tree of a graph. Graph should be weighted, connected, and undirected.

  8. Prim's Algorithm for Minimum Spanning Tree: Detailed Explanation and C ...

    Jan 10, 2025 · Prim’s Algorithm is a greedy algorithm used to find the MST of a graph. It starts from an arbitrary vertex and grows the tree by adding the smallest edge connecting the tree to …

  9. C Program for Creating Minimum Spanning Tree using Prim’s Algorithm

    Jul 11, 2017 · Here’s simple Program for minimum cost spanning tree using prim’s algorithm example in C Programming Language. Prim’s algorithm is a greedy algorithm that finds a …

  10. Prim's Algorithm in C program Working code · GitHub

    int prims(int); int input(int num) {int i, j; printf("\nEnter the adjacency matrix\n\n"); for(i=1; i<=num; i++) {for(j=1; j<=num; j++) {printf("value of cost[%d][%d] : ",i,j); scanf("%d", &cost[i][j]);}} return …

  11. Some results have been removed
Refresh