Algorithm Search⌘K

Theoremadvanced

Necklace splitting theorem

Also called Alon's necklace splitting theorem.

If each of t colours has a number of beads that is a multiple of k, then k thieves can split an open necklace with at most (k - 1) t cuts so that each gets the same number of beads of each colour.

The necklace splitting theorem says that kk thieves can share an open necklace fairly with few cuts. If the necklace has kaik a_i beads of colour ii for i=1,…,ti = 1, \dots, t, then at most (k−1)t(k - 1) t cuts between beads are enough to split it into intervals, and to give each thief some of the intervals, so that each thief gets exactly aia_i beads of each colour ii. The number of beads of each colour must be a multiple of kk, or no exact split can exist. The bound (k−1)t(k - 1) t cannot be improved. The theorem is the discrete form of a statement about tt measures on an interval; its case k=2k = 2 is the existence of a consensus halving with tt cuts. The difference between the two pages is the object: consensus halving is the computational problem for nn agents with continuous measures, where approximation matters, while this page is the existence theorem for beads and any number of thieves. The proofs use topology and give no efficient algorithm: for two thieves, finding the split is complete for the class PPA.

Statement

A necklace is a sequence of beads on a line, each with one of tt colours. A cut is a point between two adjacent beads. A set of cc cuts splits the necklace into c+1c + 1 intervals, and a kk-splitting gives each interval to one of kk thieves.

Theorem (Alon 1987). Let k≥2k \ge 2 and t≥1t \ge 1, and let a necklace have kaik a_i beads of colour ii for i=1,…,ti = 1, \dots, t, with integers ai≥0a_i \ge 0. Then there are at most (k−1)t(k - 1) t cuts and a kk-splitting in which each thief gets exactly aia_i beads of colour ii, for every ii.

Continuous version. Let μ1,…,μt\mu_1, \dots, \mu_t be continuous probability measures on [0,1][0, 1]. Then [0,1][0, 1] can be cut at (k−1)t(k - 1) t points into (k−1)t+1(k - 1) t + 1 intervals, and these intervals can be split into kk families F1,…,FkF_1, \dots, F_k, so that μi(⋃Fj)=1/k\mu_i(\bigcup F_j) = 1/k for every measure ii and every family jj.

For k=2k = 2 the theorem is due to Goldberg and West (1985), with a short proof by Alon and West (1986); Alon proved the general case. The continuous version for k=2k = 2 follows from the Hobby-Rice theorem of 1965.

In plain words

Some thieves steal a necklace with beads of several colours. They want to share it so that each thief gets the same number of beads of each colour, but each cut costs them, so they want few cuts. The theorem says that with two thieves they never need more cuts than there are colours. With more thieves, each extra thief adds as many cuts as there are colours. For each colour, the beads must split evenly among the thieves to begin with.

No shortcut does better: if all beads of one colour sit together, every thief needs some of them, so that block alone needs a cut for each extra thief.

Proof

We prove the case k=2k = 2 in full and sketch the general case.

Continuous version for two thieves (Alon and West). Let StS^t be the set of z=(z0,…,zt)∈Rt+1z = (z_0, \dots, z_t) \in \mathbb{R}^{t+1} with ∣z0∣+⋯+∣zt∣=1|z_0| + \dots + |z_t| = 1; it is a sphere of dimension tt. For z∈Stz \in S^t, cut [0,1][0, 1] into t+1t + 1 consecutive intervals I0,…,ItI_0, \dots, I_t of lengths ∣z0∣,…,∣zt∣|z_0|, \dots, |z_t|, and give IjI_j to thief 1 if zj>0z_j > 0 and to thief 2 if zj<0z_j < 0 (an interval of length 0 does not matter). Let U1(z)U_1(z) be the part of thief 1 and define f(z)i=μi(U1(z))−1/2f(z)_i = \mu_i(U_1(z)) - 1/2 for i=1,…,ti = 1, \dots, t. The map f:St→Rtf: S^t \to \mathbb{R}^t is continuous, because the measures are continuous and the cut points depend continuously on zz. It is odd: −z-z gives the same intervals with the thieves swapped, so f(−z)=−f(z)f(-z) = -f(z). By the Borsuk-Ulam theorem, every continuous odd map from StS^t to Rt\mathbb{R}^t has a zero. At a zero, thief 1 gets exactly half of every measure, with tt cuts.

From measures to beads, for two thieves. Let the necklace have mm beads. Put bead bb on the interval [(b−1)/m,b/m][(b - 1)/m, b/m], and let μi\mu_i be the uniform measure on the beads of colour ii, scaled to total 1. The continuous version gives at most tt cut points at which thief 1 gets exactly aia_i beads' worth of colour ii. Some cuts may lie inside beads. First delete every cut whose two sides go to the same thief; this changes no share, and afterwards the intervals alternate between the thieves. If a bead holds two cuts in a row, the parts of the bead on their far sides belong to the same thief. Slide both cuts by the same amount toward one end of the bead: one of these parts grows and the other shrinks by the same amount, and the part between the cuts keeps its length, so no share changes. Stop when a cut reaches the end of the bead. Repeat until each bead holds at most one cut. Thief 1 gets an integer number of whole beads of colour ii, and a fraction strictly between 0 and 1 of each cut bead of colour ii. Its total is the integer aia_i, so the cut beads of colour ii cannot number exactly one. If two beads of colour ii hold cuts, slide both cuts at the same speed, in the directions in which the share of thief 1 of the first bead grows and its share of the second bead shrinks. Every share of every other colour stays the same, and so does the share of colour ii. Stop when one of the cuts reaches the end of its bead. The number of cuts inside beads drops by at least one. Repeat until no cut lies inside a bead. The result has at most tt cuts, all between beads, and each thief gets aia_i beads of colour ii. □\square

More thieves (sketch, Alon 1987). For a prime k=pk = p, Alon proves the continuous version with a generalization of the Borsuk-Ulam theorem to maps that respect a free action of the cyclic group of order pp, due to Barany, Shlosman and Szucs. If the continuous version holds for k1k_1 and k2k_2 thieves, it holds for k1k2k_1 k_2: first split among k1k_1 groups with (k1−1)t(k_1 - 1) t cuts, then split the share of each group among k2k_2 thieves, with (k2−1)t(k_2 - 1) t cuts per group, applied to the measures restricted to that share and joined into one interval. This gives (k1−1)t+k1(k2−1)t=(k1k2−1)t(k_1 - 1) t + k_1 (k_2 - 1) t = (k_1 k_2 - 1) t cuts. Alon then deduces the discrete theorem from the continuous one.

Consequences

  • Consensus halving exists. The continuous version with k=2k = 2 says that nn agents with continuous measures on [0,1][0, 1] can cut it with nn cuts into two parts that every agent values equally. This is the existence theorem behind consensus halving.
  • Equal division of a cake with few cuts. The continuous version for kk thieves is a consensus 1/k1/k division: one cut set at which all tt agents agree that each of kk shares is worth 1/k1/k. With k=t=nk = t = n it gives an exact division of a cake among nn agents with (n−1)n(n - 1) n cuts. Every agent values every share at 1/n1/n, so this division is proportional and envy-free, but the pieces are unions of intervals and the proof does not give a finite protocol.
  • Hard to compute. Finding a necklace splitting for two thieves is PPA-complete (Filos-Ratsikas and Goldberg 2019). PPA is the class of total search problems that reduce in polynomial time to LEAF: given a graph of degree at most 2, described by a circuit, and a vertex of degree 1, find another vertex of degree 1, which exists because the number of such vertices is even. PPA contains PPAD, and both lie in TFNP. Deligkas, Fearnley, Hollender and Melissourgos (2022) extend the hardness to constant approximation.
  • Algorithms with more cuts. If more cuts are allowed, a fair split is easy: Alon and Graur (2020) give efficient algorithms that use more than (k−1)t(k - 1) t cuts.
  • Few colours. For two thieves and a fixed number tt of colours, a brute force over all sets of at most tt cuts and all ways to give out the intervals takes polynomial time in the number of beads; Goldberg and West give a faster polynomial algorithm for this case.

Tightness

The bound (k−1)t(k - 1) t is best possible for every kk and tt. Put all beads of colour 1 first, then all beads of colour 2, and so on, with ai≥1a_i \ge 1. Each thief needs a bead of colour ii, so the block of colour ii meets at least kk of the intervals, and at least k−1k - 1 cuts lie strictly inside this block. Different blocks have different cuts inside them, so at least (k−1)t(k - 1) t cuts are needed.

For example, take two thieves and the necklace red, red, blue, blue. With one cut, the first part is red, red-red or red-red-blue, and none of these has one bead of each colour. With two cuts after the first and the third bead, the parts are red, red-blue and blue; thief 1 takes the first and the last part and thief 2 takes the middle part, so each gets one red and one blue bead.

The divisibility condition is needed: with kai+1k a_i + 1 beads of colour ii, the thieves cannot all get the same number of them. The later form of the problem asks each thief for ⌊mi/k⌋\lfloor m_i / k \rfloor or ⌈mi/k⌉\lceil m_i / k \rceil beads of colour ii, where mim_i is the number of beads of colour ii; Alon and Graur note that it is equivalent to the form with multiples of kk.

History

Hobby and Rice proved in 1965 a theorem on moments in L1L^1 approximation that gives the continuous case for two thieves. Goldberg and West proved the bead case for two thieves in 1985, in a paper on bisections of circle colourings, and asked about more thieves. Alon and West gave a short proof with the Borsuk-Ulam theorem in 1986, and Alon solved the case of kk thieves in 1987. The computational side came much later: Filos-Ratsikas and Goldberg showed at STOC 2018 that approximate consensus halving is PPA-complete, and at STOC 2019 that necklace splitting for two thieves is PPA-complete too.

References

  1. Noga Alon, Splitting necklaces, Advances in Mathematics 63(3) (1987), pp. 247-253 (the theorem for k thieves, its continuous version for measures, and the proof that the number of cuts is best possible)
  2. Charles H. Goldberg and Douglas B. West, Bisection of circle colorings, SIAM Journal on Algebraic and Discrete Methods 6(1) (1985), pp. 93-106 (two thieves, and a polynomial algorithm for a fixed number of colours)
  3. Noga Alon and Douglas B. West, The Borsuk-Ulam theorem and bisection of necklaces, Proceedings of the American Mathematical Society 98(4) (1986), 623-628, the short proof for two thieves with the Borsuk-Ulam theorem
  4. Aris Filos-Ratsikas and Paul W. Goldberg, The complexity of splitting necklaces and bisecting ham sandwiches, STOC 2019, pp. 638-649 (necklace splitting for two thieves is PPA-complete)
  5. Argyrios Deligkas, John Fearnley, Alexandros Hollender and Themistoklis Melissourgos, Constant inapproximability for PPA, STOC 2022, the abstract (hardness of the approximate versions for constant epsilon)
  6. Noga Alon and Andrei Graur, Efficient splitting of measures and necklaces, arXiv:2006.16613 (2020), Section 1 (the history of the existence proofs, and approximation algorithms with more cuts)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/J7FE64/text.yaml