day # |
date |
program |
description |
practices |
1 |
W 10 |
- |
- |
- |
2 |
R 11 |
hello.c |
Prints message
to standout output |
C |
|
|
count.c |
Prints list of
numbers |
C |
3 |
F 12 |
prime.c |
Count primes |
C |
|
|
phone.c |
Convert 7-letter
word to phone number |
C |
|
|
struct.c |
Calculate
average grades |
struct |
|
|
reverse_dict.c |
Create reverse
dictionary |
strings, sorting |
4 |
M 15 |
longest_word.c |
Find longest
word in a file |
file I/O, strtok |
|
|
generate.c |
Generate random
numbers |
rand, srand |
|
|
count.c (v2) |
Count how many
numbers equal a target |
scanf, I/O
redirection |
5 |
T 16 |
mpi_hello.c |
[example]
send/receive info between processes |
MPI send &
receive |
|
|
integral.c |
Evaluate
integral |
MPI send &
receive |
6 |
W 17 |
reduce.c |
Evaluate
integral |
reduce, to
replace send/receive |
|
|
prime.c (v2) |
How many primes
exist in some range |
reduce |
7 |
R 18 |
avg.c |
[example] Find
average of array |
scatter, gather |
|
|
gather.c |
[handout]
Generate random numbers |
gather |
|
|
count.c (v3) |
How many numbers
in a file equal a target |
broadcast,
barrier, scatter and reduce |
8 |
F 19 |
histogram.c |
Yahtzee analysis |
barrier,
broadcast, reduce |
|
|
count_words.c |
[homework 1]
Word statistics |
(review) |
9 |
M 22 |
centroid.c |
Find weighted
centroid of several points |
derived data
types, struct, gather |
10 |
T 23 |
distance.c |
Variation of
centroid problem |
(review) |
|
|
game.c |
[homework 2]
Letters game statistics |
(review) |
11 |
W 24 |
distance.c (v2) |
Calculate your
program's execution time |
Wtime |
|
|
matrix.c |
Matrix addition
and multiplication |
(review) |
12 |
R 25 |
sort.c |
Sorting in
parallel |
sorting
algorithm |
13 |
F 26 |
- |
[finish your
homework 2] |
|
14 |
T 30 |
h3.c |
[work on
homework 3] |
|
15 |
W 31 |
- |
[finish your
homework 3] |
|
|
|
|
|
|