Computer Programming I :: Projects :: Random Numbers in Parallel
Problem
Suppose you were creating a program that generated 10,000 random numbers between 1 and 100 and stored a count of how many times each number occurs. For example, maybe the final count would look like this:
1 - 50 times
2 - 33 times
3 - 20 times
.
.
.
100 - 77 times
Finally, a list of all of the numbers and their count is output for the user like what is shown above. List the steps of the algorithm in English, and mark which steps can be done in parallel and explain why. It is possible that a single step can be run in parallel with itself. You do not actually have to create this program, simply write the algorithm and note which steps can be completed together.