Skip to main content
Journal cover image
Computer Science Handbook, Second Edition

Parallel algorithms

Publication ,  Chapter
Blelloch, GE; Maggs, BM
January 1, 2004

The subject of this chapter is the design and analysis of parallel algorithms. Most of today’s computer algorithms are sequential, that is, they specify a sequence of steps in which each step consists of a single operation. As it has become more difficult to improve the performance of sequential computers, however, researchers have sought performance improvements in another place: parallelism. In contrast to a sequential algorithm, a parallel algorithm may perform multiple operations in a single step. For example, consider the problem of computing the sum of a sequence, A, of n numbers. The standard sequential algorithm computes the sum by making a single pass through the sequence, keeping a running sum of the numbers seen so far. It is not difficult, however, to devise an algorithm for computing the sum that performs many operations in parallel. For example, suppose that, in parallel, each element of A with an even index is paired and summed with the next element of A, which has an odd index, i.e., A[0] is paired with A[1], A[2] with A[3], and so on. The result is a new sequence of n/2 numbers whose sum is identical to the sum that we wish to compute. This pairing and summing step can be repeated, and after log2 n steps, only the final sum remains.

Duke Scholars

ISBN

9781584883609

Publication Date

January 1, 2004

Start / End Page

10-1-10-41
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Blelloch, G. E., & Maggs, B. M. (2004). Parallel algorithms. In Computer Science Handbook, Second Edition (pp. 10-1-10–41).
Blelloch, G. E., and B. M. Maggs. “Parallel algorithms.” In Computer Science Handbook, Second Edition, 10-1-10–41, 2004.
Blelloch GE, Maggs BM. Parallel algorithms. In: Computer Science Handbook, Second Edition. 2004. p. 10-1-10–41.
Blelloch, G. E., and B. M. Maggs. “Parallel algorithms.” Computer Science Handbook, Second Edition, 2004, pp. 10-1-10–41.
Blelloch GE, Maggs BM. Parallel algorithms. Computer Science Handbook, Second Edition. 2004. p. 10-1-10–41.
Journal cover image

ISBN

9781584883609

Publication Date

January 1, 2004

Start / End Page

10-1-10-41