Docsity

Prim's Algorithm: Applying and Visualizing the Minimum Spanning Tree Algorithm, Quizzes of Algorithms and Programming

Toggle sidebar
bg1
1
Subject: Algorithms
Section:
Date:
Name:
ID:
Marks: 20
1. Apply Prim’s algorithm to the below graph (Consider A as start node) and do the followings:
1. Fill the table (Key, Distance, and Parent). (5 Marks)
2. After filling the table draw the MST graph. (5 Marks)
3. Implement the Prim’s algorithm. (10 Marks)
* Graph Representation: 5 Marks, and Prims’s Implementation: 5 Marks
K
dv
pv
A
B
C
D
E
F
G
H
I
J

Partial preview of the text

Download Prim's Algorithm: Applying and Visualizing the Minimum Spanning Tree Algorithm and more Quizzes Algorithms and Programming in PDF only on Docsity!

1 Subject: Algorithms (^) Section: Date: Name: ID: Marks: 2 0

  1. Apply Prim’s algorithm to the below graph (Consider A as start node) and do the followings:
    1. Fill the table (Key, Distance, and Parent). (5 Marks)
    2. After filling the table draw the MST graph. (5 Marks)
    3. Implement the Prim’s algorithm. (10 Marks)
      • Graph Representation: 5 Marks, and Prims’s Implementation: 5 Marks K dv pv A B C D E F G H I J