• No results found

Midterm examination Parallel Algorithms (WISM 459).

N/A
N/A
Protected

Academic year: 2021

Share "Midterm examination Parallel Algorithms (WISM 459)."

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Midterm examination Parallel Algorithms (WISM 459).

Teacher: Rob H. Bisseling, Utrecht University September 26, 2012

Each of the four questions is worth 10 points. Total time 60 minutes.

1. Explain the four parameters of the BSP architecture.

2. Give two different examples of a 10-relation with a total communica- tion volume (i.e., number of data words communicated) of 40 for 4 processors.

3. Let x be a given vector of length n, which is distributed over p proces- sors, with n mod p = 0. You may choose a suitable distribution. Give an efficient BSP algorithm for processor P (s) for the computation of the product

α = xn0 · xn−11 · · · x1n−1.

(Meaning every component xi is raised to the power n − i, for i = 0, . . . , n − 1.) On output, every processor has to know α. Analyse the BSP cost.

4. In a molecular dynamics simulation, we have n particles (atoms) dis- tributed by the block distribution over p processors, with n mod p = 0.

The particles are numbered 0, . . . , n−1. For each pair of particles (i, j), the force Fij that particle i exerts on j must be computed, based on the location of the two particles. Assume that computing one value Fij

costs 10 flops.

In the so-called ring algorithm, each processor keeps one block of n/p particles local, and moves a copy of one block around the ring. In superstep (0), all local interactions are computed. In superstep (1), all copies are moved to the next processor in the ring. In superstep (2), interactions between the local block and the currenly held copy

1

(2)

of a block are computed. And so on. Formulate the algorithm in our notation and analyse its BSP cost.

By Newton’s third law of motion, we do not need to compute Fji =

−Fij. How much can you save by exploiting the symmetry?

2

Referenties

GERELATEERDE DOCUMENTEN

The Analogical Reasoning Learning Test (ARLT) was administered to 26 young children, receiving special education services, followed by a newly developed reversal

We conclude that dynamic testing, including a graduated prompt training and a construction task provide additional quantitative and qualitative information about potential

Children were trained to use systematic measuring to solve seriation problems on the Seria-think instrument (Tzuriel, 1998). The training was adaptive and prompts

Although we did observe teacher-child interactions for all three conditions, specific recommendations based on dynamic assessment regarding instruction,

The report finished with recommendations regarding needed practice of specific encountered math and, if present, memory difficulties, adaptations in the

was considered as useful to very useful for writing educational plans by 70% of the teachers. The responses particularly showed the usefulness of information

Reports and recommendations, formulated based on these outcomes as described in chapters 5 and 6, were valued by teachers in general as useful and meaningful for their

(2008) Group Assessment of Learning Potential of Pupils in Mainstream Primary Education and Special Education Classes. Journal of Cognitive Education and Psychology,