Re: Multiply Linear Polynomials
- From: Nicholas King <zeddie@xxxxxxxxxxxxxxxx>
- Date: Tue, 02 Jan 2007 14:56:38 +1100
Nicolas.Capens@xxxxxxxxx wrote:
It is definitely not cheating, it's an optimization. PrecomputingThe key point is if they are constants :) if they aren't and we have different linear equations each time , or we only wish to compute one once , then we can't apply the optimization once and amortize the cost of it over multiple computations of the same polynomial.
things is common practice in computer science (lookup tables are
typically also precomputed).
If a, b, c and d are constants then there's no practical problem
defining new constants A, B and C as above. The cost of computing A, B
and C does not count for the total cost of evaluating the polynomial at
run-time. They are just known beforehand, computed at compile-time,
constants at run-time.
Hence it's cheating , because you are assuming something that isn't given.
Nicholas King
.
- References:
- Multiply Linear Polynomials
- From: Debula
- Re: Multiply Linear Polynomials
- From: Nicolas . Capens
- Re: Multiply Linear Polynomials
- From: A . L .
- Re: Multiply Linear Polynomials
- From: Nicolas . Capens
- Re: Multiply Linear Polynomials
- From: A . L .
- Re: Multiply Linear Polynomials
- From: Nicolas . Capens
- Multiply Linear Polynomials
- Prev by Date: Re: Multiply Linear Polynomials
- Next by Date: Re: Multiply Linear Polynomials
- Previous by thread: Re: Multiply Linear Polynomials
- Next by thread: Re: Multiply Linear Polynomials
- Index(es):
Relevant Pages
|