Anda di halaman 1dari 22

DIJKSTRA ALGORITHM

Nama Kelompok (17):


1) M. Kamil Alvin Sakhi (23419013)
2) M. Lukman Affifudin (23419014)
DEFINISI
• Algoritme Dijkstra, (sesuai penemunya Edsger Dijkstra), adalah sebuah
algoritma yang dipakai dalam memecahkan permasalahan jarak
terpendek (shortest path problem) untuk sebuah graf berarah
(directed graph).
• Algoritma ini dioublikasikan pada tahun 1959 jurnal Numerische
Mathematik yang berjudul “A Note on Two Problems in Connexion with
Graphs” dan dianggap sebagai algoritma greedy.
• Menurut Andrew Goldberg peneliti Microsoft Research Silicon Valley,
mengatakan ada banyak alasan mengapa peneliti terus mempelajari
masalah pencarian jalan terpendek.”.
Untuk Lebih Jelasnya bisa dilihat pada
contoh berikut ini
2
1 3
4 1

4 2
0 1 5
6
3
3
2 4
0+4<+ꚙ +ꚙ
2
1 3
1
4
proses
4 2 +ꚙ
0 1 5
0 6
3
3
2 4
+ꚙ +ꚙ
4 +ꚙ
2
1 3
1
proses
4 2 +ꚙ
0 1 5
0 6
3
3
2 4
+ꚙ +ꚙ
4 +ꚙ
2
1 3
1
proses
4 2 +ꚙ
0 1 5
0 6
3
3
2 4
0+3<+ꚙ +ꚙ
4 +ꚙ
2
1 3
1
proses
4 2 +ꚙ
0 1 5
0 6

3
2 4
3 +ꚙ
4 +ꚙ
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
proses
2 4
3 +ꚙ
3+1=4 +ꚙ
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
proses
2 4
3 +ꚙ
4 +ꚙ
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
proses
2 4
3 +ꚙ
3+3<+

4 +ꚙ
3+4<+ꚙ
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
proses
2 4
3 6
Proses 4 6<7
7
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
Selesai
1 4
3 6
Selesai 4 6
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
Selesai
1 4
3 6
Selesai 4 6
8>6
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
Selesai
1 4
3 Proses
6
Selesai 4 6
2
1 3
1
Selesai
4 2 +ꚙ
0 1 5
0 6

3
Selesai
1 4
Proses
3 6
Selesai 4 6
2
1 3
1
Selesai
4 2
0 1 5 6+6<+ꚙ
12
0 6

3
Selesai
1 4
Proses
3 6
Selesai 4 6
2
1 3
1
Selesai
4 2
0 1 5 12
0 6

3
Selesai
1 4
Selesai
3 6
Selesai 4 6 Proses

2
1 3
1
Selesai
4 2
0 1 5 6+1<12
12
7
0 6

3
Selesai
1 4
Selesai
3 6
Selesai 4 6 Selesai
2
1 3
1
Selesai
4 2
0 1 5 7
0 6 Proses

3
Selesai
1 4
Selesai
3 6

Anda mungkin juga menyukai