Deterministic Linear-Time Modular Subset Sum
Abstract
We give a deterministic -time algorithm for exact modular subset sum over every modulus . The input gives distinct residues and their multiplicities. The algorithm reports all reachable residues and answers one target query. It returns a witness when the target is reachable. The algorithm uses auxiliary words on an arithmetic word-RAM. This improves Potępa's deterministic -time bound under the same input convention. The running time matches the cost of returning a length- Boolean array. We represent reachable residues as runs along cycles of repeated addition. Newly reached residues pay for scans of partial runs. Packed cycle flags make rebuilding take linear total time at the original modulus. A theorem on subset sums of distinct units limits the number of adaptive boundary batches to . Radix sorting their total keys also takes time.
Create a lesson
Related papers
LinearKnot: Linear-Time Approximation of the Pseudoknot Partition Function
Shared title terminology · Milan Gautam, David H. Mathews, Liang Huang
Linear-Time FPT Algorithm for Surface Disjoint Paths via Surface Cutting
Shared title terminology · Kyungjin Cho, Eunjin Oh, Sebastian Wiederrecht
Kidney Exchange in Deterministic O^*(4^{t+o(t)}) Time
Shared title terminology · Binh T. Nguyen
Partially Dynamic Single-Source Shortest Paths in Almost-Linear Time
Shared title terminology · Bin Cui, Hanqing Li, Xupeng Miao et al.
Maximizing Social Influence in Almost Linear Time
Shared title terminology · Saeed Seddighin
Strongly Refuting Semirandom Linear Systems in Subexponential Time
Shared title terminology · Pravesh K. Kothari, Andrew D. Lin, Peter Manohar