CS 342 HW#1

Kevin W Park



Results


Brute Force: 5.538036e+001 seconds*
Pyramid: 3.308163e-001 seconds**


Note: timer starts just before image is read. timer ends after color image is produced
* Sweeps over 30X30
** Sweeps over 5X5


Brute Force: 4.857150e+001 seconds
Pyramid: 3.671182e-001 seconds



Brute Force: 4.665712e+001 seconds
Pyramid: 3.416519e-001 seconds



Brute Force: 4.587811e+001 seconds
Pyramid: 3.337762e-001 seconds



Brute Force: 4.579663e+001 seconds
Pyramid: 3.115205e-001 seconds



Brute Force: 4.542924e+001 seconds
Pyramid: 3.594407e-001 seconds



Brute Force: 4.575942e+001 seconds
Pyramid: 3.096915e-001 seconds



Brute Force: 4.524474e+001 seconds
Pyramid: 3.122067e-001 seconds



Brute Force: 4.666019e+001 seconds
Pyramid: 3.122554e-001 seconds



Brute Force: 4.584890e+001 seconds
Pyramid: 3.242088e-001 seconds



Brute Force: 4.612047e+001 seconds
Pyramid: 3.294389e-001 seconds



Brute Force: 2.545766e+002 seconds
Pyramid: 6.112055e+000 seconds



Brute Force: 2.562182e+002 seconds
Pyramid: 6.493632e+000 seconds



Brute Force: 2.618627e+002 seconds
Pyramid: 5.859473e+000 seconds



Brute Force: 2.671248e+002 seconds
Pyramid: 7.048757e+000 seconds



Brute Force: 2.550034e+002 seconds
Pyramid: 6.560990e+000 seconds



Brute Force: 2.531418e+002 seconds
Pyramid: 6.490814e+000 seconds




Notes

-The code worked reasonably well for most of the images

-The time needed to generate the image decreased exponentially, as expected.

-Some of the larger images weren't exactly aligned, which created a blurry image. The images became sharper once the search area was increased.

Code: Use 'Test' to run


October 5, 2010