Abstract
This paper presents a detailed comparison of three greedy algorithms—Prim, Kruskal, and Reverse-Delete—in optimizing the routes within Terengganu’s and Pahang’s attraction road network. The goal is to determine the most effective algorithm for constructing the minimum spanning tree (MST) that minimizes total travel distance. Prim’s algorithm builds the MST by starting from an arbitrary node and continually adding the smallest edge that connects a vertex in the tree to a vertex outside the tree. Kruskal’s algorithm, on the other hand, constructs the MST by sorting all the edges and adding the smallest edge to the tree, as long as it doesn’t form a cycle. The Reverse-Delete algorithm works in reverse; it starts with the full graph and iteratively removes the largest edges, ensuring that the graph remains connected. This study meticulously evaluates each algorithm’s computational efficiency, implementation complexity, and performance in generating optimal routes.
Metadata
Item Type: | Thesis (Degree) |
---|---|
Creators: | Creators Email / ID Num. Mohammad Zahid, Munashahira 2021898904 |
Contributors: | Contribution Name Email / ID Num. Thesis advisor Salahudin, Nur Atikah UNSPECIFIED |
Subjects: | Q Science > QA Mathematics > Analysis > Difference equations. Functional equations. Delay differential equations. Integral equations |
Divisions: | Universiti Teknologi MARA, Terengganu > Kuala Terengganu Campus > Faculty of Computer and Mathematical Sciences |
Programme: | Bachelor of Science (Hons.) Mathematical Modelling and Analytics |
Keywords: | Prim, Kruskal, Reverse-Delete Algorithm |
Date: | 2024 |
URI: | https://ir.uitm.edu.my/id/eprint/106184 |
Download
106184.pdf
Download (80kB)