Discussion 1
- Let n be a large number (much larger than 8). One person can add two
numbers in Tcomp time and pass a number to a neighbor in Tmess
time, and can write and read a number on a blackboard, each in Tshare
time. Assume that Tcomp is much smaller than Tshare, and Tshare is
much smaller than Tmess. Assume that each person can do only one thing
at the time.
-
Eight people are sitting in a ring. There is no blackboard. How
long would it take to add n numbers? What do you assume about
the initial data distribution?
-
What if the eight people form a 2 by 4 grid where they can pass
numbers to their north, south, east, and west neighbors? There
is no wrap around and there is still is no blackboard.
-
Is there a better configuration than a ring or grid for 8
people? Eg, if all people are directly connected to all people,
but can communicate with only one other person at a time
(Assume that there is a phone to dial into other person)?
-
How does the computation change if the eight people have a
blackboard that they all can write on and read from? What is now
needed to ensure validity of the computation?
-
If the people are processors, passing a number is communicating
over the ethernet, and reading/writing the blackboard is memory access,
what are current day numbers for Tcomp, Tmess, and Tshare?
-
Respond to someone else's solution, and generate a consensus solution
to be posted on the main discussion board.