1 / 18

Projet d’Algorithme et Complexité

Projet d’Algorithme et Complexité. Couplage optimal. 1 ère année de Master Informatique UFR Sciences et Techniques Dijon Année 2010-2011 Harbelot -Chabot. Plan. 1) Présentation du problème de couplage optimal. 2) Solution n°1: Méthode Hongroise.

rhonda
Télécharger la présentation

Projet d’Algorithme et Complexité

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Projet d’Algorithme et Complexité Couplage optimal 1ère année de Master Informatique UFR Sciences et Techniques Dijon Année 2010-2011 Harbelot-Chabot

  2. Plan 1) Présentation du problème de couplage optimal 2) Solution n°1: Méthode Hongroise 3) Solution n°2: Algorithme de Ford-Fulkerson 4) Analyse comparative 5) Choix techniques 6) Conclusion

  3. Couplage: Etant donné un graphe non orienté G=(S,A), un couplage est un sous-ensemble d’arête M appartenant à A tel que, pour tous les sommets v appartenant à S, au plus une arête de M est incidente à V • Associer des objets d'un problème deux par deux en minimisant le coût des associations entre les objets Problème de couplage optimal

  4. La méthode hongroise en 5 étapes: Solution n°1: Méthode Hongroise

  5. Exemple de couplage optimal à l’aide de la méthode Hongroise: • Matrice initiale: • Réduction des lignes: Solution n°1: Méthode Hongroise

  6. Réduction des colonnes: • Traçage des traits: • Solution optimale: • Coût de la solution: • 1 + 1 + 2 = 4 Solution n°1: Méthode Hongroise

  7. Conversion du problème de couplage optimal en problème de maximisation de flot • Utilisation de l’algorithme de Ford-Fulkerson Solution n°2: Algorithme de Ford-Fulkerson

  8. Solution n°2: Algorithme de Ford-Fulkerson

  9. Exemple de couplage optimal à l’aide de l’algorithme de Ford-Fulkerson: • Phase 1 – Etape 1: Solution n°2: Algorithme de Ford-Fulkerson

  10. Phase 1 – Etape 2: • Chemin de coût minimal: 1, 2, 5, 8 • Phase 1 – Etape 3: • Amélioration du flot = 1 Flot=1 Solution n°2: Algorithme de Ford-Fulkerson

  11. Phase 2 – Etape 1: Solution n°2: Algorithme de Ford-Fulkerson

  12. Phase 2 – Etape 2: • Chemin de coût minimal: 1, 3, 6, 8 • Phase 2 – Etape 3: • Amélioration du flot = 1 Flot=2 Solution n°2: Algorithme de Ford-Fulkerson

  13. Phase 3 – Etape 1: Solution n°2: Algorithme de Ford-Fulkerson

  14. Phase 3 – Etape 2: • Chemin de coût minimal: 1, 4, 7, 8 • Phase 3 – Etape 3: • Amélioration du flot = 1 Flot=3 Solution n°2: Algorithme de Ford-Fulkerson

  15. Complexité de la méthode Hongroise: O(n²*n) • Complexité de l’algorithme de Ford-Fulkerson = O(n²*M) Analyse comparative

  16. LANGAGE DE PROGRAMMATION • Langage concis = Programme court • Performances correctes • Utilisation de plusieurs paradigmes possibles PARADIGMES DE PROGRAMMATION • Paradigme Objet = Représentation du graphe et de ses composantes • Paradigme Impératif = Manipulation de matrices pour la méthode Hongroise • Paradigme Fonctionnel = Parcours de listes et recherche dans le graphe Analyse comparative

  17. Conclusion

  18. Avez-vous des questions ? Non Fulkerson…quoi? Oui C’est déjà le matin??

More Related