• Aucun résultat trouvé

TD4 ALGORES Spanning-Tree and MST

N/A
N/A
Protected

Academic year: 2022

Partager "TD4 ALGORES Spanning-Tree and MST"

Copied!
2
0
0

Texte intégral

(1)

Exercise 1: Spanning Tree

Find all possible spanning trees for the two graphs in Figure 1 subject to the constraint that node 1 must be the root. Determine the number of nodes N and arcs A in each of these spanning trees. Can you see a relation between N and A?

Exercise 2 : Minimum Spanning Tree

Consider the network in Figure 2. Find all possible minimum spanning trees for the graph subject to the constraint that node 1 is the root.

Figure 1

Figure 2

TD4 ALGORES

Spanning-Tree and MST

(2)

Exercise 3 : Minimum/Maximum Spanning Tree

Consider the graph in Figure 2 where the weights on the edges represent the fiability of the corresponding communication link (where 0 is the minimum and 1 is the maximum fiability of the link).

1. Which kind of spanning tree is adapted in order to implement a best effort fiable routing ? 2. How many such spanning trees can be computed on top of the network represented in Figure 2.

Exercise 4 : Minimum Spanning Tree

Consider a network such that to each edge is associted a weight and assume that all weights are distinct. Consider the following «red rule» algorithm : let M be the set of all the edges of the network ordered from largest to smallest weight.

For each edge in M delete it from M if it is part of a cycle in M. Does this algorithm correctly implement a MST ? Motivate your answer.

Exercise 5 : Distributed Prim and GHS

Recall the algorithms Distributed Prim and GHS seen in class. Compute their complexity. Execute the Distributed Prim and GHS algorithms for the network presented in Figure 3.

Exercise 6 : Kruskal and GHS

Clustering groupes nodes in a network such that nodes in the same cluster verify some metric.

1 Kruskal or GHS algorithms can be used in order to obtain a clustering ? Motivate your answer ! 2. If yes, how many clusters you can obtain ?

3. What can you say about the distances of the crossing edges between these components ?

Figure 3

TD4 ALGORES

Spanning-Tree and MST

Références

Documents relatifs

• Does agreement reduce need for

Managers set themselves a goal of maximum growth of the firm in the medium and long term (profit being only the means of accumulation) while shareholders seek the highest

We have shared large cross-domain knowledge bases [4], enriched them with linguistic and distributional information [7, 5, 2] and created contin- uous evolution feedback loops

In the past two decades several in- novative RCTs have repeatedly shown that interventions on modifiable risk factors can reduce the incidence of diabetes in high-risk groups..

Abstract—This article presents a detailed description of an algorithm for the automatic detection of the mid-sagittal plane in three-dimensional (3–D) brain images.. The algorithm

Therefore, for the two choices that correspond to swapping one of the pairs i ↔ j and k ↔ l, the permutation is odd, and for the choice corresponding to swapping both, the

2. b) Derive the least squares solution of the unknown parameters and their variance-covariance matrix.. Given the angle measurements at a station along with their standard

In British Columbia, clinical guide- lines for treating major depressive disorders are now being developed for primary care with a working group that includes