Skip to main content
4 of 4
prettied up the formatting
Harrison Brown
  • 12.6k
  • 14
  • 70
  • 105

Paritioning a set of numbers A into two sets B,C so that abs(prod(B) - prod(C)) is minimal

Let A = $\{a_1,...,a_n\}$ be a set of numbers. We can assume all elements of A are integers.

Is there any efficient way to partition A into two sets B = $\{b_1,...,b_k\}$ and C = $\{c_1,...,c_l\}$ such that $|(b_1...b_k) - (c_1...c_l)|$ is minimal?

Is the problem anything easier if we let A be a set of strictly positive integers? What if we only let prime numbers?

Jernej
  • 3.5k
  • 1
  • 27
  • 41