The Berlekamp-Massey Algorithm revisited
Nadia Ben Atti, Gema M. Diaz--Toca, Henri Lombardi
TL;DR
This work revisits the Berlekamp-Massey algorithm for extracting the minimal polynomial of a linearly recurrent sequence. It introduces a simple modification that eliminates the need to reverse the intermediate polynomial and connects the method to Hankel-matrix ranks, enabling a direct computation of the minimal polynomial and a natural lazy evaluation workflow. The paper also lays out a detailed lazy variant applicable to large-algebra contexts (à la Wiedemann) where only a partial coefficient window is processed initially, with reuse of prior Euclidean steps to progressively refine the result. Together, these contributions improve interpretability, potentially reduce coefficient requirements when the true degree is small, and provide a flexible framework for adaptive polynomial computation in algebraic settings.
Abstract
We propose a slight modification of the Berlekamp-Massey Algorithm for obtaining the minimal polynomial of a given linearly recurrent sequence. Such a modification enables to explain it in a simpler way and to adapt it to lazy evaluation.
