mst explain

This commit is contained in:
jatin0004 2021-10-13 01:43:57 +05:30 committed by GitHub
parent 196f0185f9
commit 42b00c3363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
# Prim's Algorithm # Prim's Algorithm
In computer science, **Prim's algorithm** is a greedy algorithm that In computer science, **Prim's algorithm** is a greedy algorithm that
finds a minimum spanning tree for a weighted undirected graph. finds a minimum spanning tree(shortest distance to reach every node) for a weighted undirected graph.
The algorithm operates by building this tree one vertex at a The algorithm operates by building this tree one vertex at a
time, from an arbitrary starting vertex, at each step adding time, from an arbitrary starting vertex, at each step adding