29.04.2014 Views

Presburger Arithmetic and Its Use in Verification

Presburger Arithmetic and Its Use in Verification

Presburger Arithmetic and Its Use in Verification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

3.1. PARALLEL FUNCTIONAL ALGORITHMS<br />

Figure 3.1. Total computations of MergeSort algorithm [29].<br />

Figure 3.2. Critical path length of MergeSort algorithm [29].<br />

Because total runn<strong>in</strong>g time is bounded by sequential computation, we have T P ≥ S<br />

which leads to:<br />

W<br />

T P<br />

≤ W S<br />

The condition shows that speedup factor is limited by the ratio of Work <strong>and</strong> Span,<br />

namely parallelism factor. For a given Span, theparallelalgorithmshoulddoas<br />

much Work as possible. On the contrary, when Work is unchanged we should<br />

shorten the critical path length <strong>in</strong> the graph of computation. In general, the ratio<br />

W / S provides an easy <strong>and</strong> effective way to predict performance of parallel algorithms.<br />

In the case of above MergeSort algorithm, the maximal parallelism is<br />

O(log n). This parallel algorithm is <strong>in</strong>efficient because roughly speak<strong>in</strong>g, given<br />

1024 elements of computation we only get maximum 10× speedup regardless of<br />

the number of used processors. Usually, analysis of parallel algorithm is a good<br />

<strong>in</strong>dication of its performance <strong>in</strong> practice. Certa<strong>in</strong>ly, parallelism factor of Merge-<br />

21

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

Saved successfully!

Ooh no, something went wrong!