Article View: csu.cs.200
Article #133Re: assign6 report #4
From: 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
Technical Details
Message-ID:
<36385507.3A67CB4A@holly.ColoState.EDU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<718nnv$acp@alain.cs.colostate.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 127144,d5546e615d90a89f X-Google-Attributes: gid127144,public From: Adam Carheden <carheden@holly.ColoState.EDU> Subject: Re: assign6 report #4 Date: 1998/10/29 Message-ID: <36385507.3A67CB4A@holly.ColoState.EDU> X-Deja-AN: 406394154 Content-Transfer-Encoding: 7bit References: <718nnv$acp@alain.cs.colostate.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Colorado State University, Fort Collins, CO 80523 Mime-Version: 1.0 Newsgroups: csu.cs.200