Details: Kruskal Algorithm in C# and Portugol for College Activity.
Subject: Graph Theory.
The PDF attached is my handwritten guide about MST.
All codes commentaries are in PT-BR
- Study about the Kruskal Algorithm;
- Create a Pseudo-Code; (I choose to create in Portugol - A PT-BR Pseudo-Code Language)
- Implement the Code in C Language;
1st input: The edge quantity in the graph - You don't need to put the vertices; (Min. of 5 and Max. of 15)
2nd input: Loop between 0 and the quantity you inserted;
1st output: The new edges - After removing Cicles and Paralels;
2nd output: Details of the operation - More for testing purposes like which edges the program took off;
3rd output: Final graph node;
4th output: Minimal Cost;
V1.0 - No Cycle Break;
V1.1 - Issue on Cycles with more than 3 connections;
V1.2 - Glitches with a few cases (Mostly on connections between the last and the first node);