The objective: How does the computer compute and does the computing time depends upon the speed of the computer itself or the method used to solve a given problem.
I used the following things in this project: (1) Old and New Computers, (2) Stop Watch, (3) Logic Gate Simulator, (4) Scratch Programming Environment. Method: To test my hypothesis I used a problem of adding N integer numbers starting from 1. There can be several methods we can use to program to solve this problem.
I used following three methods: M(1) Adding each number in a loop of N iterations. M(2) Adding N+1 in a loop N/2 iterations. M(3) Adding N integers using a pre-computed mathematical formula.
All three methods were implemented in Scratch programs and run for N = 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000. The time it took to complete the computation has been noted and plotted on a line graph. To compare the performance of the three methods on different computers following computers are used to test the speed of each method.
(1) Computer with Intel Core i7, 8 Core Processors
(2) Computer with Core 2 Quad Core, 4 Processors
(3) Computer with Core 2 Duo, 2 Processors
(4) Laptop with Intel Centrino Processor.
Since the Scratch programs did not produce some sensible data to compare the speed of the different computers. I sought help from my father and implemented the same programs using Python environment on the following:
(1) Desktop Computer with Intel Core i7
(2) iPhone 3Gs
(3) Vintage Laptop with Intel Pentium II
This Mathematical project explores how basic logic gates are used to build computers and compare the mathematical methods to speedup computing.
Science Fair Project done By Ayesha M. Rashed