[home] [research projects] [private manuscript]


Scalable Interpolation under MapReduce via Finite-Recurrence Reconstruction

Christopher Housholder, Hazhar Rahmani

informal web version   /   working manuscript

Presented at the Missouri State University CNAS Undergraduate Research Symposium, April 2026 — First Place in Computer Science.

Abstract

Classical polynomial interpolation is built around a global object: the interpolating polynomial is determined by all sampled values at once, and the representation used to construct or evaluate it frequently couples the entire data set. This becomes a practical limitation in distributed environments, where parallel evaluation does not by itself remove centralized preprocessing, dense linear algebra, or driver-memory costs. We study this distinction in a MapReduce setting and compare classical global, orthogonal-basis, recursive, and piecewise interpolation schemes according to construction cost, evaluation cost, memory, and observed scaling.

Motivated by these limitations, we develop a finite-recurrence reconstruction method whose representation can itself be learned from distributed summaries. Uniformly sampled exponential polynomials—and hence polynomials, exponentials, finite trigonometric sums, and damped trigonometric sums—satisfy exact constant-coefficient recurrences. We prove exact recovery in this setting. For general uniformly sampled \(C^k\) functions, finite differences yield an explicit order-\(k\) recurrence with one-step residual \(O(h^k)\), and a companion-matrix formulation quantifies the propagation of this local error. The recurrence coefficients are fitted by distributed weighted least squares using local QR factorizations and tree reduction. For fixed recurrence order, the fitting work is linear in the number of samples, each worker communicates only an \(O(k^2)\) triangular summary, and recurrence continuation can be divided into independent blocks through companion-matrix powers.

The recorded benchmarks support the computational motivation: global constructions become expensive at comparatively small problem sizes, while piecewise and recurrence-based methods remain feasible at much larger scales. The recurrence method additionally exhibits strong recorded continuation behavior on the supplied extrapolation tests. The resulting picture is that finite recurrences do not merely parallelize the evaluation of a precomputed interpolant; they provide a low-dimensional representation whose construction, communication, and continuation are all compatible with distributed computation.

Contents

1 Introduction
    1.1 Main results
2 Classical interpolation in a distributed model
3 Finite recurrences
    3.1 Bidirectional reconstruction
4 Approximation and stability
    4.1 Companion-matrix propagation
5 Distributed recurrence fitting
    5.1 Parallel recurrence propagation
6 Reconstruction algorithm
7 Recorded experiments
    7.1 Size-up behavior
    7.2 Interior score and node geometry
    7.3 Recorded extrapolation behavior
8 Discussion
9 Conclusion
References

This page follows the manuscript closely. It is written as mathematical exposition rather than as a summary page.

1 Introduction

Polynomial interpolation is a deceptively simple global problem. Given distinct nodes \[x_0<x_1<\cdots<x_{n-1}\] and sampled values \(y_i=f(x_i)\), one asks for a function agreeing with the data at the nodes and behaving sensibly between them. Classical formulas answer this question in several equivalent ways. Lagrange interpolation writes the interpolant in a nodal basis, Newton interpolation organizes the same polynomial through divided differences, barycentric formulas reorganize Lagrange evaluation for improved numerical behavior, and orthogonal bases replace nodal formulas by coefficient expansions [1, 9, 2, 6]. Mathematically these formulas often represent the same unique polynomial. Computationally they are very different.

That difference becomes sharper in a distributed setting. If a representation is first constructed on one machine and only then broadcast to workers, parallel evaluation can be excellent even though the construction stage remains a centralized bottleneck. Conversely, a method with a slightly less classical representation may be preferable if the representation itself can be assembled from partition-level summaries. MapReduce makes this distinction unavoidable: the relevant question is not only whether evaluations can be mapped independently, but whether the object being evaluated can be constructed without gathering all of the data back to a single driver [3, 10].

The first goal of this paper is therefore diagnostic. We place a broad collection of interpolation methods into a common distributed viewpoint and keep separate four costs that are easily conflated: \[\text{construction},\qquad \text{evaluation},\qquad \text{memory},\qquad \text{communication}.\] Global formulas often expose substantial parallelism in the number of query points while retaining construction costs that grow quadratically or cubically with the number of samples. Piecewise methods avoid this difficulty by replacing one global representation with many small local ones, but the resulting continuation beyond the observed interval is necessarily local.

The second goal is constructive. We replace the global polynomial representation by a finite linear recurrence. For an order \(k\) vector \[a=(a_0,\dots,a_{k-1}),\] we seek a relation \[\label{eq:intro-recurrence} y_{i+k}\approx \sum_{j=0}^{k-1}a_jy_{i+j}.\] When \(k\) is fixed independently of \(n\), the representation has constant dimension. The recurrence can be fitted from local rows of a tall least-squares system, each partition can be reduced to a small triangular summary, and those summaries can be merged through a tree reduction. Once the coefficients are known, the recurrence itself is a fixed-dimensional state evolution.

There is also a structural reason to expect [eq:intro-recurrence] to work. Uniformly sampled exponential polynomials satisfy exact finite recurrences. In particular, this includes uniformly sampled polynomials, exponentials, trigonometric sums, and damped trigonometric sums. For an arbitrary \(C^k\) function the relation need not be exact, but the \(k\)th finite difference gives an explicit order-\(k\) recurrence whose one-step residual is bounded by \(h^k\|f^{(k)}\|_\infty\). Thus the recurrence model is exact on a large algebraically structured class and locally high-order accurate on smooth data.

The remaining issue is stability. A small one-step residual need not remain small after many recurrence steps. Writing the recurrence through its companion matrix separates these two questions cleanly: the residual controls the local defect, while powers of the companion matrix control how the defect is amplified during continuation. This gives a direct criterion for stable long-range propagation and explains why recurrence order alone is not a sufficient model-selection criterion.

1.1 Main results

The paper develops five results around this viewpoint.

First, we make the construction/evaluation distinction explicit for the classical methods used in the benchmark. Their formulas may define the same polynomial, but they incur different driver-side preprocessing and per-query costs.

Second, we prove exact finite-recurrence reconstruction for sampled exponential polynomials. This gives a concrete class on which recurrence continuation is not an approximation of the sampled sequence but an exact representation of it.

Third, for uniformly sampled \(f\in C^k\), we prove an \(O(h^k)\) one-step residual bound and transfer it to the fitted least-squares recurrence. The result gives a deterministic approximation guarantee without assuming that the function itself belongs to an exact recurrence class.

Fourth, we derive a companion-matrix propagation identity. This identity isolates the two quantities governing continuation error: the fitted residuals and the growth of powers of the companion matrix.

Finally, we give a distributed weighted-QR fitting algorithm. For \(p\) workers and fixed recurrence order \(k\), its total work is \(O(nk^2+pk^3)\), each partition is represented by an \(O(k^2)\) triangular summary, and the recurrence continuation admits block parallelism through matrix powers. In the fixed-\(k\) regime, the dependence on the number of samples is linear.

The supplied experimental records are consistent with the motivation for this theory. Piecewise and recurrence-based methods remain feasible on the largest recorded problems, whereas several global constructions deteriorate rapidly. The recurrence method also preserves the strongest extrapolation scores in the supplied benchmark tables. We treat those numerical observations as empirical evidence rather than as a substitute for the stability conditions proved below.

[top]


2 Classical interpolation in a distributed model

We begin with the computational distinction that motivates the recurrence construction.

Definition 2.1 (Distributed evaluation model). Let \((x_i,y_i)_{i=0}^{n-1}\) be sampled data and let \(z_0,\dots,z_{m-1}\) be requested evaluation points. A method has distributed evaluation if the \(m\) evaluations can be partitioned across workers after the method-dependent representation has been constructed. It has distributed construction if that representation can itself be formed from partition-level summaries without collecting the full sample set into one centralized object.

The distinction is particularly important for formulas with expensive global preprocessing. For example, Newton divided differences permit \(O(n)\) evaluation once the divided-difference table has been formed, but constructing those coefficients is still quadratic in \(n\). Orthogonal-basis interpolation can make evaluation clean while moving the main cost into a dense coefficient solve. Aitken–Neville avoids a separate coefficient table but pays quadratic work at each query. Piecewise linear interpolation, in contrast, avoids a global polynomial representation entirely.

Proposition 2.2. Let \(n\) be the number of interpolation nodes and \(m\) the number of evaluation points. For the implementations represented in the supplied benchmark drafts, the dominant arithmetic costs are as follows, ignoring a common sorting stage. \[\begin{array}{lccc} \toprule \text{Method} & \text{Construction} & \text{Evaluation work} & \text{Central memory}\\ \midrule \text{Direct Lagrange} & O(n^2) & O(mn^2) & O(n)\\ \text{Barycentric I/II} & O(n^2) & O(mn) & O(n)\\ \text{Newton divided difference} & O(n^2) & O(mn) & O(n)\\ \text{Aitken--Neville} & O(1) & O(mn^2) & O(n)\\ \text{Orthogonal-basis solve} & O(n^3) & O(mn) & O(n^2)\\ \text{Piecewise linear} & O(1) & O(m\log n) & O(n)\\ \bottomrule \end{array}\]

Proof. The direct Lagrange and barycentric constructions use pairwise node differences. Direct Lagrange evaluation forms \(n\) basis contributions and each contribution uses \(O(n)\) arithmetic in the implemented form. Barycentric evaluation uses \(O(n)\) arithmetic once the weights are available. Newton divided differences require a triangular \(O(n^2)\) construction followed by nested \(O(n)\) evaluation. Aitken–Neville performs a triangular recursion independently at each query. The orthogonal-basis implementations form and solve a dense \(n\times n\) interpolation system. Piecewise linear evaluation requires interval location followed by constant local work. ◻

The proposition is not intended as a universal lower bound for every possible implementation of these mathematical methods. It records the computational structure of the implementations being compared. That distinction matters: fast multipoint evaluation and specialized structured algorithms can alter asymptotic costs, but the benchmark question here is how the supplied MapReduce implementations behave when placed under the same execution model.

[top]


3 Finite recurrences

We now turn from global polynomial representations to constant-order relations among neighboring samples.

Definition 3.1 (Finite recurrence). Let \(y_0,\dots,y_{n-1}\) be a sampled sequence. An order-\(k\) recurrence is a vector \[a=(a_0,\dots,a_{k-1})\in\mathbb{R}^k\] with residual \[\label{eq:residual} r_i(a) = y_{i+k}-\sum_{j=0}^{k-1}a_jy_{i+j}, \qquad 0\le i<n-k.\] The recurrence is exact if \(r_i(a)=0\) for every admissible \(i\).

The principal exact class is the class of exponential polynomials.

Theorem 3.2 (Exact recurrence class). Let \[f(x)=\sum_{\ell=1}^{s}p_\ell(x)e^{\lambda_\ell x},\] where each \(p_\ell\) is a polynomial of degree \(d_\ell\) and \(\lambda_\ell\in\mathbb{C}\). For fixed \(x_0\) and step size \(h\), the uniformly sampled sequence \[y_i=f(x_0+ih)\] satisfies a constant-coefficient recurrence of order at most \[K=\sum_{\ell=1}^{s}(d_\ell+1).\] Consequently, uniformly sampled polynomials, exponentials, finite trigonometric sums, and damped trigonometric sums satisfy exact finite recurrences.

Proof. For one term \(p(x)e^{\lambda x}\) with \(\deg p=d\), sampling on \(x_0+ih\) gives \[p(x_0+ih)e^{\lambda x_0}\bigl(e^{\lambda h}\bigr)^i,\] which is a polynomial in \(i\) of degree \(d\) multiplied by a geometric sequence. Such a sequence is annihilated by \[(E-e^{\lambda h})^{d+1},\] where \(E\) is the forward-shift operator. The product of these annihilating polynomials over \(\ell\) annihilates the sum. The degree of the product is \(K\), which yields a constant-coefficient recurrence of order at most \(K\). ◻

This theorem explains why the recurrence model is exact for much more than a single periodic signal. Polynomial trends, sums of oscillatory modes, and exponentially damped oscillations all lie in the same finite-dimensional shift-invariant framework.

3.1 Bidirectional reconstruction

The implementation uses two recurrences rather than forcing every interior value to be generated from one boundary.

Definition 3.3 (Bidirectional recurrence reconstruction). Let \(a^+\) be an order-\(k\) recurrence fitted to \(y_0,\dots,y_{n-1}\), and let \(a^-\) be the recurrence fitted to the reversed sequence. Seed a forward sequence \(F\) with the first \(k\) samples and propagate using \(a^+\). Seed a reversed sequence with the last \(k\) samples and propagate using \(a^-\); after reversing its ordering back, denote the resulting modeled sequence by \(B\). For \[\alpha_i=\frac{i}{n-1},\] define the interior reconstruction \[\label{eq:blend} G_i=(1-\alpha_i)F_i+\alpha_i B_i.\] The two exterior domains are continued from the nearest boundary using the corresponding directional recurrence.

Theorem 3.4 (Exact reconstruction). Suppose the sampled sequence and its reversal both satisfy exact order-\(k\) recurrences, and suppose the two fitted least-squares problems recover those exact recurrence coefficients. Then \[F_i=B_i=G_i=y_i\] at every sampled node. The forward and backward recurrence extensions also recover the exact sampled continuation values.

Proof. The forward recurrence is seeded with the first \(k\) exact samples and obeys the same recurrence as the sampled sequence. Induction gives \(F_i=y_i\) for every later sampled index. Applying the same argument to the reversed sequence gives \(B_i=y_i\). Equation [eq:blend] then gives \(G_i=y_i\). The same induction continues beyond either boundary. ◻

Remark 7 (Characteristic polynomial viewpoint). An order-\(k\) recurrence has characteristic polynomial \[T(\lambda)=\lambda^k-a_{k-1}\lambda^{k-1}-\cdots-a_1\lambda-a_0.\] Equivalently, higher powers of the shift can be reduced modulo \(T\), so every shift state is represented in a \(k\)-dimensional space. This algebraic viewpoint is useful, but the distributed construction below requires only the recurrence and its companion matrix; no quotient-ring terminology is needed for the algorithm itself.

[top]


4 Approximation and stability

Exact recurrence structure is not available for an arbitrary smooth function. The useful fact is that a uniform grid still produces an explicit approximate recurrence.

Lemma 4.1 (Finite-difference remainder). Let \(f\in C^k([a,b])\) and let all points \(x,x+h,\dots,x+kh\) lie in \([a,b]\). Then \[\left|\Delta_h^k f(x)\right| \le h^k\|f^{(k)}\|_{\infty}.\]

Proof. The \(k\)th forward difference admits the integral representation \[\Delta_h^k f(x) = \int_{[0,h]^k} f^{(k)}(x+t_1+\cdots+t_k) \,dt_1\cdots dt_k.\] Taking absolute values gives the result. ◻

Theorem 4.2 (Smooth functions admit low-residual recurrences). Let \(y_i=f(a+ih)\) with \(f\in C^k([a,b])\). Then there is an explicit order-\(k\) recurrence satisfying \[|r_i(a)|\le h^k\|f^{(k)}\|_\infty.\] One choice is \[a_j=(-1)^{k-j+1}\binom{k}{j}, \qquad 0\le j<k.\]

Proof. The forward-difference identity \[\Delta_h^k f(a+ih) = \sum_{j=0}^{k} (-1)^{k-j}\binom{k}{j}y_{i+j}\] can be solved for \(y_{i+k}\). The residual of the resulting order-\(k\) recurrence is exactly \(\Delta_h^k f(a+ih)\), so the bound follows from 8. ◻

The implemented model does not force these binomial coefficients. It fits the recurrence from the data by weighted least squares.

Definition 4.3 (Weighted fit). Let \(R_i=(y_i,\dots,y_{i+k-1})\) and \(t_i=y_{i+k}\). Given positive weights \(w_i\), the fitted coefficient vector is \[\widehat a = \mathop{\mathrm{arg\,min}}_{a\in\mathbb{R}^k} \sum_{i=0}^{n-k-1} w_i^2\left(t_i-R_i a\right)^2.\] For a uniform grid, the weights used in the supplied implementation are bounded below by \(1/(k+1)\).

Corollary 4.4 (Residual of the fitted recurrence). Let \(f\in C^k([a,b])\) be sampled uniformly at \(n\) points with spacing \(h\), and let \(\widehat a\) be the weighted least-squares fit of 10. Writing \(m=n-k\), \[\left( \frac1m\sum_{i=0}^{m-1} |r_i(\widehat a)|^2 \right)^{1/2} \le (k+1)h^k\|f^{(k)}\|_\infty.\] For fixed \(k\) on a fixed interval, the root-mean-square one-step residual is \(O(n^{-k})\).

Proof. The least-squares minimizer cannot have a larger weighted residual than the explicit recurrence from 9. The lower bound \(w_i\ge 1/(k+1)\) converts the weighted residual norm to the unweighted norm. Finally, \[h=\frac{b-a}{n-1}.\] ◻

4.1 Companion-matrix propagation

A local residual bound is only half of a continuation argument. The second half is the stability of repeated recurrence application.

Let \[C(a) = \begin{bmatrix} 0&1&0&\cdots&0\\ 0&0&1&\cdots&0\\ \vdots& & &\ddots&\vdots\\ 0&0&0&\cdots&1\\ a_0&a_1&a_2&\cdots&a_{k-1} \end{bmatrix}\] be the companion matrix, and let \[s_i=(y_i,\dots,y_{i+k-1})^T.\] Then the recurrence defect gives \[s_{i+1}=C(a)s_i+e_k r_i(a),\] where \(e_k=(0,\dots,0,1)^T\).

Theorem 4.5 (Propagation identity). Suppose \(\widetilde s_{i+1}=C(a)\widetilde s_i\) with \(\widetilde s_0=s_0\). Then \[\label{eq:propagation} s_m-\widetilde s_m = \sum_{j=0}^{m-1} C(a)^{m-1-j}e_k r_j(a).\] Consequently, \[\|s_m-\widetilde s_m\|_2 \le \sum_{j=0}^{m-1} \|C(a)^{m-1-j}\|_2\,|r_j(a)|.\]

Proof. Set \(d_i=s_i-\widetilde s_i\). Then \[d_{i+1}=C(a)d_i+e_k r_i(a), \qquad d_0=0.\] Iterating this identity gives [eq:propagation]. The norm bound follows from the triangle inequality and submultiplicativity. ◻

Corollary 4.6 (Spectral-radius criterion). Assume \(C=V\Lambda V^{-1}\) is diagonalizable, and write \[\rho(C)=\max_{\lambda\in\mathop{\mathrm{spec}}(C)}|\lambda|, \qquad \kappa_2(V)=\|V\|_2\|V^{-1}\|_2.\] Then \[\|C^q\|_2\le \kappa_2(V)\rho(C)^q.\] If \(|r_j(a)|\le\varepsilon\), then \[\|s_m-\widetilde s_m\|_2 \le \kappa_2(V)\varepsilon \sum_{q=0}^{m-1}\rho(C)^q.\] In particular, \(\rho(C)<1\) yields a uniformly bounded geometric amplification factor, \(\rho(C)=1\) gives at most linear accumulation under this bound, and \(\rho(C)>1\) permits exponential growth.

This is the central stability separation. A recurrence can fit the observed samples extremely well and still be a poor extrapolator if its companion dynamics are unstable. Conversely, a modest local residual can remain controlled when the state evolution is stable. Any practical recurrence-order selection rule should therefore account for both fit quality and the spectrum of the companion matrix.

[top]


5 Distributed recurrence fitting

The recurrence design matrix is tall and narrow. This is exactly the geometry in which local QR reduction is useful.

For each admissible recurrence row define the augmented weighted row \[Z_i=(w_iR_i,\;w_it_i)\in\mathbb{R}^{k+1},\] and let \(Z\) be the matrix obtained by stacking these rows.

Theorem 5.1 (Tree-reduced QR fit). Partition the rows of \(Z\) across \(p\) workers, with local blocks \(Z_1,\dots,Z_p\). Let \[Z_q=Q_qS_q\] be a reduced QR factorization of each local block. Stack the triangular factors \(S_q\), perform another QR factorization, and denote the final triangular factor by \(S\). If the weighted design matrix has full column rank, then solving the first \(k\) columns of \(S\) against its final column gives the same weighted least-squares coefficient vector as a centralized QR solve, in exact arithmetic.

Proof. Stacking the local factorizations gives \[Z = \mathop{\mathrm{diag}}(Q_1,\dots,Q_p) \begin{bmatrix} S_1\\ \vdots\\ S_p \end{bmatrix}.\] The block-diagonal factor is orthogonal and therefore preserves Euclidean least-squares norms. Replacing each local block by its triangular factor leaves the least-squares problem unchanged. Applying QR to the stack of triangular factors consequently produces the same final triangular least-squares system as a centralized QR factorization. ◻

Only the short sample histories needed to form recurrence rows that cross partition boundaries must be exchanged before the local reductions. Once a partition has formed its triangular factor, the full local block is no longer needed by later reduction stages.

collect the final \(k+1\) indexed samples of each partition construct and broadcast the corresponding left halos initialize local triangular summary \(S_q\) form \(R_i\), \(t_i\), \(w_i\), and \(Z_i=(w_iR_i,w_it_i)\) reduce rows in bounded chunks by QR merge each chunk factor into \(S_q\) by QR emit \(S_q\) \(S\gets\Call{TreeReduce}{S_1,\dots,S_p}\) using QR merges solve the resulting \(k\times k\) triangular least-squares system recurrence coefficients

Theorem 5.2 (Work, memory, and communication). Assume the recurrence rows are ordered and balanced across \(p\) workers. The distributed QR fit has \[O(nk^2+pk^3)\] total work, \[O\!\left(\frac{nk^2}{p}+k^3\log p\right)\] parallel depth, \(O(k^2)\) summary memory per worker, \(O(pk^2)\) communicated QR-summary volume, and \(O(pk)\) boundary-halo volume. For fixed \(k\) and \(p=O(n)\), the total fitting work is \(\Theta(n)\).

Proof. QR reduction of a tall block with \(m\) rows and \(k+1\) columns costs \(O(mk^2)\) [7]. Summed over all partitions, this gives \(O(nk^2)\). A merge factors a matrix with at most \(2(k+1)\) rows, which costs \(O(k^3)\). There are \(O(p)\) merges in total and \(O(\log p)\) along the longest reduction path. Each worker communicates one triangular factor of size \(O(k^2)\) and at most \(k+1\) boundary samples. ◻

5.1 Parallel recurrence propagation

Ordinary recurrence continuation is sequential inside one block, but the starting state of a distant block can be obtained directly from a power of the companion matrix.

Theorem 5.3 (Block-parallel propagation). Suppose \(H\) recurrence values are to be generated and the continuation interval is divided into \(p\) contiguous blocks. If the block-start states are computed from powers of the companion matrix using repeated squaring, then the total work is \[O(kH+pk^2\log H+k^3\log H),\] and the parallel depth is \[O\!\left(\frac{kH}{p}+k^2\log H+k^3\log H\right).\] For fixed \(k\), these simplify to \(O(H+p\log H)\) work and \(O(H/p+\log H)\) depth.

Proof. Repeated squaring constructs the necessary matrix powers in \(O(k^3\log H)\) work. Each worker combines \(O(\log H)\) powers to obtain its initial state, costing \(O(k^2\log H)\), and then generates at most \(\lceil H/p\rceil\) local recurrence values at \(O(k)\) work per step. ◻

The construction and continuation now share the same basic feature: every global stage operates on fixed-dimensional objects when \(k\) is fixed.

[top]


6 Reconstruction algorithm

The full method uses one recurrence in each direction. Inside the observed interval the two modeled sequences are blended, while outside the interval the nearest directional recurrence is continued.

sort samples by the node coordinate a piecewise-linear fallback verify uniform spacing for the theory-backed mode \(a^+\gets\Call{DistributedWeightedQR}{\texttt{samples},k}\) \(\texttt{rev}\gets\Call{Reverse}{\texttt{samples}}\) \(a^-\gets\Call{DistributedWeightedQR}{\texttt{rev},k}\) propagate the forward and reverse models as far as required \(\alpha_i\gets i/(n-1)\) \(G_i\gets(1-\alpha_i)F_i+\alpha_iB_i\) answer interior queries by interpolation on \(G\) answer right-exterior queries from the forward continuation \(F\) answer left-exterior queries from the reverse continuation \(B\) predictions

The approximation guarantees in [thm:smooth-recurrence,cor:ls-residual] apply directly only to uniform sampling. The supplied benchmark drafts also contain experiments on random and Chebyshev node sets. Those tests are useful as stress tests of the implementation, but they should not be read as being covered by [thm:smooth-recurrence,cor:ls-residual] without an additional nonuniform-grid analysis.

[top]


7 Recorded experiments

The supplied drafts contain benchmark records for classical methods, two piecewise methods, and the finite-recurrence method. We reorganize those records here around three questions: how runtime grows with problem size, how the reported interior score changes with node geometry, and what happens under extrapolation.

The test-function descriptions in the newest source draft use \[f_{\mathrm{easy}}(x)=\sin x,\qquad f_{\mathrm{medium}}(x)=e^x,\qquad f_{\mathrm{hard}}(x)=\frac{1}{1+25x^2}.\] The recorded node families are equispaced, random, and Chebyshev nodes.

Remark 17 (Status of the benchmark metadata). The supplied source drafts record numerical timings and score tables but do not give a complete machine or cluster configuration. They also contain both a pointwise-error description and separate percentage-valued “accuracy” tables without specifying the exact conversion between the two. We therefore reproduce the percentage values below as reported benchmark scores rather than silently assigning them a new mathematical definition. Absolute runtime comparisons should likewise be interpreted as provisional until the hardware and software configuration is recorded.

7.1 Size-up behavior

The small-\(n\) records already show the separation between quadratic-style global methods and the scalable methods. Selected entries are shown in 1.

Selected recorded size-up timings from the supplied benchmark tables.
Method \(n=100\) \(200\) \(400\) \(800\) \(1600\)
Aitken 1.64 3.24 18.91 161.84 1351.21
Direct Lagrange 1.05 1.41 8.80 63.96 513.43
Barycentric I 0.99 1.60 1.92 1.87 3.56
Newton divided difference 0.72 0.74 0.79 0.91 1.36
Piecewise Lagrange 0.73 1.03 1.28 1.00 0.70
Piecewise Newton 0.69 0.70 0.69 0.72 0.72
Finite recurrence 0.73 1.39 1.10 0.71 0.76

The purpose of these measurements is not to infer an asymptotic exponent from five noisy wall-clock values. The useful observation is more basic: Aitken and direct Lagrange deteriorate rapidly over the recorded range, whereas the piecewise and recurrence methods remain essentially flat at these sizes.

The large-scale records continue the comparison for the three methods that remained feasible in the source experiments.

Recorded large-scale size-up timings.
Method \(62{,}500\) \(125{,}000\) \(250{,}000\) \(500{,}000\) \(1{,}000{,}000\)
Piecewise Lagrange 2.40 4.67 7.56 12.01 19.66
Piecewise Newton 2.08 5.22 5.68 10.25 17.66
Finite recurrence 2.78 3.01 6.28 8.99 17.12

All three methods reach the million-point case in the supplied records. The recurrence timing is comparable to the two piecewise baselines and is the smallest of the three at \(10^6\) points in this particular run. Without the missing hardware metadata, we do not attach significance to the small constant-factor differences; the robust conclusion is the common large-scale feasibility.

7.2 Interior score and node geometry

The recurrence method behaves very differently on the three node families in the supplied score table.

Reported interior benchmark scores for the finite-recurrence method. The source draft records these values as percentages but does not define the percentage transformation from pointwise error.
Test Equispaced Random Chebyshev
Easy 100.00 90.43 74.80
Medium 100.00 97.51 93.26
Hard 99.99 81.85 67.35

The equispaced results are the most directly aligned with the theory in 9. Random and Chebyshev nodes change the physical spacing represented by one recurrence step, so the degradation there is not surprising: the fitted relation is being asked to model a sequence indexed by sample number even though equal increments in that index no longer correspond to equal increments in \(x\).

The same source table records near-\(100\) scores for the two piecewise baselines across all three node geometries. This is consistent with the role of piecewise methods as local interpolation procedures. It also highlights an important limitation of the present recurrence formulation: its strongest theory and strongest recorded interior behavior are both tied to uniform sampling.

7.3 Recorded extrapolation behavior

The supplied extrapolation table shows the clearest empirical separation. For the easy and medium tests, the recurrence method records a score of \(100\) at every listed shift from \(1\) through \(5\), while the two piecewise methods decrease steadily. The hard test is less favorable for every method, but the recurrence scores remain slightly above the corresponding piecewise values in the supplied record.

Recorded extrapolation scores for the finite-recurrence method and the piecewise baseline. The piecewise Lagrange and piecewise Newton values are identical in the supplied table.
Test Shift Piecewise Finite recurrence
Easy 1 62.72 100.00
2 47.72 100.00
3 34.09 100.00
4 26.51 100.00
5 21.69 100.00
Medium 1 67.28 100.00
2 45.02 100.00
3 33.38 100.00
4 26.31 100.00
5 21.63 100.00
Hard 1 40.89 42.76
2 24.53 25.66
3 17.52 18.33
4 13.63 14.25
5 11.15 11.66

These observations should be read together with 13. Recurrence continuation is not automatically stable merely because it avoids a high-degree polynomial. Its stability depends on the fitted companion dynamics. The benchmark suggests that the fitted recurrences in the easy and medium experiments had favorable continuation behavior, while the theorem explains the mechanism that must be checked if that behavior is to be guaranteed on a new data set.

[top]


8 Discussion

The distributed comparison reveals three distinct notions of scalability.

The first is query scalability. Once a representation has been constructed, many interpolation formulas allow independent evaluations at different query points. MapReduce handles this case naturally. This is the easiest form of parallelism and is shared by most methods in the comparison.

The second is construction scalability. Here the classical global methods separate. Pairwise weights, divided-difference tables, and dense basis solves must be formed before the independent evaluations can begin. Parallel query evaluation cannot remove a construction step that remains on the critical path. The recurrence fit differs because every sample contributes only a row of a tall, fixed-width least-squares problem, and those rows can be compressed locally by QR.

