It was shown in the paper "Integer Programming with a Fixed Number of Variables" that integer programmings with constant number of constraints (or variables) are polynomially solvable.
Does this hold for 0-1 programming?
Theoretical Computer Science Stack Exchange is a question and answer site for theoretical computer scientists and researchers in related fields. It only takes a minute to sign up.
Sign up to join this communityIt was shown in the paper "Integer Programming with a Fixed Number of Variables" that integer programmings with constant number of constraints (or variables) are polynomially solvable.
Does this hold for 0-1 programming?
I'm assuming that by "0-1 programming with a constant number of constraints" you mean the following problem:
Maximize some linear function of (x_1, x_2, ..., x_n) subject to the constraints that each x_i is in {0,1} and a constant number of additional linear constraints.
This problem is NP-complete even with 1 additional constraint since 0-1 knapsack can be written in this form.
Lenstra showed in the mentioned paper, that the Integer Linear Programm Feasibility Problem
Given integral matrix $A_{m,n}$ and $b \in \mathbb{Z}^m$.
Is there a $x \in \mathbb{Z}^n$ such that $Ax \le b$ ?
is polynomially solvable, if n or m is constant. (Note the absence of a goal function.) This result is commonly used in the analysis of parameterized problems, i.e. it can be used to prove fixed-parameter-tractability by a reduction.
0-1 integer programming or binary integer programming (BIP) is the special case of integer programming where variables are required to be 0 or 1 (rather than arbitrary integers). This problem is also classified as NP-hard, and in fact the decision version is NP-Complete.
In addition to what Robin said, if I understood the question correctly, if we have a constant number of variables $k$ that can take only the values 0 or 1, a brute force algorithm that tries all $2^k$ possibilities for the variables and checks whether each possibility obeys the constraints would be a polynomial time algorithm.