Definition
Unary-encoded 0-1-Knapsack Instance
A unary-encoded 0-1-Knapsack instance is a 0-1-Knapsack instance whose numerical fields , , , and, for the decision problem, are represented in unary within a unary instance encoding. Using a self-delimiting representation such as , its encoded length is
where the final term is omitted for the profit-maximisation problem. The item count is exposed by the sequence structure rather than stored as another numeric parameter. In particular, the input contains symbols for the capacity, so iterating over all capacities is polynomial in the encoded input length.