Comparison of Prim and Kruskal’s Algorithm

Article ID

CSTSDE11821

Comparison of Primal Kruskal's Algorithm for optimal graph spanning.

Comparison of Prim and Kruskal’s Algorithm

Rohit Maurya
Rohit Maurya Ajeenkya D Y Patil University
Rahul Sharma
Rahul Sharma
DOI

Abstract

The goal of this research is to compare the performance of the common Prim and the Kruskal of the minimum spanning tree in building up super metric space. We suggested using complexity analysis and experimental methods to evaluate these two methods. After analysing daily sample data from the Shanghai and Shenzhen 300 indexes from the second half of 2005 to the second half of 2007, the results revealed that when the number of shares is less than 100, the Kruskal algorithm is relatively superior to the Prim algorithm in terms of space complexity; however, when the number of shares is greater than 100, the Prim algorithm is more superior in terms of time complexity. A spanning tree is defined in the glossary as a connected graph with non-negative weights on its edges, and the challenge is to identify a maz weight spanning tree. Surprisingly, the greedy algorithm yields an answer. For the problem of finding a min weight spanning tree, we propose greedy algorithms based on Prim and Kruskal, respectively. Graham and Hell provide a history of the issue, which began with Czekanowski’s work in 1909. The information presented here is based on Rosen.

Comparison of Prim and Kruskal’s Algorithm

The goal of this research is to compare the performance of the common Prim and the Kruskal of the minimum spanning tree in building up super metric space. We suggested using complexity analysis and experimental methods to evaluate these two methods. After analysing daily sample data from the Shanghai and Shenzhen 300 indexes from the second half of 2005 to the second half of 2007, the results revealed that when the number of shares is less than 100, the Kruskal algorithm is relatively superior to the Prim algorithm in terms of space complexity; however, when the number of shares is greater than 100, the Prim algorithm is more superior in terms of time complexity. A spanning tree is defined in the glossary as a connected graph with non-negative weights on its edges, and the challenge is to identify a maz weight spanning tree. Surprisingly, the greedy algorithm yields an answer. For the problem of finding a min weight spanning tree, we propose greedy algorithms based on Prim and Kruskal, respectively. Graham and Hell provide a history of the issue, which began with Czekanowski’s work in 1909. The information presented here is based on Rosen.

Rohit Maurya
Rohit Maurya Ajeenkya D Y Patil University
Rahul Sharma
Rahul Sharma

No Figures found in article.

Rohit Maurya. 2026. “. Global Journal of Computer Science and Technology – C: Software & Data Engineering GJCST-C Volume 23 (GJCST Volume 23 Issue C1): .

Download Citation

Journal Specifications

Crossref Journal DOI 10.17406/gjcst

Print ISSN 0975-4350

e-ISSN 0975-4172

Issue Cover
GJCST Volume 23 Issue C1
Pg. 27- 33
Classification
GJCST-C Classification: FOR Code: 080201
Keywords
Article Matrices
Total Views: 2250
Total Downloads: 11
2026 Trends
Research Identity (RIN)
Related Research
Our website is actively being updated, and changes may occur frequently. Please clear your browser cache if needed. For feedback or error reporting, please email [email protected]

Request Access

Please fill out the form below to request access to this research paper. Your request will be reviewed by the editorial or author team.
X

Quote and Order Details

Contact Person

Invoice Address

Notes or Comments

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

High-quality academic research articles on global topics and journals.

Comparison of Prim and Kruskal’s Algorithm

Rohit Maurya
Rohit Maurya Ajeenkya D Y Patil University
Rahul Sharma
Rahul Sharma

Research Journals