Algoritma Dijkstra: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Xyz or die (bicara | kontrib)
Tidak ada ringkasan suntingan
 
Xyz or die (bicara | kontrib)
Tidak ada ringkasan suntingan
Baris 1:
'''Algoritma Dijkstra's algorithm''', nameddinamai aftermenurut its discovererpenemunya, Dutch [[computer science|computer scientist]] [[Edsger Dijkstra]], is aadalah [[greedy algorithm]] thatyang solves the single-sourcememecahkan [[shortest path problem]] foruntuk asebuah [[directed graph]] withdengan nonnegative [[edge (graphweights theory)|edge]]yang weightstidak negatif.
 
For example, if the [[vertices]] of the graph represent cities and edge weights represent driving distances between pairs of cities connected by a direct road, Dijkstra's algorithm can be used to find the shortest route between two cities.