Computing running time analysis

Status
Not open for further replies.

htom

Ars Legatus Legionis
12,590
Subscriptor
Yes. In all of those (which are usually algorithm analysis), and in addition, minimum, mean, and maximum hardware cycle count over every possible input combination. [eg., prove that for every (say) 50 bit value from the encoder's graycode output in register(i), you deliver correct normalized (to more than (say) 93 bits) sine and cosine values in less than (say) 46 nano-steps to register j and k, where j or k may overlap i but k is always j+1 and wraps to 0 if j+1 overflows the register count.]

It really depends on the kind of programming that you end up doing, and that's not at all obvious when you're learning; web sites -- indeed, the internet -- didn't exist when I started. There will be many other things that don't exist now that you'll code for, and for some of them, such analysis will be very important. (It's important for some websites, too; slow database code has probably killed several e-companies, whether it was code in the database or by the user using it.)
 

earl

Well-known member
3,066
Yup -- all the time. We do bioinformatics application software programming, so we deal with huge datasets (500+MB source files.) Running multiple algorithms (eg color separation, etc.) on several million data points means you better be sure how the algorithms scale.

A couple weeks ago the application was grinding to a halt. One of my coworkers was (mis)using a function I wrote. The function was intended to compute some data and then have the caller cache the result; he wasn't caching and instead just calling the function over and over. O(n^2) on 3 million datapoints.

-earl-
 
Status
Not open for further replies.