Académique Documents
Professionnel Documents
Culture Documents
Chap5 THG
Chap5 THG
2022-2023 1
Plan
1. Introduction
2. Graphe valué
5. Algorithme de Dijkstra
2
Introduction
3
Graphe valué (1)
Définition 1:
Un graphe (orienté ou non) G=(S, A) est valué s’il est muni d’une
application:
v: A →R
(x, y) → v(x, y)
v est appelée valuation des arcs.
On notera G = (S, A, v) un graphe muni d’une valuation v.
A B
5
Longueur d’un chemin
8
Algorithme de Dijkstra(1)
11
Exemple (2)
12
Exemple (3)
14
Exemple (5)
15
Exemple (6)
16
Exemple (7)
17
Exemple (8)
18
Exemple (9)
19
Exemple (10)