Skip to main content
QUICK REVIEW

[Paper Review] Emptying Sets: The Cookie Monster Problem

Megan Belzner|arXiv (Cornell University)|Apr 28, 2013
Artificial Intelligence in GamesComputer Science1 references4 citations
TL;DR

This paper investigates the Cookie Monster Problem, which seeks the minimum number of moves to reduce a set of integers to zero by removing equal amounts from selected subsets. It classifies sets with CM(S) = 2 or 3, analyzes sequences like arithmetic, geometric, and Fibonacci, and models the problem as a combinatorial game, identifying losing positions and conjecturing structural patterns in optimal move sequences.

ABSTRACT

Given a set of integers $S = \{k_1,\ k_2,...,\ k_n\}$, the Cookie Monster Problem is the problem of making all elements of the set equal 0 in the minimum number of moves. Consider the analogy of cookie jars with distinct numbers of cookies, such that $k_i$ is the number of cookies in the $i$th jar. The "Cookie Monster" wants to eat all the cookies, but at each move he must choose some subset of the jars and eat the same amount from each jar. The \emph{Cookie Monster Number of $S$}, $CM(S)$, is the minimum number of such moves necessary to empty the jars. It has been shown previously that $\lceil \log_2(|S|+1) ceil \leq CM(S) \leq |S|$. In this paper we classify sets by determining what conditions are necessary for $CM(S)$ to equal 2 or 3 and what effect certain restrictions have on $CM(S)$. We also provide an alternative interpretation of the problem in the form of a combinatorial game and analyze the losing positions.

Motivation & Objective

  • To classify all sets for which the Cookie Monster Number CM(S) equals 2 or 3.
  • To determine conditions under which CM(S) reaches its theoretical bounds, particularly for small sets.
  • To explore the behavior of CM(S) for arithmetic, geometric, and Fibonacci sequences.
  • To reformulate the Cookie Monster Problem as a combinatorial game and analyze its losing positions.
  • To identify structural patterns in optimal move sequences and conjecture relationships between different classes of losing positions.

Proposed method

  • Uses the formal definition of CM(S) as the minimal size of a multiset A such that the set S is a subset of the subset sums of A.
  • Applies the known bounds: ⌈log₂(n+1)⌉ ≤ CM(S) ≤ n, and investigates when equality occurs.
  • Employs a recursive construction of losing positions in the combinatorial game version, starting from {0,1,2} and building {1,p₁ⁱ,q₁ⁱ} pairs.
  • Generates sequences of pairs (p₁ⁱ, q₁ⁱ) by selecting the smallest unused positive integers such that the resulting set is irreducible and cannot be reduced to a smaller losing position in one move.
  • Uses the difference dᵢ = q₁ⁱ − p₁ⁱ to ensure all positive integers are used exactly once across the sequence.
  • Analyzes the asymptotic behavior and structural similarities between {0,p₀ⁱ,q₀ⁱ} and {1,p₁ⁱ,q₁ⁱ} losing position pairs, proposing conjectures on slope and bounded differences.

Experimental results

Research questions

  • RQ1What conditions must a set S satisfy for CM(S) to equal 2 or 3?
  • RQ2How do restrictions on the set, such as being an arithmetic or geometric sequence, affect the value of CM(S)?
  • RQ3What are the structural properties of losing positions in the combinatorial game formulation of the Cookie Monster Problem?
  • RQ4Are there consistent patterns or bounds in the differences between corresponding losing position pairs (e.g., p₁ⁱ − p₀ⁱ or (q₁ⁱ − p₁ⁱ) − (q₀ⁱ − p₀ⁱ))?
  • RQ5Can the combinatorial game version of the Cookie Monster Problem be fully characterized, and does it suggest a path to proving NP-completeness?

Key findings

  • For sets of size 3, CM(S) = 3 if and only if k₁ + k₂ ≠ k₃; otherwise, CM(S) = 2.
  • All sets with CM(S) = 3 and size up to 7 are fully classified, as such sets are maximal for |A| = 3.
  • Arithmetic sequences of the form {n, n−1, ..., 1} achieve the lower bound CM(S) = ⌈log₂(n+1)⌉.
  • Geometric sequences of the form {2⁰, 2¹, ..., 2ⁿ⁻¹} achieve the upper bound CM(S) = n.
  • The first 100 losing positions of the form {1, p₁ⁱ, q₁ⁱ} show that p₁ⁱ − p₀ⁱ ∈ {−1, 0, 1, 2} and (q₁ⁱ − p₁ⁱ) − (q₀ⁱ − p₀ⁱ) ∈ {−4, ..., 3}, suggesting bounded differences.
  • Conjectures are supported by empirical data: the ratio q₁ⁱ/p₁ⁱ ≈ q₀ⁱ/p₀ⁱ on average, and differences between corresponding pairs remain small, though increasing slightly with index.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.