29.04.2013 Views

TESI DOCTORAL - La Salle

TESI DOCTORAL - La Salle

TESI DOCTORAL - La Salle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3. Hierarchical consensus architectures<br />

i # inner loop iterations<br />

1 K1<br />

2 K2<br />

... ...<br />

s 1<br />

Table 3.1: Number of inner loop iterations as a function of the outer’s loop index i.<br />

s<br />

Ki ≤<br />

i=1<br />

s<br />

i=1<br />

l<br />

= l ·<br />

bi s<br />

i=1<br />

<br />

1 1<br />

1 b − b = l ·<br />

bi s+1<br />

1 − 1<br />

<br />

bs − 1<br />

= l ·<br />

b<br />

b<br />

s <br />

(3.6)<br />

(b − 1)<br />

. Therefore, the<br />

which equals the partial sum of a geometric series whose common ratio is 1<br />

b<br />

upper bound of the time complexity STCRHCA can be rewritten as:<br />

<br />

bs − 1<br />

STCRHCA <br />

Ki, ∀i ∈ [2,s]). In this case of maximum parallelism, the parallel time complexity of a<br />

RHCA (PTCRHCA) ofs stages is formulated according to equation (3.9).<br />

PTCRHCA =<br />

s<br />

i=1<br />

max<br />

j∈[1,Ki] (O (bij w )) (3.9)<br />

That is, the parallel time complexity of a RHCA is equal to the sum of the time complexities<br />

of the most time-consuming consensus process of each RHCA stage. Notice that<br />

it is not difficult to find an upper bound to PTCRHCA, as finding the maximum of O (bij w )<br />

just requires taking into account that bij < 2b, ∀i, j. Thus:<br />

PTCRHCA <<br />

s<br />

i=1<br />

O ((2b) w )=s · O ((2b) w )=O (s · (2b) w ) (3.10)<br />

If the number of RHCA stages is approximated as s ≈ log b (l), and constants are<br />

dropped, equation (3.10) can be rewritten as a function of l and b:<br />

53

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

Saved successfully!

Ooh no, something went wrong!