SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
Prim’s Algorithm
By : Garishma Bhatia
Content Layout List
• Minimal Spanning Tree
• Prim’s Algorithm
• Example
• Algorithm
• Analysis
• Complexity
• References
What is Minimum Spanning Tree?
• A spanning tree is a subset of Graph G, which has all the vertices
covered with minimum possible number of edges.
• Hence, a spanning tree does not have cycles and it cannot be
disconnected.
Prim’s Algorithm
• Prim's algorithm is a greedy algorithm that finds a minimum spanning
tree for a weighted undirected graph.
• The algorithm was developed in 1930 by Czech mathematician Vojtěch
Jarník.
• But later rediscovered and republished by computer scientists Robert C.
Prim in 1957 and Edsger W. Dijkstra in 1959.
• Therefore, it is also sometimes called the DJP algorithm, the Prim–
Dijkstra algorithm
Two Content Layout with Table
• First bullet point here
• Second bullet point here
• Third bullet point here
Class Group A Group B
Class 1 82 95
Class 2 76 88
Class 3 84 90
Two Content Layout with SmartArt
Group A
• Task 1
• Task 2
Group B
• Task 1
• Task 2
Group C
• Task 1
• First bullet point here
• Second bullet point here
• Third bullet point here
Add a Slide Title - 1
Add a Slide Title - 2
Add a Slide Title - 3
PRIM'S ALGORITHM
Add a Slide Title - 4
Add a Slide Title - 5

More Related Content

PPTX
Kruskal Algorithm
PPTX
Prims and kruskal algorithms
PPT
Prim's Algorithm on minimum spanning tree
PPTX
Greedy Algorithms
PDF
Prims Algorithm
PPTX
A presentation on prim's and kruskal's algorithm
PPTX
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
PPTX
Data structure - Graph
Kruskal Algorithm
Prims and kruskal algorithms
Prim's Algorithm on minimum spanning tree
Greedy Algorithms
Prims Algorithm
A presentation on prim's and kruskal's algorithm
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
Data structure - Graph

What's hot (20)

PPT
Spanning trees
PPT
minimum spanning tree
PPTX
Tree traversal techniques
PPTX
Prim's algorithm
PPTX
All pair shortest path
PPTX
Astar algorithm
PPTX
DAA-Floyd Warshall Algorithm.pptx
PPTX
Topological Sorting
PPT
Sum of subsets problem by backtracking 
PDF
All pairs shortest path algorithm
PPTX
Kruskal’s algorithm
PPT
Heap sort
PPTX
Hamiltonian path
PPTX
Knapsack problem using greedy approach
PPTX
Presentation on Breadth First Search (BFS)
PPTX
Divide and conquer - Quick sort
PPT
Greedy Algorihm
PPT
Lec 17 heap data structure
PPTX
Bellman ford algorithm
Spanning trees
minimum spanning tree
Tree traversal techniques
Prim's algorithm
All pair shortest path
Astar algorithm
DAA-Floyd Warshall Algorithm.pptx
Topological Sorting
Sum of subsets problem by backtracking 
All pairs shortest path algorithm
Kruskal’s algorithm
Heap sort
Hamiltonian path
Knapsack problem using greedy approach
Presentation on Breadth First Search (BFS)
Divide and conquer - Quick sort
Greedy Algorihm
Lec 17 heap data structure
Bellman ford algorithm
Ad

More from garishma bhatia (19)

PPTX
Peephole optimization techniques
PPTX
Vm migration techniques
PPTX
Denial of service
PPTX
Iot + cloud
PPTX
WORKFLOW OF THE PROCESS IN SPM
PPTX
MULTILEVEL QUEUE SCHEDULING
PPTX
Constructor overloading & method overloading
PPT
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
PPTX
BLOCKCHAIN TECHNOLOGY
PPTX
Knapsack problem
PPTX
Data types IN JAVA
PPTX
Data Algorithms And Analysis
DOCX
VEHICLE REGISTRATION PROJECT
PPTX
WIFI TECH
PPTX
MATCHING GRAPH THEORY
PPTX
Garishma se
PPTX
Garishma xcs
PPTX
Garishma maTHS
PPTX
Garishma ec
Peephole optimization techniques
Vm migration techniques
Denial of service
Iot + cloud
WORKFLOW OF THE PROCESS IN SPM
MULTILEVEL QUEUE SCHEDULING
Constructor overloading & method overloading
MULTIPLE ACCESS PROTOCOL COMPUTER NETWORKS
BLOCKCHAIN TECHNOLOGY
Knapsack problem
Data types IN JAVA
Data Algorithms And Analysis
VEHICLE REGISTRATION PROJECT
WIFI TECH
MATCHING GRAPH THEORY
Garishma se
Garishma xcs
Garishma maTHS
Garishma ec
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
Welding lecture in detail for understanding
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
PPT on Performance Review to get promotions
PPTX
web development for engineering and engineering
PPTX
additive manufacturing of ss316l using mig welding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
573137875-Attendance-Management-System-original
Welding lecture in detail for understanding
Embodied AI: Ushering in the Next Era of Intelligent Systems
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
UNIT 4 Total Quality Management .pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Mechanical Engineering MATERIALS Selection
bas. eng. economics group 4 presentation 1.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT on Performance Review to get promotions
web development for engineering and engineering
additive manufacturing of ss316l using mig welding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...

PRIM'S ALGORITHM

  • 1. Prim’s Algorithm By : Garishma Bhatia
  • 2. Content Layout List • Minimal Spanning Tree • Prim’s Algorithm • Example • Algorithm • Analysis • Complexity • References
  • 3. What is Minimum Spanning Tree? • A spanning tree is a subset of Graph G, which has all the vertices covered with minimum possible number of edges. • Hence, a spanning tree does not have cycles and it cannot be disconnected.
  • 4. Prim’s Algorithm • Prim's algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph. • The algorithm was developed in 1930 by Czech mathematician Vojtěch Jarník. • But later rediscovered and republished by computer scientists Robert C. Prim in 1957 and Edsger W. Dijkstra in 1959. • Therefore, it is also sometimes called the DJP algorithm, the Prim– Dijkstra algorithm
  • 5. Two Content Layout with Table • First bullet point here • Second bullet point here • Third bullet point here Class Group A Group B Class 1 82 95 Class 2 76 88 Class 3 84 90
  • 6. Two Content Layout with SmartArt Group A • Task 1 • Task 2 Group B • Task 1 • Task 2 Group C • Task 1 • First bullet point here • Second bullet point here • Third bullet point here
  • 7. Add a Slide Title - 1
  • 8. Add a Slide Title - 2
  • 9. Add a Slide Title - 3
  • 11. Add a Slide Title - 4
  • 12. Add a Slide Title - 5