Compare commits

...

3 Commits

Author SHA1 Message Date
3014f7a3af TP3++ 2023-03-17 10:08:07 +01:00
0f688ecb48 Merge branch 'master' of https://dwarves.iut-fbleau.fr/gitiut/dartoisl/Graphes 2023-03-17 10:07:47 +01:00
468acdea5f ajout Algos TD3 2023-03-17 10:05:40 +01:00
4 changed files with 5 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ Ecrire une fonction qui, étant donnés un graphe g et un sommet v de ce graphe,
fifo* fileVoisins(graphe g,int v);
```
![Parcours en Largeur](parcoursLargeur.png)
**Question :**
@@ -116,6 +117,8 @@ On pourra se contenter d'afficher sur la sortie standard la numérotation de pre
void parcoursProfondeur(graphe g,int v);
```
![Parcours en Profondeur](parcoursProfondeur.png)
**Question :**
Tester sur un graphe (au hasard celui des frontières). Cela correspond-t-il à une exécution manuelle de l'algorithme ?
@@ -144,6 +147,8 @@ Les premières questions visent à donner des fonctions aidant à l'implémentat
Pour simplifier le code de Welsh-Powell, écrire une fonction
`int voisinCouleur(graphe g,int v,int c,int *color)` renvoyant 1 si le sommet v a un voisin de la couleur c dans le tableau color, et 0 sinon.
![Algorithme de Welsh-Powell](WelshPowell.png)
**Question**
Enfin, implémentez l'algorithme de Welsh-Powell.

BIN
TP/WelshPowell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
TP/parcoursLargeur.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
TP/parcoursProfondeur.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB