Finding a solution to the Erdos-Ginzburg-Ziv theorem in O(n n) time
Abstract
The Erdos-Ginzburg-Ziv theorem states that for any sequence of 2n-1 integers, there exists a subsequence of n elements whose sum is divisible by n. In this article, we provide a simple, practical O(n n) algorithm and a theoretical O(n n) algorithm, both of which improve upon the best previously known O(n n) approach. This shows that a specific variant of boolean convolution can be implemented in time faster than the usual O(n n) expected from FFT-based methods.
0
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.