Algebraic Fingerprints for Stream Equality
Evaluate a sequence as a polynomial over a finite field and use the root bound to quantify an erroneous match.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Store an evaluation instead of an entire sequence
For fixed-length sequences over \(\mathbb F_p\), encode each as a polynomial with sequence entries as coefficients. Evaluate at a shared uniform \(r\in\mathbb F_p\). Horner’s method reads coefficients from highest degree to lowest and retains just the running field element. Equal sequences always give equal evaluations. If the sequences differ, their difference is a nonzero polynomial of degree at most \(n-1\).
Bound how often different sequences agree
A nonzero polynomial of degree \(d\) has at most \(d\) roots over the field, so collision probability is at most \((n-1)/p\) for inputs fixed independently of \(r\). Track lengths explicitly and choose a modulus that preserves distinct input symbols. Independent repetitions multiply failure probabilities. This is useful for comparison and verification of large benign streams. Finite field arithmetic supplies the root argument. Sublinear algorithms address other computation limits when memory or input access is restricted.[1][2]