The Pram model and its variation

47
CHAPTER 6: ABSTRACT MODEL The PRAM Model and Its Variation

Transcript of The Pram model and its variation

Page 1: The Pram model and its variation

CHAPTER 6: ABSTRACT MODEL

The PRAM Model and Its Variation

Page 2: The Pram model and its variation

PRAM Overview

Page 3: The Pram model and its variation

PRAM Overview

Page 4: The Pram model and its variation

PRAM Operation

Page 5: The Pram model and its variation

PRAM Operation

Page 6: The Pram model and its variation

PRAM Subclasses

Page 7: The Pram model and its variation

Simulating Multiple Accesses on an EREW PRAM

Page 8: The Pram model and its variation

Simulating Concurrent Read on EREW PRAM with 8 Processors Using Algorithm

Broadcast_EREW

Page 9: The Pram model and its variation

Analysis of Parallel Algorithms

Page 10: The Pram model and its variation

The NC-class and P-completeness

Page 11: The Pram model and its variation

The NC-class and P-completeness

Page 12: The Pram model and its variation

Computing Sum and All Sums

Sum of an Array of Numbers on the EREW Model

Page 13: The Pram model and its variation

Example of Algorithm Sum-EREW when n = 8

Page 14: The Pram model and its variation

All Partial Sums of an Array

Page 15: The Pram model and its variation

Computing Partial Sums of an Array of 8 Elements

Page 16: The Pram model and its variation

Matrix MultiplicationUsing n^3 Processors

Page 17: The Pram model and its variation

Complexity Analysis

Page 18: The Pram model and its variation

Multiplying two 2 x 2 matrices using Algorithm MatMult_CREW

Page 19: The Pram model and its variation
Page 20: The Pram model and its variation

Reducing the Number of Processors

Page 21: The Pram model and its variation

Reducing the Number of Processors

Page 22: The Pram model and its variation

SortingThe algorithm consists of 2 steps

Page 23: The Pram model and its variation

Complexity Analysis

Page 24: The Pram model and its variation

Enumeration Sort of [6,1,3] on a CRCW PRAM

Page 25: The Pram model and its variation
Page 26: The Pram model and its variation

Message Passing ModelSynchronous Message Passing Model

Page 27: The Pram model and its variation
Page 28: The Pram model and its variation
Page 29: The Pram model and its variation
Page 30: The Pram model and its variation

Leader Election Problem

Page 31: The Pram model and its variation

Leader Election in Synchronous RingsSimple Leader Election Algorithm

Page 32: The Pram model and its variation
Page 33: The Pram model and its variation

Leader Election in a Synchronous Ring using Algorithm S_Elect_Leader_Simple

Page 34: The Pram model and its variation
Page 35: The Pram model and its variation
Page 36: The Pram model and its variation
Page 37: The Pram model and its variation
Page 38: The Pram model and its variation

Improved Leader Election Algorithm

Page 39: The Pram model and its variation
Page 40: The Pram model and its variation
Page 41: The Pram model and its variation
Page 42: The Pram model and its variation
Page 43: The Pram model and its variation
Page 44: The Pram model and its variation
Page 45: The Pram model and its variation
Page 46: The Pram model and its variation
Page 47: The Pram model and its variation