1. Trang chủ
  2. » Giáo án - Bài giảng

04demo dijkstra 100520132102 phpapp02

20 52 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 388 KB

Nội dung

Dijkstra's Shortest Path Algorithm Find shortest path from s to t 24 s 18 14 30 11 5 15 19 16 20 44 t Dijkstra's Shortest Path Algorithm S={ } PQ = { s, 2, 3, 4, 5, 6, 7, t }   s 24 18 14   30  11 5 15  19 16 20 6 distance label 44 t  Dijkstra's Shortest Path Algorithm S={ } PQ = { s, 2, 3, 4, 5, 6, 7, t } delmin   s 24 18 14   30  11 5 15  19 16 20 6 distance label 44 t  Dijkstra's Shortest Path Algorithm S={s} PQ = { 2, 3, 4, 5, 6, 7, t } decrease key  X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 6 distance label 44 t  Dijkstra's Shortest Path Algorithm S={s} PQ = { 2, 3, 4, 5, 6, 7, t } delmin  X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 6 distance label 44 t  Dijkstra's Shortest Path Algorithm S = { s, } PQ = { 3, 4, 5, 6, 7, t }  X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 44 t  Dijkstra's Shortest Path Algorithm S = { s, } PQ = { 3, 4, 5, 6, 7, t } decrease key X  33 X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 44 t  Dijkstra's Shortest Path Algorithm S = { s, } PQ = { 3, 4, 5, 6, 7, t } X  33 X  s 24 delmin 18 X 14  14  30  11 5 15 X  15 19 16 20 44 t  Dijkstra's Shortest Path Algorithm S = { s, 2, } PQ = { 3, 4, 5, 7, t } 32 X X  33 X  s 24 18 X 14  14 30  44 X  11 5 15 X  15 19 16 20 44 t  Dijkstra's Shortest Path Algorithm S = { s, 2, } PQ = { 3, 4, 5, 7, t } 32 X X  33 X  s 24 18 X 14  14 30  44 X  11 5 15 19 16 20 X  15 44 delmin t  Dijkstra's Shortest Path Algorithm S = { s, 2, 6, } PQ = { 3, 4, 5, t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 35 X  5 15 X  15  11 19 16 20 44 t  59 X Dijkstra's Shortest Path Algorithm S = { s, 2, 6, } PQ = { 3, 4, 5, t } delmin 32 X X  33 X  s 24 18 X 14  14 30 44 X 35 X  5 15 X  15  11 19 16 20 44 t  59 X Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 6, } PQ = { 4, 5, t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15  11 19 16 20 44 t 51 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 6, } PQ = { 4, 5, t } 32 X X  33 X  s 24 18 X 14  14 30 X  15  11 19 20 44 X 34 X 35 X  5 15 delmin 44 16 t 51 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 5, 6, } PQ = { 4, t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 16 20 44 t 50 51 X 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 5, 6, } PQ = { 4, t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 delmin 16 20 44 t 50 51 X 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, } PQ = { t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 16 20 44 t 50 51 X 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, } PQ = { t } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 16 20 t 44 delmin 50 51 X 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7, t} PQ = { } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 16 20 44 t 50 51 X 59 X X  Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7, t} PQ = { } 32 X X  33 X  s 24 18 X 14  14 30 44 X 34 X 35 X  5 15 X  15 11 45 X  19 16 20 44 t 50 51 X 59 X X  .. .Dijkstra' s Shortest Path Algorithm S={ } PQ = { s, 2, 3, 4, 5, 6, 7, t }   s 24 18 14   30  11 5 15  19 16 20 6 distance label 44 t  Dijkstra' s Shortest Path Algorithm... distance label 44 t  Dijkstra' s Shortest Path Algorithm S={s} PQ = { 2, 3, 4, 5, 6, 7, t } decrease key  X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 6 distance label 44 t  Dijkstra' s Shortest... 16 20 6 distance label 44 t  Dijkstra' s Shortest Path Algorithm S = { s, } PQ = { 3, 4, 5, 6, 7, t }  X  s 24 18 X 14  14  30  11 5 15 X  15 19 16 20 44 t  Dijkstra' s Shortest Path Algorithm

Ngày đăng: 18/05/2020, 08:44

w