Re: Not Homwork Fun Project
What language do you want to use?
Re: Not Homwork Fun Project
Quote:
Originally Posted by joebenjamin
In a second function, I want to sort the second array with an optimized bubble sort.
(My emphasis)
That's an oxymoron.
For precise time computations, with the C programming language, you can compute the difference of two calls to clock() to get the time interval.
http://www.cppreference.com/stddate/clock.html
On Win32 systems, you may use GetTickCount() or timeGetTime() in any language that gives access to system functions.
Be sure that your computations lasts at least a few seconds to get accurate results.
If it doesn't, iterate the sort operation thousands or millions of times so that it lasts enough time.
You may also use a profiler for more detailed profiling.
Re: Not Homwork Fun Project
I am using \c programming just basic language. I am totally lost and trying to do this for a project for my math class.
Joe benjamin.....and this is alos for fun :o)
Re: Not Homwork Fun Project
Quote:
Originally Posted by joebenjamin
I am totally lost and trying to do this for a project for my math class.
So don't say in the thread title that this isn't for homework.
Re: Not Homwork Fun Project
Questions about the C programming language should be asked on the C++ (non visual C++ issues) forum.
http://www.codeguru.com/forum/forumdisplay.php?f=9
The clock() function is declared in time.h.
http://www.cppreference.com/stddate/clock.html