The knapsack problem for groups was introduced by Miasnikov, Nikolaev, and Ushakov. It is defined for each finitely generated group G and takes as input group elements g1, . . . , gn, g ∈ G and asks whether there are x1, . . . , xn ≥ 0 withWe study the knapsack problem for wreath products G ≀ H of groups G and H.Our main result is a characterization of those wreath products G ≀ H for which the knapsack problem is decidable. The characterization is in terms of decidability properties of the indiviual factors G and H. To this end, we introduce two decision problems, the intersection knapsack problem and its restriction, the positive intersection knapsack problem.Moreover, we apply our main result to H3(Z), the discrete Heisenberg group, and to Baumslag-Solitar groups BS(1, q) for q ≥ 1. First, we show that the knapsack problem is undecidable for G ≀ H3(Z) for any G ̸ = 1. This implies that for G ̸ = 1 and for infinite and virtually nilpotent groups H, the knapsack problem for G ≀ H is decidable if and only if H is virtually abelian and solvability of systems of exponent equations is decidable for G. Second, we show that the knapsack problem is decidable for G ≀ BS(1, q) if and only if solvability of systems of exponent equations is decidable for G.
ACM Subject ClassificationTheory of computation → Problems, reductions and completeness; Theory of computation → Theory and algorithms for application domains Keywords and phrases knapsack, wreath products, decision problems in group theory, decidability, discrete Heisenberg group, Baumslag-Solitar groups Digital Object Identifier 10.4230/LIPIcs...