malika more ([email protected])
TRANSCRIPT
![Page 1: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/1.jpg)
Introduction Algorithme de Tarjan
Forte connexité
Malika More([email protected])
IREM Clermont-Ferrand
Formation ISN
20 octobre 2011
![Page 2: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/2.jpg)
Introduction Algorithme de Tarjan
Plan du cours
1 Introduction
2 Algorithme de Tarjan
![Page 3: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/3.jpg)
Introduction Algorithme de Tarjan
1 Introduction
2 Algorithme de Tarjan
![Page 4: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/4.jpg)
Introduction Algorithme de Tarjan
Graphe non orienté
On peut parcourir les arêtes dans les deux sens
A
B
C
D
E
F
G
H
I
J
![Page 5: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/5.jpg)
Introduction Algorithme de Tarjan
Connexité
A
B
C
D
E
F
G
H
I
J
Un graphe (non orienté) estconnexe lorsqu’il n’estcomposé que d’un seul« morceau »S’il y a plusieurs morceaux, onparle des composantesconnexes du graphe
![Page 6: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/6.jpg)
Introduction Algorithme de Tarjan
Connexité
A
B
C
D
E
F
G
H
I
J
Les sommets d’unecomposante connexe sontmutuellement accessiblesUn parcours permet dedéterminer la composanteconnexe du sommet de départ
![Page 7: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/7.jpg)
Introduction Algorithme de Tarjan
Graphe orienté
Chaque arc a un sens (flèche)On ne peut suivre un arc que dans le sens de la flèche
A
B
C
D
E
F
G
H
I
J
![Page 8: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/8.jpg)
Introduction Algorithme de Tarjan
La notion de connexité est différente
A
B
C
D
E
F
G
H
I
J
On peut aller de J à C, maispas de C à JSi tous les couples desommets d’un graphe orientésont mutuellementaccessibles, on dit qu’il estfortement connexe
![Page 9: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/9.jpg)
Introduction Algorithme de Tarjan
La notion de connexité est différente
A
B
C
D
E
F
G
H
I
J
Le graphe orienté ci-contrecomprend plusieurscomposantes fortementconnexesComment calculer lacomposante fortementconnexe d’un sommet ?
![Page 10: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/10.jpg)
Introduction Algorithme de Tarjan
Un algorithme simple mais long
A
B
C
D
E
F
G
H
I
J Trouver tous les sommetsaccessibles à partir de X enutilisant un parcoursPour chaque sommet Yaccessible à partir de X ,utiliser un parcours pourvérifier si X est aussiaccessible à partir de Y
![Page 11: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/11.jpg)
Introduction Algorithme de Tarjan
1 Introduction
2 Algorithme de Tarjan
![Page 12: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/12.jpg)
Introduction Algorithme de Tarjan
Idée générale
A
B
C
D
E
F
G
H
I
J
On effectue un parcours enprofondeur à partir d’unsommet du graphe à l’aided’une pile Parcours enmémorisant le rang deDécouverte de chaquesommet visitéPendant le parcours, oncalcule les composantesfortement connexesrencontrées à l’aide d’unedeuxième pile Tarjan et d’unIndex associé à chaquesommet visité
![Page 13: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/13.jpg)
Introduction Algorithme de Tarjan
Préliminaire
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
Parcours en profondeur àpartir de A et rang deDécouverte
Arc de liaison : rougeArc avant : CG, JIArc arrière : BA, DC, IJArc transverse : GE , ED, HC
![Page 14: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/14.jpg)
Introduction Algorithme de Tarjan
Les 5 règles de calcul
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
1 La première fois qu’onrencontre un sommet X , onl’empile sur Tarjan et oninitialise son Index avec lavaleur Découverte(X )
![Page 15: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/15.jpg)
Introduction Algorithme de Tarjan
Les 5 règles de calcul
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
2 Quand on visite à partir de Xun arc arrière (i.e. qui revientvers un sommet Y déjà visitéet stocké dans la pileParcours), on met à jourIndex(X )=Min(Index(X ),Index(Y ))
![Page 16: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/16.jpg)
Introduction Algorithme de Tarjan
Les 5 règles de calcul
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
3 Quand on visite à partir de Xun arc transverse (i.e. quirevient vers un sommet Y déjàvisité et tel queIndex(Y )<Index(X )), àcondition que Y soit stockédans la pile Tarjan, on met àjourIndex(X )=Min(Index(X ),Index(Y ))
![Page 17: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/17.jpg)
Introduction Algorithme de Tarjan
Les 5 règles de calcul
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
4 Quand on revient à X aprèsavoir dépilé de la pileParcours son successeur Y ,on met à jourIndex(X )=Min(Index(X ),Index(Y )) pour que X hériteéventuellement de l’indexcalculé pour Y
![Page 18: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/18.jpg)
Introduction Algorithme de Tarjan
Les 5 règles de calcul
A
B
C
D
E
F
G
H
I
J1
2
3
45
67
8
9 10
5 Au moment de supprimer unsommet X de la pileParcours, si on aIndex(X )=Découverte(X ),alors X et tous les sommetsempilés au-dessus de lui dansla pile Tarjan forment unecomposante fortementconnexe de graphe : on lesdépile tous de Tarjan et biensûr on dépile seulement X deParcours
![Page 19: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/19.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :
Tarjan :
Sommet A B C D E F G H I JDécouverteIndex
![Page 20: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/20.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A
Sommet A B C D E F G H I JDécouverte 1Index 1
![Page 21: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/21.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A
Sommet A B C D E F G H I JDécouverte 1Index 1
![Page 22: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/22.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2Index 1 2
![Page 23: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/23.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2Index 1 1
![Page 24: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/24.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2Index 1 1
![Page 25: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/25.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C
Sommet A B C D E F G H I JDécouverte 1 2 3Index 1 1 3
![Page 26: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/26.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C
Sommet A B C D E F G H I JDécouverte 1 2 3Index 1 1 3
![Page 27: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/27.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C D
Tarjan :A B C D
Sommet A B C D E F G H I JDécouverte 1 2 3 4Index 1 1 3 4
![Page 28: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/28.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C D
Tarjan :A B C D
Sommet A B C D E F G H I JDécouverte 1 2 3 4Index 1 1 3 3
![Page 29: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/29.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D
Sommet A B C D E F G H I JDécouverte 1 2 3 4Index 1 1 3 3
![Page 30: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/30.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D
Sommet A B C D E F G H I JDécouverte 1 2 3 4Index 1 1 3 3
![Page 31: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/31.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D
Sommet A B C D E F G H I JDécouverte 1 2 3 4Index 1 1 3 3
![Page 32: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/32.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F
Sommet A B C D E F G H I JDécouverte 1 2 3 4 5Index 1 1 3 3 5
![Page 33: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/33.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F
Sommet A B C D E F G H I JDécouverte 1 2 3 4 5Index 1 1 3 3 5
![Page 34: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/34.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F E
Tarjan :A B C D F E
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5Index 1 1 3 3 6 5
![Page 35: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/35.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F E
Tarjan :A B C D F E
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5Index 1 1 3 3 3 5
![Page 36: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/36.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F E
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5Index 1 1 3 3 3 5
![Page 37: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/37.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F E
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5Index 1 1 3 3 3 3
![Page 38: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/38.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F E
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5Index 1 1 3 3 3 3
![Page 39: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/39.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F G
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 7
![Page 40: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/40.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F G
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 41: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/41.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F G
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 42: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/42.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 43: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/43.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C F
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 44: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/44.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 45: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/45.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 46: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/46.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B C
Tarjan :A B C D F E G
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 47: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/47.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 48: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/48.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 49: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/49.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A B
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 50: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/50.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 51: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/51.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7Index 1 1 3 3 3 3 3
![Page 52: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/52.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J
Tarjan :A B J
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 8Index 1 1 3 3 3 3 3 8
![Page 53: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/53.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J
Tarjan :A B J
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 8Index 1 1 3 3 3 3 3 8
![Page 54: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/54.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H
Tarjan :A B J H
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 8Index 1 1 3 3 3 3 3 9 8
![Page 55: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/55.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H
Tarjan :A B J H
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 8Index 1 1 3 3 3 3 3 9 8
![Page 56: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/56.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H
Tarjan :A B J H
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 8Index 1 1 3 3 3 3 3 9 8
![Page 57: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/57.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H I
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 9 10 8
![Page 58: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/58.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H I
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 9 8 8
![Page 59: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/59.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H I
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 9 8 8
![Page 60: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/60.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 61: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/61.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J H
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 62: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/62.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 63: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/63.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 64: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/64.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A J
Tarjan :A B J H I
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 65: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/65.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 66: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/66.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 67: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/67.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :A
Tarjan :A B
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 68: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/68.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :
Tarjan :
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 69: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/69.jpg)
Introduction Algorithme de Tarjan
Exemple
Début Animation Fin AnimationA
B
C
D
E
F
G
H
I
J
Parcours :
Tarjan :
Sommet A B C D E F G H I JDécouverte 1 2 3 4 6 5 7 9 10 8Index 1 1 3 3 3 3 3 8 8 8
![Page 70: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/70.jpg)
Introduction Algorithme de Tarjan
Nécessité d’une preuve
On se convainc assez facilement que l’algoritmhe deTarjan permet de calculer les composantes fortementconnexes d’un graphe orientéMais la preuve que c’est bien le cas est loin d’êtreévidente...
![Page 71: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/71.jpg)
Introduction Algorithme de Tarjan
Autre exemple
A B CD
E F G
H
![Page 72: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/72.jpg)
Introduction Algorithme de Tarjan
Autre exemple
A B CD
E F G
H
![Page 73: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/73.jpg)
Introduction Algorithme de Tarjan
Autre exemple
A B CD
E F G
H
1 2 3 4
5678
![Page 74: Malika More (malika.more@u-clermont1.fr)](https://reader035.vdocuments.site/reader035/viewer/2022062409/62ac62109ed1ba19836f9e22/html5/thumbnails/74.jpg)
Introduction Algorithme de Tarjan
FIN