document.write( "Question 985965: One algorithm has a running time of p(n)=n^3+3n+1 and algorithm two has running time of q(n)=15^2+5n+4 (measured in nanoseconds, or 10^-9 seconds).\r
\n" ); document.write( "\n" ); document.write( "A. compute the running time for both algorithms for images of size 10 by 10 pixels and 100 by 100 pixels.\r
\n" ); document.write( "\n" ); document.write( "I would assume that you would substitute 10^-9 into both equations and from there I am unsure.
\n" ); document.write( "

Algebra.Com's Answer #606992 by solver91311(24713)\"\" \"About 
You can put this solution on YOUR website!
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "No, seconds is the unit of measure applied to the value of each of the functions. You were pretty sparse in the amount of information you provided, but I have to assume that is the number of pixels processed by each of the algorithms. Hence, you should be calculating the number of nanoseconds required to process 10 X 10 (100) pixels for each of the algorithms and then repeat your calculations for 100 X 100 (10,000) pixels for each of the algorithms.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can do your own arithmetic.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "John
\n" ); document.write( "
\n" ); document.write( "My calculator said it, I believe it, that settles it\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );