# Do you know of a brute-force algorithm for optimizing polynomial expressions? [closed]

For instance, given the polynomial expression $xy + x + y + 1$ it will output $(x+1)(y+1)$.

Thanks!

## closed as unclear what you're asking by D.W.♦, FrankW, David Richerby, Wandering Logic, vonbrandApr 23 '14 at 16:45

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• You mean factorization, right? – Karolis Juodelė Apr 21 '14 at 6:11

• Are you saying that since you can represent integers with polynomials, for instance $1 + X + X^2$ to represent $7$ (in binary), that finding the optimal polynomial would be a superset of the problem of integer factoring? – Shine On You Crazy Diamond Apr 21 '14 at 18:12