Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-ndmmz Total loading time: 0 Render date: 2024-06-06T10:59:00.681Z Has data issue: false hasContentIssue false

3 - Elementary Parallel Algorithms

Published online by Cambridge University Press:  06 January 2017

Zbigniew J. Czech
Affiliation:
Silesia University of Technology, Gliwice, Poland
Get access

Summary

EVALUATION OF PARALLEL ALGORITHMS

In order to solve computational problems by appropriate algorithms, we need to carry out their analysis. The goal of analysis is to demonstrate correctness of the algorithms (see Section 1.3) and to examine their properties that are crucial in terms of suitability for solving a problem at hand, as well as to compare performance of the algorithms and select the best one. Another aspect of analysis may be to determine whether the best algorithm we have is optimal, or in other words, no better algorithm exists.

A sequential algorithm is a sequence of precisely defined steps solving a problem, that is computing the output data based on the input data. The precision in describing the steps is necessary to be able to transform the algorithm into a computer program that is the implementation of the algorithm. The computation of a sequential algorithm is performed by one processor.

If we want to solve a problem by using multiple processors, then the problem should be decomposed into subproblems that can be solved in parallel. Each of the subproblems is solved by a separate algorithm, which is a component of a parallel algorithm. So the parallel algorithm consists of a certain number of separate algorithms that can be executed simultaneously. The parallel algorithm also specifies how its components use intermediate results of computation and how they synchronize their work.

The basic criteria for evaluating sequential algorithms include the running time and memory requirement. The running time—or more precisely, the compute time of a processor—and the occupied memory are the amounts of resources necessary to execute an algorithm. Other evaluation criteria of sequential algorithms include universality, understood as possibility of applying an algorithm to solve a class of problems, simplicity, ease of implementation, and modification.

Evaluating a parallel algorithm is more difficult than a sequential one, because an additional factor (except the size of input data) is to be considered, which is the number of processors of a parallel computer where the algorithm is implemented. A number of evaluation criteria is also greater.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2017

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×