Content deleted Content added
m →Example: {{mset}} |
m {{hsp}} |
||
Line 1:
The '''3-partition problem''' is a [[Strong NP-completeness|strongly NP-complete]] problem in [[computer science]]. The problem is to decide whether a given [[multiset]] of integers can be partitioned into triplets that all have the same sum. More precisely:
* The input to the problem is a multiset ''S'' of ''n'' = 3
* The output is whether or not there exists a partition of ''S'' into ''m'' triplets ''S''<sub>1</sub>, ''S''<sub>2</sub>, …, ''S''<sub>''m''</sub> such that the sum of the numbers in each one is equal to ''T''. The ''S''<sub>1</sub>, ''S''<sub>2</sub>, …, ''S''<sub>''m''</sub> must form a [[Partition of a set|partition]] of ''S'' in the sense that they are [[Disjoint sets|disjoint]] and they [[Cover (topology)|cover]] ''S''.
Line 8:
==Example==
# The set
# The set
# (every integer in ''S'' is strictly between ''T''/4 and ''T''/2):
# (every integer in ''S'' is strictly between ''T''/4 and ''T''/2):
==Strong NP-completeness==
|