The split–join partition median problem is NP-complete
Given an explicitly listed sequence \(P_1,\ldots,P_k\) of partitions of the same finite set, can one find a partition \(Y\) that minimises \(F(Y)=\sum_{j=1}^{k}d(P_j,Y)\) in polynomial time? In Martin Loebl's partition median problem, \(d(P,Q)\) is the fewest operations needed to turn \(P\) into \(Q\). Each operation either joins two blocks or splits one block into two arbitrary nonempty blocks, at unit cost. With \(k\) part of the input and repeated partitions counted separately, deciding whether some \(Y\) satisfies \(F(Y)\le B\) for a given integer budget \(B\) is NP-complete. Finding an exact median is therefore NP-hard and admits a general polynomial-time algorithm only if \(\mathrm{P}=\mathrm{NP}\). The hardness already holds when every listed partition has either exactly two blocks or every element in its own block. EGRES Open Problems, 'Partition median problem' entry The distance identity recorded by EGRES gives a direct way to score a candidate. Write \(|P|\) for the number of blocks of \(P\), and let \(P\vee Q\) be the least common coarsening of \(P\) and \(Q\). Its blocks are the connected components obtained by linking elements that share a block of either partition. Then \[d(P,Q)=|P|+|Q|-2|P\vee Q|. \] Joining blocks of \(P\) to reach \(P\vee Q\), then splitting its blocks to reach \(Q\), realises this distance. The formula lets one check the total cost of a proposed median in polynomial time. The new result identifies an exact correspondence with Independent Set. For a simple undirected graph \(H\) on \(m\ge 2\) vertices numbered \(1,\ldots,m\), take as the ground set \(W\) the binary rows of length \(m\) consisting of the zero row, the unit row \(e_i\) for each vertex \(i\), and the row \(e_i+e_j\) for each edge \(\{i,j\}\). Here \(e_i\) has a single 1 in coordinate \(i\), and \(N=|W|=1+m+|E(H)|\), where \(E(H)\) is the edge set. For each coordinate, list two copies of the partition that groups rows by their bit in that coordinate. Also list \(q=2m-3\) copies of the partition into singletons. This gives \(4m-3\) explicitly listed partitions. For any candidate \(Y\), let \(S(Y)\) be the set of coordinates that are constant within every block of \(Y\). Its total cost for the constructed list is \[F(Y)=qN+3|Y|-4|S(Y)|. \] For a prescribed coordinate set \(S\), the cheapest partition with \(S(Y)=S\) groups rows with identical projections onto \(S\). This partition has \(1+|S|+|E(H[S])|\) blocks, where \(H[S]\) is the subgraph induced by \(S\). Thus its cost is \(qN+3-|S|+3|E(H[S])|\). An edge within \(S\) adds a cost of three, while selecting a coordinate saves one after accounting for its unit row. Dropping any selected vertex incident to an edge within \(S\) therefore strictly lowers the cost. A maximum independent set gives an optimal projection partition, and the exact minimum is \(qN+3-\alpha(H)\), where \(\alpha(H)\) is the maximum size of an independent set. In particular, the graph has an independent set of size at least \(a\) exactly when the constructed list has a median cost at most \(qN+3-a\). EGRES records a polynomial-time case in which each input partition has at most one block containing more than one element. The question of a polynomial-time algorithm for every fixed list length remains open here.
Authors
- Zixuan He
Institutions
- University of Glasgow (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24767345
- Primary Topic
- Complexity and Algorithms in Graphs
- Type
- preprint