• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 1 pages
Summary

Summary of the Primms algorithm

Document preview thumbnail
Preview 1 out of 1 pages

Notes on the primms algorithm.

Content preview

Prims pt-2
Prims algorithm using a matrix:
1. choose any vertex to start the tree (in an exam you will likely be told which vertex to start with)
2. delete the row in the matrix for the chosen vertex
3. Number the column in the matrix for the chosen vertex
4. put a box around the lowest undeleted entry in the numbered columns (if there is an equal choice, choose
randomly)
5. the ringed entry becomes the next arc to be added to the tree
6. repeat steps 2,3,4 and 5 untill all rows are deleted


A B C D E
A - 27 12 23 74
B 27 - 47 15 71
C 12 47 - 28 87
D 23 15 28 - 75
E 74 71 87 75 -

Document information

Study Level
Subject
Uploaded on
August 28, 2023
Number of pages
1
Written in
2022/2023
Type
Summary
$6.84

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
6
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions