An optimisation of algorithms to calculate newton polynomial interpolation
- coef.h: a defination of a tree (or graph) of newton coefficients (son-bro)
- coef.cpp: an implementation of the coefficient tree
- NEWTON.cpp: interface
The complexity of the nth interpolation is O(n). The device of such data structure theoretically reduces time consuming on C++ array indexing. The complexity of memory reference is approximately O(2n) instead of O(n(n-1)/2). Additionally, it is convenient for internal storage. Practical experiments are intended.