Pseudopolynomial
Pseudopolynomial time is a concept in computational complexity describing algorithms whose running time is polynomial in the numeric value of the input rather than in the length of the input encoding. In other words, the time bound is polynomial in numbers that appear in the instance (such as weights, capacities, or costs). Because the numeric values may require many digits to represent, a pseudopolynomial-time algorithm can be exponential in the input size even though it is polynomial in the data values.
A classic setting involves problems with numeric parameters. For example, the knapsack problem can be solved
The distinction between pseudopolynomial time and true polynomial time depends on the encoding of numbers. Pseudopolynomial
Overall, pseudopolynomial time highlights a boundary between tractable behavior for certain parameter ranges and intractability under