Probabilistic Counting in Generalized Turnstile Models
Abstract
Traditionally in the turnstile model of data streams, there is a state vector x=(x1,x2,…,xn) which is updated through a stream of pairs (i,k) where i∈ [n] and k∈ . Upon receiving (i,k), xi xi + k. A distinct count algorithm in the turnstile model takes one pass of the stream and then estimates x0 = |\i∈[n] xi≠ 0\| (aka L0, the Hamming norm). In this paper, we define a finite-field version of the turnstile model. Let F be any finite field. Then in the F-turnstile model, for each i∈ [n], xi∈ F; for each update (i,k), k∈ F. The update xi xi+k is then computed in the field F. A distinct count algorithm in the F-turnstile model takes one pass of the stream and estimates x0;F = |\i∈[n] xi≠ 0F\|. We present a simple distinct count algorithm, called F-, in the F-turnstile model for any finite field F. The new F- algorithm takes m(n) (|F|) bits of memory and estimates x0;F with O(1m) relative error where the hidden constant depends on the order of the field. F- is straightforward to implement and has several applications in the real world with different choices of F. Most notably, it makes distinct count with deletions as simple as distinct count without deletions.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.