Parallel Algorithms

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/31

flashcard set

Earn XP

Description and Tags

Exam 1

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

32 Terms

1
New cards

What does Moore’s law say

Processing speed should double every 18 months

2
New cards

Is Moores law true

No, it failed around the 2000’s mark

3
New cards

What are the 5 reasons computing used to get faster

Smaller, better algorithms, wider busses, fewer bridges, more efficient manufacturing

4
New cards

What changed about the algorithms that allowed them to improe

Refined algorithmic ideas and leveraging of existing hardware

5
New cards

What were some of the algorithmic refinements done to improve them

Approximation, randomization, ammortization

6
New cards

How do we improve computing time now

More processors

7
New cards

What is blocking in MPI

Assining each process in a contigous chunk of data, reducing communication but risking load imbalances

8
New cards

What is striping in MPI

Assigning data in a round robin pattern across the processes to improve load balance at the cost of higher communication

9
New cards

What does MPI stand for

Message passing interface

10
New cards

What are the benefits of using striping over blocking

It is easier to handle different sized tasks easily in code and it might be more fair for the processors to compute

11
New cards

What are the cons of using striping over blocking

It is slower due to higher communication and the loss of data locality

12
New cards

What is the shared memory model

this is an approach where multiple processes can directly access an common region of memory on the same node. This model allows data to be exchanged through shared variables instead of message passing

13
New cards

What are the pros of the shared memory model

There is no data transfer

14
New cards

What are the cons of the shared memory model

It does not work well for complex algorithms, expensive, locality issues and instates a locking mechanism for the data

15
New cards

What is the distributed memory model

A parallel computing approach where each process has its own private memory space and data is only transferred through explicit message passing

16
New cards

What are the pros of a distributed memory model

You are able to use computers everywhere

17
New cards

What are the cons of the distributed memory model

Data transfer overload

18
New cards

What does PRAM model stand for

Parallel random access memory

19
New cards

What type of memory does the PRAM model use

Shared memory system

20
New cards

What are the four categories of PRAM

EREW, CREW, ERCW, CRCW

21
New cards

What are the four ways to deal with CW

Arbitrary, Priority, Common, and Majority

22
New cards

What happens in an Arbitrary CW

A random process wins the right to write

23
New cards

What happens in a Priority CW

A programmer assigns a priority list in advance for which processors should get the right to write first

24
New cards

What happens in a Common CW

Only allows a writes when all processors agree on what to write

25
New cards

What happens in a Majority CW

Only let a processor write if that is the majority value to write

26
New cards

What kind of model do we use when writing out code using MPI

Distributed Memory Model

27
New cards

What are the drawbacks of the PRAM model

This model does not help illuminate the dependence of the algorithm on the processeors. In essence, it does not show how much faster or slower a program would get given a different number of processors. Also writing all that code is tedous

28
New cards

What is the point of the Work-Depth mdoel

To count how many concurrent rounds are needed to solve the problem, rather than focusing on the time in each round

29
New cards

What is the relationship of T(n) to W(n)

T(n) >= (W(n))/p

30
New cards

What does W(n) represent

The optimal required work

31
New cards

What is a reduction

Translates a problem into another problem

32
New cards