6
ABSTRAK
Pencarian shortest path (lintasan terpendek) adalah masalah umum dalam suatu weighted, connected graph. Salah satu cabang ilmu matematika yang terkait dalam penyelesaian lintasan terpendek adalah teori graph. Dalam menyelesaikan teori graph diperlukan pula algoritma lintasan terpendek (shortest path algorithm). Penelitian ini menggunakan algoritma L-Queue dan algoritma Floyd untuk menghitung jarak tependek dari titik awal sampai titik tujuan dan melihat perbandingan dari cara kerja masing-masing algoritma. Algoritma L-Queue beroperasi dengan cara FIFO (First In First Out), elemen pertama masuk merupakan elemen pertama keluar dan juga beberapa operasi dasar seperti insert, create, remove. Algoritma Floyd menggunakan prinsip dinamis yang melakukan
pemecahan masalah dengan memandang solusi yang akan diperoleh sebagai suatu keputusan yang terkait. Implementasi sistem menggunakanVisual Studio dengan bahasa
pemogaraman C#.Berdasarkan dari hasil penelitian menunjukkan bahwa perangkat lunak yang dibangun dapat menjalankan proses pencarian lintasan terpendek menggunakan algoritma Floyd dan algoritma L-Queue dengan baik. Jarak terpendek yang dihasilkan
kedua algoritma adalah yang paling minimum sedangkan perbandingan hasil real running time kedua algoritma dapat terlihat dalam jumlah node yang berbeda, pada algoritma
Floyd jumlah node diatas 20, maka hasil running time akan tertera, sedangkan pada algoritma L-Queue dibutuhkan lebih dari 50 node untuk menampilkan hasil running time.
Kata kunci
:
Shortest Path, Graph, , Algoritma L-Queue, Algoritma
Floyd
7
ANALYSIS AND COMPARISON L-QUEUE ALGORITHM AND FLOYD ALGORITHM IN DETERMINING
SHORTEST PATH ON A GRAPH
ABSTRACT
Finding shortest path is a common problem in a weighted connected graph. One of mathematics science that involved in solved the shortest path problem is graph theory.
In completing the graph theory there also needed the shortest path algorithm. This study uses L-Queue algorithm and Floyd algorithm to determining the distance from the
starting point to the destination point on a graph and see comparison of the workings by each algorithm. L-Queue algorithms operate with a FIFO (First In First Out), means the
first element in is the first element out, and other basic operation like insert, create adn remove. Floyd algorithm using dynamic principle in problem solving by looking at a solution that would be obtained as a related decisions. Implementation of the system
using Visual Studio with C # language. The software that has been built could run each algorithms, this application also can be used to determine the shortest distance and shown
the comparison of the real running time of each algorithms. Based on the results of the study indicate that the software built to run the search process using the shortest path
algorithm and Floyd algorithm L-Queue as well. The shortest distance produced by two algorithms are the minimum while the comparison of real running time of both
algorithms can be seen in a number of different nodes, the Floyd Algorithm has to add 20 nodes above to get the result of running time, while L-Queue algorithm has to add 50
nodes above to get the result of running time.