IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Algorithmes et structures de données Discussion :

Algorithme de recherche de tous les pairs-chemins dans un graphe


Sujet :

Algorithmes et structures de données

  1. #1
    Membre régulier
    Inscrit en
    Décembre 2008
    Messages
    127
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 127
    Points : 70
    Points
    70
    Par défaut Algorithme de recherche de tous les pairs-chemins dans un graphe
    Bonjour à tous,

    Je voudrais savoir s'il y a quelqu'un qui peut m'expliquer l'algorithme suivant :


    Given any spanning tree T of a graph G, the edges that are not in T are called the co-tree edges with respect to T.
    The size of the set V is denoted by n. The size of the set E is denoted by e.

    Step I: Finding a spanning tree, T, of the weighted graph, G

    Initially, all nodes are inactive. The first major part of the algorithm is to find a spanning tree, T, of the underlying unweighted graph. This can be accomplished by any one of the spanning tree finding algorithms, and we use the algorithm given by Awerbuch [Awerbuch, 1987], which takes time O(n).
    The spanning tree algorithm ensures every node can identify the links incident on it as either an edge in the tree T or a co-tree edge with respect to T.


    Step II: Each node determines the identities of its neighbors in the graph G:

    Each node must determine the identities of its neighbors in graph G. This can be accomplished by each node sending its identity along each link incident to it. The time complexity of this step is O(1). Since each link carries exactly two messages, one from each of the incident nodes to the link, the number of messages is 2e


    Step III: Determination of the All-Pairs Shortest-Distance matrix D:

    This step of the algorithm deals with the transmission of distance information in G along the tree edges of T.
    Initially, each vertex constructs a local distance matrix that has row and column labels corresponding to the vertex and its neighbors.
    Starting at each leaf node, partial distance information is transmitted along the tree edges of T. Whenever the partial distance matrix of a neighbor is received at a non-leaf node, new columns and rows are added to the partial distance matrix of that node and existing distance data is updated. When a non-leaf node receives partial distance matrix information from all but one of its neighbors, it becomes a transmitting node and sends its partial distance matrix to the neighbor from which it did not receive a partial distance matrix message.
    At the end of this step, exactly one or two nodes, called the saturated node(s) of the tree, would contain Shortest-
    Distance matrix, D, of the entire graph G. We will show that the time complexity of this step is O(n).

    Step IV: Communicating the All-Pairs Shortest-Distance matrix D to every node:

    This communication originates at the one or two nodes that are described in Step 3, and messages travel using only tree edges of T. This step has complexities of O(n) time and O(n) number of messages



    Merci.

  2. #2
    Rédacteur
    Avatar de pseudocode
    Homme Profil pro
    Architecte système
    Inscrit en
    Décembre 2006
    Messages
    10 062
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Architecte système
    Secteur : Industrie

    Informations forums :
    Inscription : Décembre 2006
    Messages : 10 062
    Points : 16 081
    Points
    16 081
    Par défaut
    Citation Envoyé par bilzzbenzbilz Voir le message
    Bonjour à tous,

    Je voudrais savoir s'il y a quelqu'un qui peut m'expliquer l'algorithme suivant :
    Etant donné que tu viens de poster l'explication, que veux tu savoir de plus ?

    Pour info :
    ALGORITHME (n.m.): Méthode complexe de résolution d'un problème simple.

  3. #3
    Membre régulier
    Inscrit en
    Décembre 2008
    Messages
    127
    Détails du profil
    Informations forums :
    Inscription : Décembre 2008
    Messages : 127
    Points : 70
    Points
    70
    Par défaut
    Bonsoir Pseudocode,

    Oui, tout à fait, je l'ai posté mais je n'arrive pas à le comprendre.

  4. #4
    Rédacteur
    Avatar de pseudocode
    Homme Profil pro
    Architecte système
    Inscrit en
    Décembre 2006
    Messages
    10 062
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations professionnelles :
    Activité : Architecte système
    Secteur : Industrie

    Informations forums :
    Inscription : Décembre 2006
    Messages : 10 062
    Points : 16 081
    Points
    16 081
    Par défaut
    Citation Envoyé par bilzzbenzbilz Voir le message
    Bonsoir Pseudocode,

    Oui, tout à fait, je l'ai posté mais je n'arrive pas à le comprendre.
    Et bien, je ne connais pas cet algorithme en particulier. Mais si j'en juge par la description ca consiste a propager de nœud en nœud (et mettre à jour) des tables de distance. La propagation se fait en suivant un arbre couvrant.

    Ca ressemble beaucoup au protocole réseau STP.
    ALGORITHME (n.m.): Méthode complexe de résolution d'un problème simple.

Discussions similaires

  1. Recherche de tous les chemins
    Par ammoula55 dans le forum Algorithmes et structures de données
    Réponses: 5
    Dernier message: 01/07/2015, 16h28
  2. Algorithme de calcul de tous les chemins
    Par dalilnet dans le forum Algorithmes et structures de données
    Réponses: 2
    Dernier message: 15/07/2009, 19h08
  3. [PHP] recherche de tous les parents (ancestor)
    Par jeff_! dans le forum XSL/XSLT/XPATH
    Réponses: 4
    Dernier message: 04/04/2006, 11h37
  4. une requete effectuant une recherche sur tous les champs
    Par raynor911 dans le forum Langage SQL
    Réponses: 3
    Dernier message: 13/02/2006, 15h06
  5. Recherche sur tous les fichiers d'un projet
    Par Kaorichan dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 28/04/2005, 11h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo