Notice: You can do this homework either individually or in a group of up to three people. In either case, you should not ask or give help to anyone (except members of your own group).
Note that if you do the homework individually, you don't need to do the last part of the assignment.
Important: You must compile the code with optimizations turned on. For gcc and most Unix C compilers, use the "-O2" optimization level. Note that this uses a capital letter "O". (A small "o" would say the object code should be named "2".) If you use SUN's native compiler (which might be named "cc"), use the "-fast" compiler option (don't use "-xO2").
By the way, I'm totally unfamiliar with Microsoft's Visual C/C++, and don't recommend using it. If you do, you'll have to use the Project Settings to set optimization for speed, and somehow figure out how to get gettimeofday or some other microsecond-resolution timer to work. Good luck!
Turn in the following: