The Erdős-Ginzburg-Ziv theorem states that every sequence of 2n - 1 integers contains a subsequence of length n whose sum is divisible by n. Choi, Kang, and Lim gave a simple deterministic O(n log n) algorithm for finding such a subsequence, and Leung recently improved this to O(n log log log n). We give a deterministic linear-time algorithm. The core is a linear-time algorithm for the following prime target subset-sum problem: given p - 1 nonzero residues in Z_p and a target residue, find a subset with the prescribed sum. Our algorithm maintains a compact arithmetic-progression representation of reachable sums. When two progressions intersect, a bounded Frobenius interval in their sum allows them to be merged into one longer progression, with enough growth to pay for the update. When the representation either contains a full progression or covers all nonzero residues, the target residue is recovered constructively. The standard multiplicative reduction then extends the prime algorithm to arbitrary moduli.


翻译:Erdős–Ginzburg–Ziv 定理指出,任意由 2n - 1 个整数构成的序列中,必存在一个长度为 n 的子序列,其和能被 n 整除。Choi、Kang 和 Lim 给出了一个简单的确定性 O(n log n) 算法来寻找这样的子序列,最近 Leung 将其改进为 O(n log log log n)。本文给出一个确定性线性时间算法。其核心是针对素数目标子集和问题的线性时间算法:给定 Z_p 中的 p - 1 个非零剩余和一个目标剩余,求一个子集其和为指定值。我们的算法维护可达和的一种紧凑算术级数表示。当两个级数相交时,它们和中的一个有界 Frobenius 区间允许它们合并为一个更长的级数,且增长量足以支付更新代价。当表示要么包含一个完整级数,要么覆盖所有非零剩余时,可以构造性地恢复目标剩余。最后,标准的乘法归约将该素数算法推广到任意模数。

0
下载
关闭预览

相关内容

在数学和计算机科学之中,算法(Algorithm)为一个计算的具体步骤,常用于计算、数据处理和自动推理。精确而言,算法是一个表示为有限长列表的有效方法。算法应包含清晰定义的指令用于计算函数。 来自维基百科: 算法
南大《时间序列分析 (Time Series Analysis)》课程,推荐!
专知会员服务
156+阅读 · 2022年3月31日
【经典书】线性代数,399页pdf,Georgi Shilov经典本科教材
必须收藏!MIT-Gilbert老爷子《矩阵图解》,一张图看透矩阵
专知会员服务
63+阅读 · 2020年3月4日
面试题:数组中子序列的个数
七月在线实验室
15+阅读 · 2019年6月26日
面试题:简单说说贝叶斯定理
七月在线实验室
12+阅读 · 2019年6月12日
你真的懂时间序列预测吗?
腾讯大讲堂
104+阅读 · 2019年1月7日
R语言时间序列分析
R语言中文社区
12+阅读 · 2018年11月19日
R语言之数据分析高级方法「时间序列」
R语言中文社区
17+阅读 · 2018年4月24日
图解高等数学|线性代数
遇见数学
39+阅读 · 2017年10月18日
GAN的数学原理
算法与数学之美
16+阅读 · 2017年9月2日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Arxiv
0+阅读 · 6月1日
VIP会员
最新内容
学习数据的几何:形状空间分析数学综述
专知会员服务
7+阅读 · 6月17日
定向能反无人机系统最新发展动态
专知会员服务
8+阅读 · 6月17日
从燃煤战舰到算法战争:水面指挥的永恒要求
专知会员服务
6+阅读 · 6月17日
相关VIP内容
南大《时间序列分析 (Time Series Analysis)》课程,推荐!
专知会员服务
156+阅读 · 2022年3月31日
【经典书】线性代数,399页pdf,Georgi Shilov经典本科教材
必须收藏!MIT-Gilbert老爷子《矩阵图解》,一张图看透矩阵
专知会员服务
63+阅读 · 2020年3月4日
相关资讯
面试题:数组中子序列的个数
七月在线实验室
15+阅读 · 2019年6月26日
面试题:简单说说贝叶斯定理
七月在线实验室
12+阅读 · 2019年6月12日
你真的懂时间序列预测吗?
腾讯大讲堂
104+阅读 · 2019年1月7日
R语言时间序列分析
R语言中文社区
12+阅读 · 2018年11月19日
R语言之数据分析高级方法「时间序列」
R语言中文社区
17+阅读 · 2018年4月24日
图解高等数学|线性代数
遇见数学
39+阅读 · 2017年10月18日
GAN的数学原理
算法与数学之美
16+阅读 · 2017年9月2日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员