30.07.2015 Views

Projet de programmation : Algorithme de Dijkstra

Projet de programmation : Algorithme de Dijkstra

Projet de programmation : Algorithme de Dijkstra

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Le résultat consistera à ajouter à ce fichier CSV les liens qui font parties <strong>de</strong> l’arbre <strong>de</strong> recouvrementcalculé précé<strong>de</strong>mment. Pour l’exemple, cela donne :SRC;DST;COUT;MEMBRE1;2;5;O2;1;5;O1;4;3;O4;1;3;O2;3;2;O3;2;2;O3;4;8;N4;3;8;N2) Le tableauLe fichier CSV sera chargé dans un tableau structuré en mémoire centrale. Ce tableau serasurdimensionné (nous traiterons, au plus, 200 relations).Une fois l’arbre construit, il faudra enrichir le tableau avec les données indiquant si le lien est membre<strong>de</strong> l’arbre ou non.3) la matriceLa matrice sera matérialisée par un tableau d’entiers à 2 dimensions n x n. Le nombre maximum <strong>de</strong>routeurs que nous traiterons sera 20.4) Etapes importantesCe projet peut être découpé en plusieurs étapes beaucoup plus gérables :1. Gestion <strong>de</strong>s fichiers : réalisation <strong>de</strong>s étapes fichier->tableau et tableau->fichier2. Gestion <strong>de</strong> la matrice : réalisation <strong>de</strong>s étapes tableau->matrice et matrice->tableau3. Calcul <strong>de</strong> l’arbre sur base <strong>de</strong> la matriceIl ne faut pas oublier <strong>de</strong> gérer les quelques exceptions qui peuvent survenir :• Fichier <strong>de</strong> données inexistant• Trop <strong>de</strong> relations• Trop <strong>de</strong> routeursL. Swinnen 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!