Prims Algorithm
Prims Algorithm
prim's algorithm
Prims Algorithm
2
Members:
prim's algorithm
3
Introduction to Prim’s Algorithm
prim's algorithm
4
Minimum Spanning Tree
prim's algorithm
5
Steps to be followed when selecting
prim's algorithm
6
Example one
Construct a minimum spanning tree of the graph given in the following figure by using
prim’s algorithm.
prim's algorithm
7
Solution
prim's algorithm
8
Solution.
prim's algorithm
9
Example two
Construct a minimum spanning tree of the graph given in the following figure by using
prim’s algorithm
prim's algorithm
10
Solution
Total Cost = 10 + 25 + 22 + 12 + 16 + 14 = 99
prim's algorithm
11
prim's algorithm
12
Application of Prim’s Algorithm
Network for roads and rail tracks connecting all the cities.
Irrigation channels and placing microwave towers.
Designing a fibre optic grid or Ics.
Travelling salesman problem.
Cluster analysis.
Pathfinding algorithm used in AI.
Game development.
Cognitive science.
prim's algorithm