Content deleted Content added
use math template |
→Variants: format |
||
Line 22:
==Variants==
In the '''unrestricted-input variant''', the inputs can be arbitrary integers; in the '''restricted-input variant''', the inputs must be in (''T''/4
In the '''distinct-input variant''', the inputs must be in (''T''/4
In the '''unrestricted-output variant''', the ''m'' output subsets can be of arbitrary size - not necessarily 3 (but they still need to have the same sum ''T''). The restricted-output variant can be reduced to the unrestricted-variant: given an instance ''S<sub>u</sub>'' of the restricted variant, construct a new instance of the unrestricted variant {{math|''S<sub>r</sub>'' ≔ {s + 2{{hsp{{!}}''T''}} {{!}} s ∈ ''S<sub>u</sub>''}}}, with target sum 7{{hsp|''T''}}. Every solution of ''S<sub>u</sub>'' naturally corresponds to a solution of ''S<sub>r</sub>''. In every solution of ''S<sub>r</sub>'', since the target sum is 7{{hsp|''T''}} and each element is in {{nowrap|{{pars|{{hsp|''T''}}/4, 7{{hsp|''T''}}/2}}}}, there must be exactly 3 elements per set, so it corresponds to a solution of ''S<sub>u</sub>''.
|