T1: PRAM Model: All Basics
Previously, I know PRAM model. But I cannot like it. It is an old model and it is also hard to read the old e-books. Recently, I found the beauty of this model. Then, I found I am into this model. Humanity is mysterious.
This post will show the basics of PRAM model.
Basic three types of PRAM
- EREW: Exclusive Read Exclusive Write PRAM: no two processors can read/write the same shared memory cell.
- CREW: Concurrent Read Exclusive Write PRAM: simultaneous read is allowed, but only one processor can write.
-
CRCW: All processor can simultaneously read and write.
+-------------------------+ | Input Data | +-------------------------+ | v +-------------------------+ | Shared Memory | +-------------------------+ /|\ /|\ | | +-------------+ +-------------+ | Processor 1 | | Processor P | +-------------+ +-------------+
Lower bounds
Let be a Boolean function with inputs. We shall use the notation to denote the input and to denote the input whose -th component is complemented. An input is critical if and only if for .
CREW RRAM
. Let have a critical input. The time is required to compute any on CREW PRAM with any number of processors, which includes the following functions:
- Sorting a sequence
- Computing the sum
- Computing the maximum
EREW
. Given a monotonic binary sequence of length , the problem of finding the number of zeros requires time in CREW PRAM model with processors.
Reference
[1]. JáJá, J., 1992. Parallel algorithms.