10.07.2015 Views

Les algorithmes voraces - UQAC

Les algorithmes voraces - UQAC

Les algorithmes voraces - UQAC

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

8INF430 Algorithmes <strong>voraces</strong> 13✬✩Temps d’exécutionD tableau monceauL matrice listes d’adjacenceT (a, n) O(n 2 ) O((n + a) lg n)graphe dense O(n 2 ) O(n 2 lg n)graphe claisemé O(n 2 ) O(n lg n)Remarque: Si le graphe est réprésenté sous la forme de listesd’adjacence et que D est un monceau alors le temps total passé àexécuter la dernière boucle pour sera dans Θ(a log n) où a est lenombre d’arcs.✫✪

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

Saved successfully!

Ooh no, something went wrong!