TOPICS
Search

Numerical Three-Dimensional Matching Problem


The numerical three-dimensional matching problem is a decision problem in which three disjoint sets W, X, and Y each contain m elements, every element a has a positive integer weight s(a), and B is a positive integer. The question is whether W union X union Y has a set partition into m triples, each containing one element from each of W, X, and Y, such that every triple has total weight B (Garey and Johnson 1979, p. 224).

Equivalently, the permitted triples form the set

 M={(w,x,y) in W×X×Y:s(w)+s(x)+s(y)=B},

and the question is whether M contains a solution to the three-dimensional matching problem. The numerical problem is NP-complete even when the weights and B are bounded by a polynomial in m (Garey and Johnson 1979). Elements remain distinct even when their weights coincide.

For example, let the weights in W be 1 and 2, those in X be 3 and 4, and those in Y be 6 and 4. For B=10, a solution consists of triples with weights (1,3,6) and (2,4,4).


See also

NP-Complete Problem, Set Partition, Three-Dimensional Matching Problem

Explore with Wolfram|Alpha

References

Garey, M. R. and Johnson, D. S. Computers and Intractability: A Guide to the Theory of NP-Completeness. New York: W. H. Freeman, p. 224, 1979.

Cite this as:

Weisstein, Eric W. "Numerical Three-Dimensional Matching Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/NumericalThree-DimensionalMatchingProblem.html

Subject classifications