29.04.2013 Views

TESI DOCTORAL - La Salle

TESI DOCTORAL - La Salle

TESI DOCTORAL - La Salle

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.

Chapter 3. Hierarchical consensus architectures<br />

the mini-ensembles size, notice that the size of the third mini-ensemble of the first RHCA<br />

stage is increased (b13 =3) so that all the l = 7 components of the cluster ensemble are<br />

involved in one of the K1 = 3 consensus processes of the first RHCA stage. This also<br />

happens in the second stage, where b21 =3andK2 =1,which,asjustmentioned,yieldsa<br />

single consensus at its output.<br />

The interested reader will find a more detailed description of these and other RHCA<br />

configuration examples in appendix C.1.<br />

3.2.2 Computational complexity<br />

In the following paragraphs, we present a study of the asymptotic computational complexity<br />

of RHCA, considering both its fully serial and parallel implementations, which, as<br />

aforementioned, constitute the upper and lower bounds of the RHCA execution time.<br />

Serial RHCA<br />

For starters, the time complexity of the fully serialized implementation is considered. This<br />

means that the intermediate consensus tasks of each RHCA stage must be sequentially executed<br />

on a single computation unit. Recall that the time complexity of consensus functions<br />

typically grows linearly or quadratically with the cluster ensemble size, that is, it can be<br />

expressed as O (l w ), where w ∈{1, 2}. Therefore, the serial time complexity of a RHCA<br />

(STCRHCA) withs stages boils down to systematically adding the time complexities of all<br />

the consensus processes executed across the whole RHCA, as defined in equation (3.4).<br />

STCRHCA =<br />

s Ki <br />

O (bij w ) (3.4)<br />

i=1 j=1<br />

where Ki refers to the number of consensus processes executed in the ith RHCA stage, bij is<br />

the mini-ensemble size corresponding to the jth consensus process executed at the ith stage<br />

of the hierarchy —the exact value of these parameters is computed according to equations<br />

(3.2) and (3.3), respectively—, and O (bij w ) reflects the complexity of each intermediate<br />

consensus process.<br />

Equation (3.4) can be reformulated so as to obtain a compact expression of an upper<br />

bound of STCRHCA as a function of the user defined mini-ensembles size b. This requires<br />

recalling that, in the current RHCA implementation, the effective mini-ensembles size is<br />

bounded, that is, bij < 2b, ∀i ∈ [1,s]and∀j ∈ [1,Ki]. Therefore, we can write:<br />

STCRHCA <<br />

s Ki <br />

O ((2b) w ) (3.5)<br />

i=1 j=1<br />

Notice that, from an algorithmic viewpoint, equation (3.5) can be regarded as two nested<br />

loops where the number of iterations of the inner loop (Ki) depends on the value of the<br />

outer loop’s index (i). The number of iterations of the inner loop as a function of the outer<br />

loop’s index is presented in table 3.1.<br />

Thus, it can be observed that the total number of times the mini-ensemble consensus of<br />

51

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

Saved successfully!

Ooh no, something went wrong!