Algorithmica

, Volume 16, Issue 4, pp 517–542

Efficient PRAM simulation on a distributed memory machine

  • R. M. Karp
  • M. Luby
  • F. Meyer auf der Heide
Article

DOI: 10.1007/BF01940878

Cite this article as:
Karp, R.M., Luby, M. & Meyer auf der Heide, F. Algorithmica (1996) 16: 517. doi:10.1007/BF01940878

Abstract

We present algorithms for the randomized simulation of a shared memory machine (PRAM) on a Distributed Memory Machine (DMM). In a PRAM, memory conflicts occur only through concurrent access to the same cell, whereas the memory of a DMM is divided into modules, one for each processor, and concurrent accesses to the same module create a conflict. Thedelay of a simulation is the time needed to simulate a parallel memory access of the PRAM. Any general simulation of anm processor PRAM on ann processor DMM will necessarily have delay at leastm/n. A randomized simulation is calledtime-processor optimal if the delay isO(m/n) with high probability. Using a novel simulation scheme based on hashing we obtain a time-processor optimal simulation with delayO(log log(n) log*(n)). The best previous simulations use a simpler scheme based on hashing and have much larger delay: Θ (log(n)/log log(n)) for the simulation of an n processor PRAM on ann processor DMM, and Θ(log(n)) in the case where the simulation is time-processor optimal.

Our simulations use several (two or three) hash functions to distribute the shared memory among the memory modules of the PRAM. The stochastic processes modeling the behavior of our algorithms and their analyses based on powerful classes of universal hash functions may be of independent interest.

Key words

PRAM Simulation Distributed memory machine Universal hashing Stochastic modeling Balls and bins 

Copyright information

© Springer-Verlag New York Inc 1996

Authors and Affiliations

  • R. M. Karp
    • 1
  • M. Luby
    • 2
    • 3
  • F. Meyer auf der Heide
    • 4
  1. 1.Computer Science DepartmentUniversity of WashingtonUSA
  2. 2.International Computer Science InstituteBerkeleyUSA
  3. 3.University of CaliforniaBerkeleyUSA
  4. 4.Heinz Nixdorf Institute and Computer Science DepartmentUniversity of PaderbornPaderbornGermany

Personalised recommendations