06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

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.

“mcs” — 2017/3/3 — 11:21 — page 429 — #437<br />

11.3. Network Designs 429<br />

in 0<br />

in 1<br />

in 2<br />

in 3<br />

out 3<br />

out 0<br />

out 1<br />

out 2<br />

Figure 11.3 Two-dimensional Array with N D 4.<br />

By extending the notion of congestion to networks, we can also distinguish between<br />

“good” and “bad” networks with respect to bottleneck problems. For each<br />

routing problem <strong>for</strong> the network, we assume a routing is chosen that optimizes<br />

congestion, that is, that has the minimum congestion among all routings that solve<br />

. Then the largest congestion that will ever be suffered by a switch will be the<br />

maximum congestion among these optimal routings. This “maximin” congestion<br />

is called the congestion of the network.<br />

So <strong>for</strong> the complete binary tree, the worst permutation would be .i/ WWD .N<br />

1/ i. Then in every possible solution <strong>for</strong> , every packet would have to follow<br />

a path passing through the root switch. Thus, the max congestion of the complete<br />

binary tree is N —which is horrible!<br />

Let’s tally the results of our analysis so far:<br />

network diameter switch size # switches congestion<br />

complete binary tree 2 log N C 2 3 3 2N 1 N<br />

11.3 Network Designs<br />

11.3.1 2-D Array<br />

Communication networks can also be designed as2-dimensional arrays or grids. A<br />

2-D array with four inputs and outputs is shown in Figure 11.3.<br />

The diameter in this example is 8, which is the number of edges between input 0

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

Saved successfully!

Ooh no, something went wrong!