New Algorithms for Pigeonhole Equal Subset Sum
Abstract
We study the Pigeonhole Equal Subset Sum problem, which is a total-search variant of the Subset Sum problem introduced by Papadimitriou (1994): we are given a set of positive integers with the additional restriction that , and want to find two different subsets such that .
Very recently, Jin and Wu (ICALP 2024) gave a randomized algorithm solving Pigeonhole Equal Subset Sum in time, beating the classical meet-in-the-middle algorithm with runtime. In this paper, we refine Jin and Wu’s techniques to improve the runtime even further to .
Keywords and phrases:
pigeonhole principle, subset sumsFunding:
Ce Jin: Supported by the Jane Street Graduate Research Fellowship, NSF grant CCF-2330048, and a Simons Investigator Award.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithmsRelated Version:
This paper is based on Stan Zhang’s Master’s thesis.Editors:
Anne Benoit, Haim Kaplan, Sebastian Wild, and Grzegorz HermanSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Subset Sum is a fundamental NP-hard problem: given positive integers and a target integer , we want to find a subset such that .111Throughout this paper, we write . Subset Sum has a simple meet-in-the-middle algorithm in about time, given by Horowitz and Sahni in 1974 [13]. There has been a long line of research attempting to improve that meet-in-the-middle running time for Subset Sum [4, 5, 22, 3, 14, 8, 9, 12], but it remains open whether there exists an algorithm running in time for any constant . The fastest known algorithm for Subset Sum only has a -factor improvement over [12].
Despite the lack of progress on the time complexity of Subset Sum, there has been significant progress for solving variants of the problem. Examples include Equal Subset Sum [16], 2-Subset Sum and Shifted Sums [2], more general subset balancing problems [11], algorithms solving either Equal Subset Sum or Subset Sum [20], Merlin–Arthur protocols for Subset Sum [17, 1], Subset Sum in low space [7, 18], and quantum algorithms for Subset Sum [2]. There is also a large body of works on pseudo-polynomial-time algorithms and approximation schemes for Subset Sum and related problems (see e.g., [10] and the references therein). In this work, we focus on exact exponential-time algorithms.
An important variant of Subset Sum is the Equal Subset Sum problem:
Equal Subset Sum [24] Input: integers where Output: two different subsets such that (if exist).
Woeginger and Yu [24] first studied the Equal Subset Sum problem and showed that it is NP-Complete, similarly to Subset Sum. Since we can assume the solution satisfies (otherwise, we can return instead), a standard meet-in-the-middle approach can solve Equal Subset Sum in time. Mucha, Nederlof, Pawlewicz, and Węgrzycki [16] gave a faster -time algorithm in 2019, answering an open question of [23].222Throughout this paper, we use to hide factors, where is the number of input integers.
A special case of the Equal Subset Sum problem is the Pigeonhole Equal Subset Sum problem (also sometimes called Pigeonhole Equal Sums). This problem is the focus of our paper.
Pigeonhole Equal Subset Sum [19] Input: positive integers , with promise . Output: two different subsets such that .
Pigeonhole Equal Subset Sum is a total search problem, in that there always exists a solution; our goal is merely to find one. To see why this is true, note that there are subsets , which can only attain possible subset sums due to the promise , so by the pigeonhole principle there must exist a pair of subsets with the same subset sum.
The Pigeonhole Equal Subset Sum problem was introduced by Papadimitriou in 1994 [19], and has been studied in the TFNP literature [6, 21]. It belongs to the total search complexity class PPP, and is conjectured to be PPP-complete [19].
Pigeonhole Equal Subset Sum can be solved faster than the best known Equal Subset Sum algorithm. Until very recently, the fastest known algorithm for Pigeonhole Equal Subset Sum had time complexity , either by a simple binary search combined with the classical meet-in-the-middle approach by Horowitz and Sahni [13] (see a short description in [15, Section 2]), or by a mod- dynamic programming algorithm by Allcock, Hamoudi, Joux, Klingelhöfer, and Santha [2, Theorem 6.2]. Recently, a major advance by Jin and Wu [15] gave a randomized algorithm for Pigeonhole Equal Subset Sum running in time. Roughly speaking, the key idea of Jin and Wu was to show that a Pigeonhole Equal Subset Sum instance with very few solutions must satisfy a certain structural property: namely, the input numbers should resemble the geometric progression (see the formal statement in Lemma 4).
1.1 Our contribution
In this paper, we improve the time complexity of Jin and Wu [15]’s Pigeonhole Equal Subset Sum algorithm from to the clean bound :
Theorem 1 (Main).
Pigeonhole Equal Subset Sum can be solved by a randomized algorithm in time.
Jin and Wu used similar techniques to give a polynomial-space algorithm for Pigeonhole Equal Subset Sum in time, improving the straightforward -time polynomial-space algorithm based on binary search and meet-in-the-middle. We show that their polynomial-space algorithm can also be further improved:
Theorem 2.
Pigeonhole Equal Subset Sum can be solved by a randomized algorithm in time and space.
Our improved algorithms are based on the same structural property (see the formal statement in Lemma 4) proved by Jin and Wu [15], but we exploit it in a more efficient way. Jin and Wu [15] only exploited the property in the case when there are few solutions; if there are many solutions, they simply switched to a subsampling approach to try to hit a solution randomly, without using the structural property. In contrast, we make use of the structural property even in the case where there are many solutions, thereby improving the overall time complexity.
The rest of the paper is organized as follows: In Section 2, we give an overview of Jin and Wu’s algorithm, describe their aforementioned structural property precisely, and extract a few lemmas from their work which are useful to us. Then in Section 3, we present our improved algorithm for Pigeonhole Equal Subset Sum, proving Theorem 1. In Section 4 we prove Theorem 2. Finally, we discuss some future research directions in Section 5.
2 A Summary of Jin and Wu’s Algorithm
Throughout this paper, we use to denote the input integers, and we use the shorthand for the subset sum attained by the subset of indices .
For an Equal Subset Sum instance (not necessarily satisfying the pigeonhole promise), Jin and Wu [15] considered the parameter defined as follows:
Definition 3 ( and ).
For and , let
be the number of ways to achieve subset sum . When are clear from the context, we abbreviate .
Then, define
Observe that .
Note that an Equal Subset Sum instance has a solution if and only if .
Suppose the Pigeonhole Equal Subset Sum input instance consists of positive integers (assuming no trivial solution exists) where (recall that this upper bound on the sum of all weights is the promise given by Pigeonhole Equal Subset Sum). Jin and Wu’s key structural property relies on the following extra condition [15, Equation (1)]:
| (1) |
That is, Equation 1 says that the total weight of the set is at least . We may assume without loss of generality that Equation 1 holds. To see why, note that if for some , then is also a Pigeonhole Equal Subset Sum instance. We can solve this strictly smaller instance instead, and obtain a solution . Hence, we may assume such does not exist, so Equation 1 holds.
Using Equation 1, Jin and Wu [15] proved a key structural lemma for Pigeonhole Equal Subset Sum instances . Their lemma says that if is small, then the sequence is close to the geometric progression with small additive error.
Lemma 4 ([15, Equation (8)]).
Suppose positive integers satisfy and Equation 1. Then, for all ,
| (2) |
Lemma 4 will be used in our improved algorithm as well. For completeness, in Appendix A we include a short proof of Lemma 4 given by Jin and Wu [15]. Jin and Wu gave two different algorithms, which we summarize below in Lemma 5 and Lemma 6. The first algorithm is suitable when the Pigeonhole Equal Subset Sum instance has small . It was obtained by using Lemma 4 to speed up the standard binary search and meet-in-the-middle approach:
Lemma 5 ([15, Lemma 4]).
Given parameter , a Pigeonhole Equal Subset Sum instance (where ) satisfying and Equation 1 can be solved deterministically in time.
The second algorithm of Jin and Wu works well when is large. The intuition is that, in this case there are many solutions, so one can perform subsampling and still expect at least one solution to survive. Jin and Wu used this subsampling idea to speed up the mod- dynamic programming algorithm (which had previously been used for Subset Sum and related problems, e.g., [2, 4]):
Lemma 6 ([15, Lemma 5]).
Given parameter , an Equal Subset Sum instance with can be solved in time by a randomized algorithm.
We remark that originally [15, Lemma 5] was stated for Pigeonhole Equal Subset Sum only. However, upon inspecting their proof, one can easily verify that the pigeonhole promise was never used, so that the algorithm actually works for Equal Subset Sum as well. This point turns out to be useful for our improvement later.
Jin and Wu’s final algorithm for Pigeonhole Equal Subset Sum combines Lemma 5 and Lemma 6, and the overall runtime is balanced at the bottleneck case , leading to an overall worst case runtime of .
In Jin and Wu’s algorithm, Lemma 4 was used in developing the algorithm of Lemma 5 (the algorithm for the small case), but was ignored in the case where is large. In our improved algorithm, we show how the structural property of Lemma 4 can be exploited even when is large. This will allow us to reduce the original Pigeonhole Equal Subset Sum instance to a small number of Equal Subset Sum instances, which have sizes much smaller than (and still have large -values).
3 Our Improvement for Pigeonhole Equal Subset Sum
In this section we prove our main Theorem 1. Let be the input Pigeonhole Equal Subset Sum instance. Throughout, let be such that
| (3) |
Our algorithm does not know the value of in advance; instead, it tries all possible values of in parallel, and terminates as soon as any one of them succeeds. This only increases the runtime by an factor. Hence, in the following we assume that the value of is known.
We will separately consider the input items in and in . At a high level, our algorithm performs the following two steps:
-
1.
Guess a suitable pair of subsets .
-
2.
Find subsets such that , i.e., is a solution for Pigeonhole Equal Subset Sum.
For the first step, we will use Lemma 4 and Equation 3 to show that there are only many pairs of that we need to consider. For the second step, we will reduce the task of finding to a smaller Equal Subset Sum instance with input integers and large -value, which can be solved by Lemma 6. (In comparison, Jin and Wu’s original algorithm applied Lemma 6 to solve Equal Subset Sum on integers.)
Now we define the close pairs, which are the pairs of subsets that we need to consider for the first step:
Definition 7 (Close pairs).
Define the set of close pairs as
Define the set of disjoint close pairs as
By the identity , we have
| (4) |
The following simple lemma explains why it is sufficient to only consider close pairs:
Lemma 8.
If and , then .
Proof.
Since , we have
By the upper bounds in Lemma 4 and Equation 3, we have
The claim then follows from the definition of .
Now we bound the number of close pairs and disjoint close pairs:
Lemma 9.
We have and . Moreover, can be computed in time.
Proof.
First, we prove the claimed upper bound on . For , denote . By Lemma 4 and Equation 3, for all ,
Hence, for all . Therefore, for all , we have . Now it remains to characterize all members of defined as
Note that . Now consider any not equal to , and let be the maximum element in . By symmetry, we assume without loss of generality, and thus . Then,
On the other hand, by definition of . Hence, for every with , we must have and (otherwise, would appear as a summand above, violating ). Then, to fully determine , it only remains to decide for each integer whether belongs to , , or neither. There are at most possible choices in total. Since there are up to choices of and two choices for whether belongs to or , we conclude that .
The above argument can be easily converted into an algorithm that computes the set in time. Since , we have as claimed, and we can also compute in time by checking every pair in for containment in .
Now we bound . Recall from Equation 4 that every can be mapped to , and note that every can only have at most pre-images in under this mapping. Hence, .
The following lemma allows us to reduce the original problem to Equal Subset Sum instances on or integers with large -value:
Lemma 10.
For sets , define the - or -tuple as
| (5) |
Then, there must exist , such that .333Note that in our definition of for , the first case happens only if . However we later will consider where may not belong to .
Before proving Footnote˜3, we first use it to finish the proof of our main theorem:
Proof of Theorem 1 (assuming Footnote˜3).
As mentioned in the beginning of this section, we can assume the integer defined by Equation 3 is known. We assume satisfies
| (6) |
since otherwise we can already use Lemma 5 to solve the Pigeonhole Equal Subset Sum instance in time as required.
Compute with by Lemma 9 in time. Enumerate each , and then solve the Equal Subset Sum instance (defined in Equation 5) using Lemma 6. If the algorithm in Lemma 6 successfully finds a solution in the instance (where we can assume without loss of generality), then we distinguish between two cases:
-
Case where :
Then, since and , we can return as a solution for the original Pigeonhole Equal Subset Sum instance .
-
Case where :
This can only happen in the case, where contains the extra -th element . Without loss of generality assume . Then, define and , both of which are subsets of . Note that due to . Then we have . So we can return as a solution for the original Pigeonhole Equal Subset Sum instance .
Now we analyze the runtime. By Footnote˜3, for at least one , (where we used Lemma 9 and Equation 3). Then, applying Lemma 6 to solve takes time . Note that the precondition required by Lemma 6 is satisfied due to Equation 6. We can try all possibilities for the pair in parallel and run the algorithm of Lemma 6 until the earliest of them succeeds. The total time complexity is still .
It remains to prove Footnote˜3.
Proof of Footnote˜3.
We will show that there exists a pair satisfying the desired bound . Once this is shown, by we have , so the pair also satisfies the desired bound, which would finish the proof.
We start by rewriting as follows:
Claim 11.
For sets and integer , define
which is the number of ways to extend into to achieve a sum of , and define
Then, .
Proof of Claim 11.
By definition of , observe that (where was defined in Definition 3). Hence,
This finishes the proof for the case. Now observe that
where the last equality can be seen from separately considering subsets of which include and those which do not. Therefore, if , then we similarly have
as desired.
Now we relate to the expressions from Claim 11. For any with , fix an arbitrary with , and let . Note that . Then, by Lemma 8, every with must satisfy . Hence,
| (by definition of and ) | ||||
This means that for all ,
By summing over all and substituting using Claim 11, we get
Then, by averaging, there exists such that as claimed.
4 A Polynomial-Space Algorithm
In this section we prove Theorem 2. We use the following two lemmas from Jin and Wu [15], which can be viewed as polynomial-space versions of Lemma 5 and Lemma 6 respectively:
Lemma 12 ([15, Lemma 11]).
Given parameter , a Pigeonhole Equal Subset Sum instance (where ) satisfying and Equation 1 can be solved deterministically in space and time.
Lemma 13 ([15, Lemma 13]).
Given parameter , an Equal Subset Sum instance with can be solved in time and space by a randomized algorithm.
Again, although [15, Lemma 13] was originally stated for the Pigeonhole Equal Subset Sum problem, it actually works for Equal Subset Sum as well because the proof does not use the pigeonhole promise.
Proof sketch of Theorem 2.
We follow the same proof outline of Theorem 1, except that we replace the exponential-space subroutines, Lemma 5 and Lemma 6, by their polynomial-space counterparts, Lemma 12 and Lemma 13, respectively. The resulting algorithm is correct and runs in polynomial space. It only remains to re-analyze the time complexity.
Recall that we can assume the integer satisfying (Equation 3) is known. Let be determined later. If , we choose to use Lemma 12 and solve the given Pigeonhole Equal Subset Sum instance in time. If , we follow the main proof of Theorem 1 to reduce the original problem to many Equal Subset Sum instances of size (or ) in which at least one instance has -value , so the total time complexity of applying Lemma 13 becomes . By choosing , the overall time complexity becomes .
5 Open Questions
We list a few open questions related to this work.
-
Can we improve the time complexity for Pigeonhole Equal Subset Sum? Can we improve the time complexity for Equal Subset Sum [16]?
-
Can we obtain fast deterministic algorithms for Pigeonhole Equal Subset Sum? Our algorithm (and Jin and Wu’s algorithm [15]) uses Lemma 6 which is based on random subsampling. To the best of our knowledge, the -time algorithms via meet-in-the-middle ([2] or [15, Section 2]) remain the fastest known deterministic algorithms.
-
The authors of [2] proposed a more difficult Modular version of Pigeonhole Equal Subset Sum problem, and obtained a -time algorithm. In this problem, we are given integers and a modulus , and need to find two distinct subsets such that . Can we improve the time complexity for Modular Pigeonhole Equal Subset Sum?
-
The -SUM problem can be viewed as the fine-grained or parameterized version of the Subset Sum problem. Analogously, we propose the following Pigeonhole Equal -SUM problem (for fixed integers ):
Pigeonhole Equal -SUM [19] Input: length- arrays of integers from the range . Output: two different -tuples such that .
This is a total search problem, and the brute force algorithm runs in time. It is easy to improve it to time, using the standard binary search with meet-in-the-middle (following the same idea as the warm-up Pigeonhole Equal Subset Sum algorithm described in [15, Section 2], except that we replace the -time subroutine for counting Subset Sum solutions by the analogous -time algorithm for -SUM). Can we improve the runtime to faster than , say for the case?
References
- [1] Shyan Akmal, Lijie Chen, Ce Jin, Malvika Raj, and R. Ryan Williams. Improved merlin-arthur protocols for central problems in fine-grained complexity. Algorithmica, 85(8):2395–2426, 2023. doi:10.1007/S00453-023-01102-6.
- [2] Jonathan Allcock, Yassine Hamoudi, Antoine Joux, Felix Klingelhöfer, and Miklos Santha. Classical and quantum algorithms for variants of subset-sum via dynamic programming. In 30th Annual European Symposium on Algorithms, ESA 2022, September 5-9, 2022, Berlin/Potsdam, Germany, volume 244 of LIPIcs, pages 6:1–6:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.ESA.2022.6.
- [3] Per Austrin, Petteri Kaski, Mikko Koivisto, and Jesper Nederlof. Subset sum in the absence of concentration. In 32nd International Symposium on Theoretical Aspects of Computer Science, STACS 2015, March 4-7, 2015, Garching, Germany, volume 30 of LIPIcs, pages 48–61. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2015. doi:10.4230/LIPIcs.STACS.2015.48.
- [4] Per Austrin, Petteri Kaski, Mikko Koivisto, and Jesper Nederlof. Dense subset sum may be the hardest. In Proceedings of the 33rd Symposium on Theoretical Aspects of Computer Science (STACS), volume 47 of LIPIcs, pages 13:1–13:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.STACS.2016.13.
- [5] Per Austrin, Petteri Kaski, Mikko Koivisto, and Jesper Nederlof. Sharper upper bounds for unbalanced uniquely decodable code pairs. IEEE Trans. Inf. Theory, 64(2):1368–1373, 2018. doi:10.1109/TIT.2017.2688378.
- [6] Frank Ban, Kamal Jain, Christos H. Papadimitriou, Christos-Alexandros Psomas, and Aviad Rubinstein. Reductions in PPP. Inf. Process. Lett., 145:48–52, 2019. doi:10.1016/j.ipl.2018.12.009.
- [7] Nikhil Bansal, Shashwat Garg, Jesper Nederlof, and Nikhil Vyas. Faster space-efficient algorithms for subset sum, k-sum, and related problems. SIAM J. Comput., 47(5):1755–1777, 2018. doi:10.1137/17M1158203.
- [8] Anja Becker, Jean-Sébastien Coron, and Antoine Joux. Improved generic algorithms for hard knapsacks. In Advances in Cryptology – EUROCRYPT 2011 – 30th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Tallinn, Estonia, May 15-19, 2011. Proceedings, volume 6632 of Lecture Notes in Computer Science, pages 364–385. Springer, 2011. doi:10.1007/978-3-642-20465-4_21.
- [9] Xavier Bonnetain, Rémi Bricout, André Schrottenloher, and Yixin Shen. Improved classical and quantum algorithms for subset-sum. In Advances in Cryptology – ASIACRYPT 2020 – 26th International Conference on the Theory and Application of Cryptology and Information Security, Daejeon, South Korea, December 7-11, 2020, Proceedings, Part II, volume 12492 of Lecture Notes in Computer Science, pages 633–666. Springer, 2020. doi:10.1007/978-3-030-64834-3_22.
- [10] Lin Chen, Jiayi Lian, Yuchen Mao, and Guochuan Zhang. An improved pseudopolynomial time algorithm for subset sum. In 65th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2024, Chicago, IL, USA, October 27-30, 2024, pages 2202–2216. IEEE, 2024. doi:10.1109/FOCS61266.2024.00129.
- [11] Xi Chen, Yaonan Jin, Tim Randolph, and Rocco A. Servedio. Average-case subset balancing problems. In Proceedings of the 2022 ACM-SIAM Symposium on Discrete Algorithms, SODA 2022, Virtual Conference / Alexandria, VA, USA, January 9 – 12, 2022, pages 743–778. SIAM, 2022. doi:10.1137/1.9781611977073.33.
- [12] Xi Chen, Yaonan Jin, Tim Randolph, and Rocco A. Servedio. Subset sum in time 2 / poly(n). In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, APPROX/RANDOM 2023, September 11-13, 2023, Atlanta, Georgia, USA, volume 275 of LIPIcs, pages 39:1–39:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.APPROX/RANDOM.2023.39.
- [13] Ellis Horowitz and Sartaj Sahni. Computing partitions with applications to the knapsack problem. Journal of the ACM, 21(2):277–292, 1974. doi:10.1145/321812.321823.
- [14] Nick Howgrave-Graham and Antoine Joux. New generic algorithms for hard knapsacks. In Advances in Cryptology – EUROCRYPT 2010, 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Monaco / French Riviera, May 30 – June 3, 2010. Proceedings, volume 6110 of Lecture Notes in Computer Science, pages 235–256. Springer, 2010. doi:10.1007/978-3-642-13190-5_12.
- [15] Ce Jin and Hongxun Wu. A faster algorithm for pigeonhole equal sums. In 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 94:1–94:11. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.94.
- [16] Marcin Mucha, Jesper Nederlof, Jakub Pawlewicz, and Karol Węgrzycki. Equal-subset-sum faster than the meet-in-the-middle. In 27th Annual European Symposium on Algorithms, ESA 2019, September 9-11, 2019, Munich/Garching, Germany, volume 144 of LIPIcs, pages 73:1–73:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.ESA.2019.73.
- [17] Jesper Nederlof. A short note on merlin-arthur protocols for subset sum. Inf. Process. Lett., 118:15–16, 2017. doi:10.1016/j.ipl.2016.09.002.
- [18] Jesper Nederlof and Karol Węgrzycki. Improving Schroeppel and Shamir’s algorithm for subset sum via orthogonal vectors. In STOC ’21: 53rd Annual ACM SIGACT Symposium on Theory of Computing, Virtual Event, Italy, June 21-25, 2021, pages 1670–1683. ACM, 2021. doi:10.1145/3406325.3451024.
- [19] Christos H. Papadimitriou. On the complexity of the parity argument and other inefficient proofs of existence. J. Comput. Syst. Sci., 48(3):498–532, 1994. doi:10.1016/S0022-0000(05)80063-7.
- [20] Tim Randolph. Exact and Parameterized Algorithms for Subset Sum Problems. PhD thesis, Columbia University, 2024. doi:10.7916/baym-5m55.
- [21] Katerina Sotiraki, Manolis Zampetakis, and Giorgos Zirdelis. PPP-completeness with connections to cryptography. In 59th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2018, Paris, France, October 7-9, 2018, pages 148–158. IEEE Computer Society, 2018. doi:10.1109/FOCS.2018.00023.
- [22] Henk C. A. van Tilborg. An upper bound for codes in a two-access binary erasure channel (corresp.). IEEE Trans. Inf. Theory, 24(1):112–116, 1978. doi:10.1109/TIT.1978.1055814.
- [23] Gerhard J. Woeginger. Open problems around exact algorithms. Discret. Appl. Math., 156(3):397–405, 2008. doi:10.1016/J.DAM.2007.03.023.
- [24] Gerhard J. Woeginger and Zhongliang Yu. On the equal-subset-sum problem. Inf. Process. Lett., 42(6):299–302, 1992. doi:10.1016/0020-0190(92)90226-L.
- [25] Stan Zhang. Pigeonhole Equal Subset Sum in . Master’s thesis, Massachusetts Institute of Technology, 2024. URL: https://hdl.handle.net/1721.1/156830.
Appendix A Proof of Lemma 4 by Jin and Wu
Lemma 4 ([15, Equation (8)]). [Restated, see original statement.]
Suppose positive integers satisfy and Equation 1. Then, for all ,
| (2) |
Proof.
(Jin and Wu [15]) Recall our notations , . We abbreviate . Recall our assumption from Equation 1:
| (1) |
Since , we know for all , and . Then,
and thus
| (7) |
Since for all , from Equation 7 we know , and hence . Combined with Equation 1 for , we get
| (8) |
Now we have the following claim:
Claim 14.
For all ,
| (9) |
Proof of Claim 14.
Fix . Let be the number of subsets with . Since , any such must be contained in , and thus . On the other hand, by Equation 7. Hence, .
Comparing Equation 8 with Equation 10 gives
Together with Equation 9 we get the claimed bound
for all .
