Thread View: csu.cs.200
2 messages
2 total messages
Started by chiung-min wang
Wed, 28 Oct 1998 00:00
assign6 report #4
Author: chiung-min wang
Date: Wed, 28 Oct 1998 00:00
Date: Wed, 28 Oct 1998 00:00
2 lines
492 bytes
492 bytes
I do not know the question #4 of assign6 report.template. Does someone know and explain to me?
Re: assign6 report #4
Author: Adam Carheden
Date: Thu, 29 Oct 1998 00:00
Date: Thu, 29 Oct 1998 00:00
21 lines
1460 bytes
1460 bytes
First you divide the times you got for you selection sorts by the number of elements in the array for each sort: If it took .1 seconds (gprof output) to run on Handel with n=1024, .1 sec / 1024 elements = 9.7 x 10^-5 sec/element. Do this for each run with both machines, add up all the result and divide by the number of runs. You should have 10 selection sort runs; 5 different n values on two machines, 5x2=10. They want the answer in MICROseconds, which I think is millionths or x10^-6 (milliseconds is thousandths = x10^-3). If your original answers were in seconds, the average per operation you just calculated will be too. Mine was of the magnitude A.BCD x10^-4 seconds, so I just moved the decimal two places to the right, leaving me with ABC.D x 10^-6 seconds = ABC.D microseconds. -- Adam Carheden carheden@holly.ColoState.EDU http://holly.ColoState.EDU/~carheden
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads