Computer Science and Mathematics

Article
Computer Science and Mathematics
Applied Mathematics

Md. Refath Islam

,

K. M. Ariful Kabir

Abstract: Adherence to non-pharmaceutical interventions (NPIs) and vaccination are individual decisions that influence each other through the level of infection. We study this interaction by coupling an SVIR epidemic model, with waning immunity and a leaky vaccine, to two evolutionary games. NPI adherence follows a pairwise dilemma game set by the gamble-intending and risk-averting dilemma strengths, and vaccination follows a cost–benefit game. We show analytically that adherence becomes full in the Trivial game, dies out in the Prisoner's Dilemma, settles at an intermediate level in the Chicken game and, in the Stag Hunt, depends on the initial adherence. NPIs therefore reduce transmission only when the game sustains adherence, and in the Prisoner's Dilemma even a highly effective NPI has no long-run effect. In simulations, the epidemic is smallest in the Trivial game and largest in the Prisoner's Dilemma and in the Stag Hunt with low initial adherence. An effective, cheap vaccine reduces these differences but does not remove them. The benefit of NPIs (BNPI), defined as the reduction in epidemic size due to NPIs, is close to zero in the Prisoner's Dilemma and reaches 0.70 in the Trivial game. High NPI adherence lowers vaccine uptake, since people vaccinate less when infection is rare, yet it still gives the smallest epidemics.

Article
Computer Science and Mathematics
Applied Mathematics

Valentin Waeselynck

Abstract: Background: operational wildland fire models simulate front propagation based on rate-of-spread equations. It is both essential and nontrivial to verify the numerical accuracy of their front-tracking schemes. Methods: we provide techniques to generate analytical solutions in nontrivial settings, to be compared with simulated fire progressions. Analytical solutions are based on the Hopf formula, spatial and temporal warping, and leveraging the duality between fronts and trajectories that follows from Huygens' Principle. We compare these with progressions simulated using the Pyretechnics and ForeFire software libraries. Results: we apply these methods to example verification cases, featuring refractions at fuels interfaces, front merging, non-Huygens models, non-point ignitions, collapsing unburned islands, 4-quadrant landscapes, and warped variations thereof. Conclusions: wildfire simulation software authors can use these techniques to build more advanced verification studies.

Article
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: Adapting the observation model of a Bayesian filter can compensate for errors in a predictive prior, but exact posterior agreement need not provide reliable predictions for control. We characterize when an approximate Gaussian prior admits an observation channel that reproduces all posteriors of a given linear--Gaussian model, quantify the minimum unavoidable predictive observation divergence under exact matching, and derive a sharp residual posterior error for bias-only sensor adaptation. We then examine deterministic belief-space model predictive control based on maximum-likelihood observations. Its nominal mean update has zero innovation, leaving process-prediction bias unaffected by measurement adaptation at a fixed control sequence. Exact regret identities for quadratic objectives and a common active constraint face quantify when this bias alters the first implemented input. Explicit constructions demonstrate constraint-induced first-move errors and show that a Gaussian safety requirement can be violated even under exact conditional posterior matching. We also give a sharp continuous-input perturbation bound and a robust one-sided chance-constraint margin. The results distinguish accurate inference after observation from the predictive calibration needed for reliable planning.

Article
Computer Science and Mathematics
Applied Mathematics

Adel Ouled Said

Abstract: A small training loss is not, by itself, a reliable sign that a physics-informed neural network has solved the Allen–Cahn equation when the reaction is unstable with rate R on a horizon T. We establish two results. First, for the standard datum u₀ = x² cos(πx) we construct an exact solution ũ of the equation whose loss is approximately 6.42 × 10⁻⁴ for every R: it differs from the true solution u only through a central bump of height 0.056 that it omits from the datum. We prove two-sided bounds on the distance between u and ũ, whose early-time growth is bounded by rates depending on R and the diffusion, and whose distance reaches, at T = 1, at least 0.51 for R = 4 and 0.58 for R = 5. Second, we bound the error of any approximate solution by eRT times the initial misfit plus a weighted residual integral, show that this factor is attained for the linearized problem, and extend the bound to networks that are only approximately periodic. On the standard benchmark, a small network trained with several seeds, two precisions and two optimizers stops, in most runs, at a loss of about 6 × 10⁻⁴ and a relative error of about 0.52, with relative distances of 3 to 10% from ũ on the sampled space–time grid; similar behavior is observed at R = 4. A numerical evaluation of the theoretical lower bound, using the trained networks without the reference solution, yields a value near 0.58 at T. The experiments use one initial datum and one small architecture, and we do not extend their conclusions to other equations or settings.

Article
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: Lyapunov inequalities combining linear and sublinear dissipation with a positive residual term are frequently used to establish practical finite-time stability of uncertain nonlinear systems. This note characterizes the smallest universally guaranteed asymptotic residual level and the exact worst-case entrance time into every strictly larger sublevel set. Both quantities are determined by a scalar comparison equation, without an auxiliary parameter for splitting the dissipative terms. Sharpness is established even within the class of continuous autonomous scalar systems admitting a continuously differentiable, positive definite Lyapunov function. For a positive residual term, the optimal entrance-time bound diverges logarithmically as the target level approaches the critical residual level. Explicit bounds on this time, algebraic estimates of the residual level, and its small-residual asymptotics are derived. A uniform joint asymptotic formula for a vanishing residual and a target approaching the critical level identifies an exponentially small relative target gap as the scale of a nonzero additional delay. Fixed-ratio expansions distinguish three regimes of the dissipation exponent. A comparison with a standard split-term estimate and a scalar closed-loop counterexample for a published adaptive event-triggered controller illustrate the distinction between practical and exact finite-time tracking.

Article
Computer Science and Mathematics
Applied Mathematics

Shavkat Zikiryayev

,

Ulugbek Giyasov

,

Yulduz Ismoilova

,

Islom Mengliyev

,

Jonon Boymurodov

,

Shokhrukh Umarzoda

,

Bobomurod Mirsanov

,

Latofat Nomozova

,

Shuhrat Sharifov

Abstract: Suspension filtration in porous media redistributes particles among flowing pore water, slowly exchanging pore water, and deposits on the solid matrix. We developed a one-dimensional model that couples advection and dispersion, mobile–immobile mass transfer, and threshold-dependent deposition and release. The conservative finite-volume scheme was verified against the Ogata–Banks analytical solution, with additional grid refinement and mass-balance checks. Under prescribed flow, exchange reduced the particle supply available for deposition. Across the tested immobile pore fractions, the reduction in column-integrated deposit relative to the corresponding zero-exchange cases increased from about 4% to 11%. Comparison with published kaolinite sand-column experiments showed that outlet-only calibration of a depth-dependent straining term yielded little improvement in the deposit profiles. The model continued to underestimate the decline in deposition from the inlet downstream. These results show why breakthrough curves and depth-resolved deposit measurements are both needed to constrain how filtration models distribute retained particles within a porous bed.

Article
Computer Science and Mathematics
Applied Mathematics

Bukayaw Kindu

,

Birilew Belayneh

Abstract: In this study, we examine the existence of positive entire radial solutions for weighted partial trace equations with a nonlinear gradient term of the form \(\mathcal{P}_{\mathbf{a}}(D^2u)=h(|x|,u,|Du|)\) in \(\mathbb{R}^n\), where \(h\colon\mathbb{R}_0^+\times\mathbb{R}\times\mathbb{R}_0^+\to\mathbb{R}\) is a continuous function and \(\mathbf{a}=(a_1,\cdots,a_n)\) is an \(n\)-tuple of non-negative real numbers with \(a_1a_n>0\). \(\mathbb{R}^+\) and \(\mathbb{R}_0^+\) stand for \((0,\infty)\) and \([0,\infty)\), respectively.A Schauder-Tychonoff fixed point approach is used to prove the main results. We establish various conditions under which the equations have radial, strictly convex solutions \(u(x)\) in \(\mathbb{R}^n\) that are asymptotically constant multiples of \(|x|^2\) as \(|x|\to\infty\).

Article
Computer Science and Mathematics
Applied Mathematics

Jamol Makhmudov

,

Ulugbek Giyasov

,

Lutfiya Kalkonova

,

Farrukh Khalkhuzhaev

,

Akbar Toyirov

,

Umidjon Kurbonov

,

Fakhriddin Yakubov

,

Abdilmajid Mamatkabilov

,

Bekzodjon Fayziev

Abstract: This study develops a mathematical model for solute transport in a two-dimensional macroscopic inhomogeneous porous medium consisting of mobile and stagnant or low-mobility zones. The model accounts for solute exchange between the zones and incorporates multistage deposition kinetics, including deposition and release of suspended particles during transport. The governing system of equations describes advective–diffusive transport in the mobile region, diffusive mass transfer in the low-mobility region, and the evolution of deposited material. An efficient numerical algorithm based on the finite difference method is developed for solving the resulting coupled problem. The pressure-gradient and permeability fields are determined as part of the numerical procedure, and the resulting transport equations are solved using an implicit difference scheme and the tridiagonal matrix method. Numerical experiments are performed to investigate the influence of medium inhomogeneity, deposition and release coefficients, and diffusion parameters on the spatial and temporal evolution of solute concentration and deposition. The results demonstrate that exchange between mobile and low-mobility regions substantially affects the concentration distribution. The peak deposited concentration differed by approximately 45% between the two deposition cases compared. The simulations also demonstrate characteristic features associated with multistage deposition kinetics, including changes in the concentration-profile behavior. The proposed model provides a numerical framework for describing solute transport and deposition processes in heterogeneous porous media.

Article
Computer Science and Mathematics
Applied Mathematics

Asset Durmagambetov

Abstract: We study the coupled second-order rational recurrence x(2k+2) = a11x(2k) + a12x(2k+1), x(2k+1) = a22x(2k−1) + a21/x2(2k−1) within the landscape of discrete integrable systems. Written as a planar map it is a skew product: the odd-indexed subsequence obeys an autonomous one-dimensional nonlinear map and the even-indexed subsequence is linear and slaved to it. We prove that for an open set of parameters every continuous first integral is constant on the basin of an attracting fixed point (numerically, almost all of the plane), and we classify the lower-dimensional loci on which weak, resonant, or linear invariants survive. We then contrast this with the Somos-4 and Somos-5 recurrences: giving self-contained derivations of their QRT reductions and conserved quantities, we show that the same algebraic nonlinearity becomes integrable precisely when it is recast in bilinear (Hirota) form [12]. We develop the elliptic-curve linearization for the full two-parameter family (α, β), computing the Weierstrass invariants g2, g3, j and the discriminant locus explicitly, and we give the corrected σ-function solution τn = ABn σ(z0 + nv)/(√(4α) σ(v))n2, in which the translation point is always g = 0 and ℘(v) = (J2 − 4β)/3. Two cases are worked to high precision: the classical sequence 1, 1, 1, 1, 2, 3, 7, 23, … lives on the conductor-37 rank-one curve 37a1 with translation by the rational point (1, 0) of infinite order, while α = 2, β = 3 yields a different curve and is reconstructed exactly from σ. Finally we determine when the curve degenerates: on the discriminant locus Δ(J, α, β) = 0 the cubic acquires a repeated root, the fibre becomes a singular rational curve, and the σ-solution collapses to elementary form — hyperbolic or trigonometric at a node, purely rational τn = (an + b)γn2δn at a cusp — so that integrability persists but its elliptic transcendence is lost (and the Laurent integrality may fail).

Article
Computer Science and Mathematics
Applied Mathematics

Ahmed Morji

,

Tarik Boufrikech

,

Abbass Gorgi

,

Mourad El Ouali

,

Mohamed Wadia Mansouri

Abstract: We study the compression of large regression data sets by a cubature rule supported on a rank-1 lattice and equipped with local Voronoi averages: the data points are assigned to the Voronoi cells of a lattice with far fewer nodes than data points, constructed by the fast component-by-component algorithm, and each lattice node carries the empirical mean of the responses in its cell. On the theoretical side, we prove a two-term decomposition of the generic cubature error into an oscillation term and an equidistribution bias: the oscillation term is controlled in weighted Korobov spaces through a Bernstein-type inequality and the covering radius of the lattice, while the equidistribution bias is controlled by a multinomial deviation estimate, McDiarmid’s bounded-differences inequality, and a geometric boundary-layer argument. The resulting end-to-end bound for the quadratic loss holds with high probability under independent and identically distributed uniform sampling; balancing the two terms fixes the optimal number of lattice nodes and yields an explicit convergence rate that decays polynomially in the sample size and degrades only mildly with the dimension. On the experimental side, we conduct a systematic comparison against the digital-net compressor of Dick and Feischl, the lattice compressor of Gnewuch, Harsha and Wnuk, the QMC-Voronoi method of Göttlich, Heieck and Neuenkirch, and the supercompress algorithm of Joseph and Mak—seven distinct functional forms, matched point-set cardinalities, a single implementation language, and one hundred replications. At the theory-prescribed compression size, the Voronoi–lattice compressor improves uniformly on its digital-net counterpart over the entire benchmark, while offering exact reproducibility and a per-data-set cost one to two orders of magnitude below adaptive clustering.

Article
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: Exact trajectory agreement is fundamental to data-informed nonlinear dynamics, yet global asymptotic properties can remain undetermined. We establish a deterministic boundary for property certification in smooth model classes. In dimension at least two, any finite family of finite-time trajectories admits smooth local replacement away from the record, preserving the vector field on an open neighborhood of all observations while allowing arbitrary local dynamics elsewhere. This yields recordwise non-certifiability of global asymptotic stability, global contraction, and uniqueness of a locally stable equilibrium. Our central theorem shows that a compactly supported \( C^r \) perturbation along any fully observed embedded planar periodic orbit preserves its complete time parametrization while assigning its nontrivial Floquet multiplier any prescribed positive value. The obstruction persists in viscously damped mechanical systems: identical complete experiments and identical restoring forces, energies, and dissipation laws throughout a confinement interval coexist with different numbers of stable potential wells. Conversely, certified Jacobian estimates on a spatial \( \delta \)-net give regional contraction on a positively invariant compact convex set whenever \( \alpha>\varepsilon+L\delta \). This threshold is sharp for uniform propagation of the matrix-measure inequality. These results identify the additional structural or quantitative information needed for rigorous asymptotic certification.

Article
Computer Science and Mathematics
Applied Mathematics

Raushan Kumar

,

Fahad Al Basir

,

Amar Nath Chatterjee

,

Ibraheem M. Alsulami

Abstract: In this article, a mathematical model for soil-borne fungal disease in plants, where the disease transmission occurs due to interactions of susceptible plants with fungal pathogens existing in the soil, is developed and analyzed in terms of positivity, boundedness, equilibria and their stability, to explore conditions under which the disease can be effectively controlled. The condition of existence and direction of Hopf bifurcation are analytically found using normal form theory and then verified numerically. In addition, optimal control analysis is carried out by introducing time-dependent controls such as cultural control, fungicides and biological control in the model. The necessary optimality conditions are obtained using Pontryagin’s Maximum Principle. This study shows that the infection transmission rate, growth of fungus in the soil and pathogen amplification rate are among the significant parameters affecting the spread of disease. Plant-free equilibrium is stable when Also, disease-pressure index is less than unity. It is also found that the endemic equilibrium undergoes subcritical and supercritical Hopf bifurcations as well as bubbling. Finally, it is observed that the suggested optimal control approach has the ability to minimize the number of infected plants and density of soil-borne fungal pathogens.

Article
Computer Science and Mathematics
Applied Mathematics

Edward Bormashenko

,

Revolt Pimenov

,

Michael Nosonovsky

Abstract: We introduce a new geometric parameter to characterize symmetry of a set of 2D points: the measure of asymmetry equal to the minimum number of points that must be added to make a pattern symmetric, while keeping all original points unchanged. A pattern that already possesses the required symmetry has zero asymmetry. Unlike continuous symmetry measures, which describe how far points must move to achieve symmetry, the proposed parameter counts missing symmetry partners. We develop this approach for mirror and rotational symmetries and establish exact methods for finding the smallest completion. Any planar set containing at least two distinct points can acquire mirror symmetry by adding no more than the original number of points minus two. For randomly distributed points, we determine how the minimum number of additions depends on the order of rotational symmetry. We also apply the approach to crystals containing vacancies. The number of vacancies does not always equal the asymmetry measure, because some arrangements of vacancies preserve symmetry. We identify the conditions under which the two quantities coincide and relate the mean asymmetry to temperature through equilibrium vacancy statistics. This framework offers a direct way to quantify missing elements needed to restore symmetry, with potential applications to materials, engineering arrays, and biological patterns.

Article
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: This work develops equilibrium-manifold and finite-horizon pathwise formulations for high-confidence data-driven safe tracking. Constant references are represented by discrete regulator equations, accommodating underactuated plants and lower-dimensional operating-point manifolds. A single-trajectory data equation constructs the manifold without plant identification. For transition data with a certified residual, a convex program minimizes an explicit upper bound on the worst-case regulator residual over a data-consistency set. A separate affine tracking law is analyzed through a horizon-wise robust tube condition accounting for model uncertainty, reference slew, process noise, and data confidence. This yields a multiplicative lower bound on the complete-path safety probability and an additive risk budget. Fixed-metric vertex LMIs, Gaussian confidence radii, a quadratic safe-tube test, and a risk-aware reference governor support constructive synthesis. A complementary manifold-interpolation law guarantees deterministic invariance under arbitrary reference switching. Conversely, persistent nondegenerate Gaussian noise forces every causal controller to leave any bounded safe set eventually with probability one. The results distinguish deterministic invariance, finite-horizon pathwise safety, mean tracking, and infinite-horizon limitations, with applications to autonomous vehicles, UAVs, robotic servos, power converters, and process plants.

Technical Note
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: Shi et al. recently proposed a two-dimensional off-policy Q-learning method for model-free output-feedback tracking of batch processes. Its derivation relies on an exact representation of an augmented state, containing both the inter-batch state increment and the absolute tracking error, by finite histories of inter-batch input and output increments. This note shows that the published augmented realization contains a nontrivial unobservable subspace associated with the absolute tracking error. Consequently, the finite-history matrix used in the reconstruction is rank deficient for every history length, and the stated increment history does not uniquely determine the augmented state. A scalar counterexample satisfying the zero-initial-batch convention demonstrates that two admissible repeated batch regimes can have identical increment histories but different tracking errors. We then examine the quadratic stage cost. Positive-semidefinite weights obtained from the incremental-output cost are not problematic by themselves; the difficulty here is that their nullspace contains a persistent nonzero tracking-error trajectory with zero incremental-output cost. In contrast, for any positive-definite full-state weight, the same published history vector can correspond to different quadratic costs, so a Q-function of that history vector alone is not well defined. The positive-definite weights used in the numerical examples belong to this latter case. From a control-engineering viewpoint, convergence of inter-batch increments to zero is therefore not equivalent to set-point tracking. A constructive correction is outlined by reconstructing only the incremental state, explicitly including the directly measured tracking error in the history vector used by the controller, and defining the learning cost in measurable variables.

Technical Note
Computer Science and Mathematics
Applied Mathematics

Robert Vrabel

Abstract: We revisit selected aspects of value-function normalization and experience replay in the event-driven constrained control framework of Yang and Wang. For asymmetric input constraints, a linear example with a Lipschitz continuously differentiable value function shows that neither the value nor its gradient need vanish at the origin, and that the optimal input need not coincide with the midpoint of the admissible interval. For symmetric input constraints, a second example demonstrates that full row rank of recorded critic basis values does not necessarily imply a positive-definite replay Gramian, even for an exponentially stable closed loop with samples collected within a single inter-event interval. We establish the corresponding rank criterion in terms of the actual regressors and derive an exact critic-residual identity accounting for discounting and the controls applied between events. These results clarify the conditions underlying the value-function and learning-based stability arguments.

Article
Computer Science and Mathematics
Applied Mathematics

Nury Ortiz

,

Santiago Quinga

,

Rosa Vega

,

Omar Oña

,

Catalina Cisneros

Abstract: Newton’s method cannot be applied directly to a function with a jump discontinuity, because the function has no derivative at the jump. We replace such a function by its polynomial approximant of degree N, orthogonal with respect to a Chebyshev-type weight with an exponential factor centred at the jump, and study numerically the Newton map of the approximant in the complex plane. We prove three elementary facts: the Newton map has degree N with a repelling fixed point at infinity; the normalised weight measure concentrates at the jump, not at the endpoints, as the damping parameter grows; and the roots of the approximant can be computed stably as eigenvalues of a comrade matrix. For three test functions and N≤30 we observe that the non-real roots approach the jump at a rate close to N−1, whereas for smooth controls they remain at distance of order one; that a single large real root occurs for only one of the three functions; and that the standard deviation σ(N) of Newton iteration counts, used as an indicator of basin complexity, grows roughly linearly with N, but equally or more strongly for smooth controls, so the growth is not specific to the discontinuity. The sensitivity of σ to the grid, tolerance and iteration cap is quantified. No asymptotic result is claimed.

Article
Computer Science and Mathematics
Applied Mathematics

Karan S. Surana

,

Mahdi Hadid

Abstract: The anisotropic and porous volume of matter in \(V\) in \(x\)-frame with additional physics similar to micropolar physics is mapped into volume \(V_\beta\) in curvilinear fractional coordinate space \(x^\beta\) with axes \(x_1^\beta\), \(x_2^\beta\) and \(x_3^\beta\): \(\beta_1\), \(\beta_2\) and \(\beta_3 \in (0,1]\) such that volume \(V_\beta\) is isotropic, homogenized by dimensional regularization, has no pore space and is assumed to have rigid microconstituents that can only experience rigid body rotation in volume \(V_\beta\). The interaction of the rigid rotations of the microconstituents with the classical rotation rate field simulates the map of micropolar physics in \(V\) in the volume \(V_\beta\). Thus, the anisotropic, porous, and micropolar volume \(V\) in the \(x\)-frame is mapped into the isotropic homogeneous micropolar volume \(V_\beta\) that has no pore space. Upon deformation volume \(V\) in \(x\)-frame maps into volume \(\bar{V}\) in \(\bar{x}\)-frame, likewise volume \(V_\beta\) in \(x^\beta\)-frame maps into volume \(\bar{V}_\beta\) in \(\bar{x}^\beta\)-frame. In this paper, we present the derivation of conservation and balance laws in the Eulerian description in the \(\bar{x}^\beta\)-frame, i.e., for volume \(\bar{V}_\beta\) in the \(\bar{x}^\beta\)-frame for a compressible, isotropic, homogeneous, and micropolar medium.

Article
Computer Science and Mathematics
Applied Mathematics

Otabek Sagdullaev

,

Mirzokhid Ernazarov

,

Umarali Nazarov

,

Dilmurod Nasimov

,

Nazira Babaeva

,

Nurbek Umarov

,

Sobir Norqobilov

,

Islombek Umirov

,

Bekzodjon Fayziev

Abstract: Understanding how contaminants migrate, accumulate, and degrade in porous media is essential for groundwater protection. This study couples a transient pressure-derived Darcy velocity field near a localized inlet with two-dimensional solute transport, multistage adsorption, and first-order degradation in an idealized saturated medium. Simulations compare constant anisotropic and spatially variable scalar dispersion under a constant inlet concentration, together with exponentially increasing inlet concentrations under constant dispersion. A conservative numerical formulation is assessed through independent numerical references, spatial and temporal refinement, and solute mass balances. The results show that dispersion and inlet history influence contaminant spreading, cumulative loading, and partitioning between dissolved and adsorbed phases. Variable dispersion increases cumulative input and stored inventory, without a numerically resolved improvement in the fraction degraded. Greater retention therefore does not by itself indicate improved contaminant removal. Because the dispersion comparison also changes anisotropy and coefficient magnitudes, it does not isolate the effect of spatial variability. These findings demonstrate the importance of interpreting concentration patterns alongside cumulative loading and retained inventories. The model provides a basis for investigating contaminant persistence, although application to groundwater management requires physically justified parameters, sensitivity analysis, and independent observational validation.

Article
Computer Science and Mathematics
Applied Mathematics

Xintong Wang

,

Tengteng Yu

Abstract: Exact sequential lifting for a bounded modular knapsack reads each coefficient from the value function on the cyclic group Zq. The function is stored as a circular envelope, a list of maximal runs of one forward symbol, using two symbols on edges that meet minus infinity. The envelope determines the function. A zero-one update multiplies the number of runs by at most six. The ratio three is attained, and the proof of the factor six does not reach three, so a universal constant for that bound lies between 3 and 6. For the weights 2i−1, the prescribed profits 3i−1 give length 2k when q=2k and length 2k+1 when q>2k. On a complete sequence with equal efficiency, every prefix has length at most three, and the arithmetic is then linear in the number of variables. Shifting the first profit by a sufficiently small nonzero amount returns the length to 2k or 2k+1. For finite bounds, the envelope algorithm and the residue-table recurrence return the same coefficients.

of 56