6
Asymptotic Analysis of Parallel Program By Sumita Das

Asymptotic analysis of parallel programs

Embed Size (px)

Citation preview

Page 1: Asymptotic analysis of parallel programs

Asymptotic Analysis of Parallel Programs

By Sumita Das

Page 2: Asymptotic analysis of parallel programs

Asymptotic Analysis of Parallel Programs

Consider the problem of sorting a list of n numbers.

Given: The fastest serial programs for this problem run in time Θ(n log n).

The objective is to determine which of these four algorithms is the best.

Created by Sumita Das

Page 3: Asymptotic analysis of parallel programs

Comparison of four different algorithms for sorting a given list of numbers. The table shows number of processing elements(p), parallel runtime(Tp), speedup(S), efficiency(E) and the pTP product.

Created by Sumita Das

Page 4: Asymptotic analysis of parallel programs

Asymptotic Analysis

If the metric is speed,Best Algorithm with lowest tpAlgorithm A1 is the best, followed by A3, A4, and A2

If the metric is efficiency, A2 and A4 are the best, followed by A3 and A1.

Created by Sumita Das

Page 5: Asymptotic analysis of parallel programs

If the metric is cost,Algorithms A2 and A4 are cost optimal, A1 and A3 are

not.

It is important to identify the objectives of analysis and to use appropriate metrics.

Created by Sumita Das

Page 6: Asymptotic analysis of parallel programs

References

• Ananth Grama, Anshul Gupta, George Karypis, Vipin Kumar, “Introduction to Parallel Computing: Chapter 5: Analytical Modeling of Parallel Programs”, 2003

• www.parallelcomp.uw.hu/ch05lev1sec6.html

Created by Sumita Das