MST Boruvka Algorithm Performance Measurement (Яковлев краш)(Не бийте за ноушен, бумласка)(І за пайтон теж)
This program measures the performance of Boruvka's algorithm for finding the minimum spanning tree (MST) of a graph. It compares the performance using adjacency list and adjacency matrix representations.
- Clone the repository:
git clone https://github.com/MoisieievVasya/Boruvka-algorithm
- open the directory
cd Boruvka-algorithm
- Install the required dependencies:
pip install pandas networkx matplotlib
- Run the performance measurement script:
python main.py
- The results will be saved in
by_list.txt
andby_matrix.txt
files.
If you want to get diagrams of the results, you can run the script :
python analysis.py
You can run the performance measurement script with different numbers of vertices and densities. The script will generate a graph and calculate the minimum spanning tree using Boruvka's algorithm. The performance of the algorithm is then measured and the results are saved.
main.py.
: Main script to measure the performance.analysis.py
: Script to analyze the results.README.md
: This file.by_list.txt
: Results of performance measurement using adjacency list.by_matrix.txt
: Results of performance measurement using adjacency matrix.
- Python 3.x
- networkx
- matplotlib
- pandas
The results of the performance measurement are saved in by_list.txt and by_matrix.txt files. These files contain the performance of the algorithm for different numbers of vertices and densities. The analysis.py script can be used to visualize these results.
This program was written by Moisieiev Vasya and Zahar Staric. It is licensed under the MIT License.