The third is continuation scalability. A recurrence appears sequential because each new value depends on the previous state, but the companion-matrix formulation makes block parallelism available. A worker can compute the state at the beginning of its block from a matrix power and then generate that block locally. Thus the recurrence model admits distributed structure both before and after the coefficient vector has been learned.

There is, however, an equally important limitation. The clean approximation result is a uniform-grid theorem. A recurrence indexed only by sample number cannot distinguish between a short physical step and a long one when the nodes are irregular. The random- and Chebyshev-node benchmark scores reflect exactly this sensitivity. Extending the theory to nonuniform grids would require either variable-coefficient recurrences, a reparameterization by arc length or cumulative spacing, or a state model in which the node increment enters explicitly.

A second limitation concerns extrapolation. The recurrence framework gives a mechanism for stable extrapolation, not an unconditional guarantee. The fitted residual and companion spectrum must both be controlled. In practical implementations this suggests regularizing or rejecting recurrence fits with unstable companion roots, even if their in-sample residual is small.

Finally, the benchmark metadata need to be completed before the numerical section is publication-ready. The supplied drafts do not record the full execution environment and do not define the percentage-valued accuracy score used in the tables. These omissions do not affect the mathematical results, but they prevent reproducible interpretation of the wall-clock constants and the percentage scores. The next experimental revision should therefore record hardware, Spark configuration, partition counts, recurrence order, train/evaluation intervals, random seeds, and the exact error-to-score transformation.

[top]


9 Conclusion

The main computational difficulty in large-scale interpolation is not always the evaluation of the interpolant. It is often the construction of the representation that must be evaluated. Classical formulas can distribute their queries while retaining global preprocessing, dense memory, or coefficient-construction costs. Piecewise methods avoid those costs by localizing the approximation. Finite recurrences offer a third route: learn a fixed-dimensional global state rule from distributed summaries.

The recurrence viewpoint is exact for uniformly sampled exponential polynomials and locally high-order accurate for general smooth functions on uniform grids. Its continuation error admits an explicit companion-matrix representation, which separates local fitting quality from dynamical stability. Its weighted least-squares fit can be implemented by local QR factorizations and tree reduction, so for fixed recurrence order the total fitting work is linear in the number of samples and communication is independent of the global data size except through the number of partitions.

The recorded benchmarks support the computational premise. The recurrence method remains feasible at the million-point scale in the supplied experiments and records strong continuation scores relative to the piecewise baselines. At the same time, the node-geometry experiments expose the principal limitation of the present theory: the recurrence is naturally a uniform-grid model. This makes nonuniform recurrence models, spectrum-aware order selection, and fully reproducible distributed benchmarks the most immediate directions for further work.

[top]


References

99

K. E. Atkinson, An Introduction to Numerical Analysis, 2nd ed., John Wiley & Sons, New York, 1989.

J.-P. Berrut and L. N. Trefethen, Barycentric Lagrange interpolation, SIAM Review 46 (2004), no. 3, 501–517.

J. Dean and S. Ghemawat, MapReduce: Simplified data processing on large clusters, in Proceedings of the 6th Symposium on Operating Systems Design and Implementation, 2004, 137–150.

J. Demmel, L. Grigori, M. Hoemmen, and J. Langou, Communication-optimal parallel and sequential QR and LU factorizations, SIAM Journal on Scientific Computing 34 (2012), no. 1, A206–A239.

S. Elaydi, An Introduction to Difference Equations, 3rd ed., Springer, New York, 2005.

W. Gautschi, Orthogonal Polynomials: Computation and Approximation, Oxford University Press, Oxford, 2004.

G. H. Golub and C. F. Van Loan, Matrix Computations, 4th ed., Johns Hopkins University Press, Baltimore, 2013.

R. A. Horn and C. R. Johnson, Matrix Analysis, 2nd ed., Cambridge University Press, Cambridge, 2012.

G. M. Phillips, Interpolation and Approximation by Polynomials, Springer, Berlin, 2003.

M. Zaharia, M. Chowdhury, T. Das, A. Dave, J. Ma, M. McCauley, M. J. Franklin, S. Shenker, and I. Stoica, Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing, in Proceedings of the 9th USENIX Symposium on Networked Systems Design and Implementation, 2012, 15–28.


Last modified September 13, 2026.
Best viewed at 1024 × 768 with Netscape Navigator 4.7 or an equally unreasonable browser.
Math rendered with MathJax.