Top Banner
Tutorial 10 – PRAM Arnamoy Bhattacharyya SPCL *Some slides are taken from http://cseweb.ucsd.edu/groups/csag/html/teaching/cse160s05/lectures/Lecture12.pdf
15

Tutorial 10 – PRAM

Feb 28, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tutorial 10 – PRAM

Tutorial 10 – PRAM

Arnamoy Bhattacharyya

SPCL

*Some slides are taken from http://cseweb.ucsd.edu/groups/csag/html/teaching/cse160s05/lectures/Lecture12.pdf

Page 2: Tutorial 10 – PRAM
Page 3: Tutorial 10 – PRAM
Page 4: Tutorial 10 – PRAM
Page 5: Tutorial 10 – PRAM
Page 6: Tutorial 10 – PRAM
Page 7: Tutorial 10 – PRAM
Page 8: Tutorial 10 – PRAM
Page 9: Tutorial 10 – PRAM
Page 10: Tutorial 10 – PRAM
Page 11: Tutorial 10 – PRAM

Row 1 Row 2 Row 3 Row 40

2

4

6

8

10

12

Column 1

Column 2

Column 3

Page 12: Tutorial 10 – PRAM

Example 3 Compute OR

● Initially– table A contains values 0 and 1

– output contains value 0

● The program computes the “Boolean OR” of

A[1], A[2], A[3], A[4], A[5]

Page 13: Tutorial 10 – PRAM

Example 4 Pascal's Triangle

● Assume initially table A contains [0,0,0,0,0,1] and we have the parallel program

Page 14: Tutorial 10 – PRAM

PRAM CREW

Example 4 Pascal's Triangle

Page 15: Tutorial 10 – PRAM