Re: Is there demand for algorithm optimization?
From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 03/15/04
- Next message: Jerry Avins: "Re: ANN: new Pulsonix version 3 PCB software released"
- Previous message: Chuck Harris: "Re: Why to up/not grade to/from W98"
- In reply to: Trevor Barton: "Re: Is there demand for algorithm optimization?"
- Next in thread: News Group: "Re: Is there demand for algorithm optimization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 15 Mar 2004 14:38:28 GMT
Trevor Barton wrote:
>
> On 12 Mar 2004 17:30:22 +0100, Dr. Michael Ulm wrote:
> > --snip--
> >
> > I am sorry if my wording was misleading. This was not what I did.
> > One improvement came from an improvement in the algorithm itself,
> > which I found using a lot of mathematics. The other, surprisingly
> > efficient, improvement came from re-writing some function. Let me
> > demonstrate:
> >
> > Suppose you need the gaussian distribution, something like
> >
> > f(x) = c * exp(- x^2)
> >
> > for some constant c. You could code it like that (if your library
> > has an exp()), but this is of course sub-optimal. Especially when
> > efficiency is necessary. After some analysis of your situation we
> > observe that we only need f for x in the interval -3 < x < 3 with
> > some given precision, say 10^(-6). Now we can try to get the best
> > method for computing this function given these restrictions. This
> > depends of course on the capabilities of the hardware. Polynomial
> > approximation (not Taylor expansion btw.) may be our first choice
> > but this problem is already non-trivial...
> >
> > Sorry, this has gotten much too technical. I stop here.
> >
> > Btw, I never claimed that I could significantly improve every bit
> > of professionally written code. I often could so far. This is not
> > because I believe that mathematicians would be better programmers
> > (they aren't), but just that I, as a mathematician can bring some
> > different point of view into it that can make a difference.
> >
> > Regards,
> >
> > Michael.
> >
> > P.S. best viewed with fixed width font :-)
>
> Good grief, do you realise that every single line in that post that
> wrapped to the next line was exactly the same length? I don't know
> that I've seen one like that before that didn't format the post by
> adding in extra spaces between some words. Certainly not one that
> long! Or is that what you were referring to in the PS?
You could have continued it by replacing didn't with did not and
also
revising the next line to:
> adding some extra spaces between some words. Certainly not one that
-- Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net) Available for consulting/temporary embedded and systems. <http://cbfalconer.home.att.net> USE worldnet address!
- Next message: Jerry Avins: "Re: ANN: new Pulsonix version 3 PCB software released"
- Previous message: Chuck Harris: "Re: Why to up/not grade to/from W98"
- In reply to: Trevor Barton: "Re: Is there demand for algorithm optimization?"
- Next in thread: News Group: "Re: Is there demand for algorithm optimization?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|