Understanding Kruskal's Algorithm: From Theory to Real-World Application

MOHAMMADSAJJADHOSSAI5 45 views 13 slides Jun 28, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

**SlideShare Description:**

Discover the essentials of Kruskal's Algorithm in this comprehensive presentation. Ideal for students and professionals alike, this presentation covers:

- **Introduction of Kruskal Algorithm**: An overview of Kruskal's Algorithm, its significance in graph theory...


Slide Content

Green University Of Bangladesh Presentation Topic : Kruskal’s Algorithm Presented To Md. Gulzar Hossain Lecturer Department of CSE Green University of Bangladesh Presented By Name : Md Imran Khan ID : 203015003 Course : Algorithm Lab Course Code : CSE 206 Department : Computer Science & Engineering

Content Introduction of Kruskal Algorithm K ruskal's algorithm pseudocode Implementation of Kruskal’s Algorithm Real Life example of Kruskal’s Algorithm Summary

Kruskal's algorithm is a greedy algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph. It finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized. This algorithm is directly based on the MST( minimum spanning tree) property. Introduction of Kruskal’s Algorithm

Introduction of Kruskal’s Algortihm

MST-KRUSKAL(G, w) A ← Ø for each vertex v V[G] do MAKE-SET(v) sort the edges of E into nondecreasing order by weight w for each edge (u, v) E, taken in nondecreasing order by weight do if FIND-SET(u) ≠ FIND-SET(v) then A ← A {(u, v)} UNION(u, v) return A Pseudocode of Kruskal’s Algortihm

Implementation of Kruskal’s Algortihm

Implementation of Kruskal’s Algortihm

Implementation of Kruskal’s Algortihm

Implementation of Kruskal’s Algorithm

Output of the Program

Landing cables. TV Network. Tour Operations. LAN Networks. A network of pipes for drinking water or natural gas. An electric grid. Single-link Cluster. Application where Kruskal’s Algorithm is generally use d

In Kruskal Algorithm, initially, all the nodes of the graph are separated from each other, which means they don't have an edge between them . Then to obtain the minimum spanning tree from that graph we first sort the edges of the graph in a non-decreasing fashion. Problem of Kruskal’s Algorithm