In the context of solving linear programming problems, the distinction between strongly polynomial and weakly polynomial algorithms lies in how their running time depends on the problem's input size and parameters. To understand the difference, we need to consider the key factors that define the input size of a linear program and how the algorithm's performance is measured.
Key Definitions
-
Linear Program (LP):
A linear program is typically expressed as:
[
\text{minimize } c^T x \text{ subject to } Ax \leq b, x \geq 0,
]
where ( A ) is an ( m \times n ) matrix, ( b ) is an ( m )-dimensional vector, ( c ) is an ( n )-dimensional vector, and ( x ) is the ( n )-dimensional vector of variables to be determined.
-
Input Size:
The input size of a linear program is determined by:
- The number of variables ( n ),
- The number of constraints ( m ),
- The bit length ( L ) of the input data (i.e., the total number of bits needed to represent the numbers in ( A ), ( b ), and ( c )).
-
Running Time:
The running time of an algorithm is expressed as a function of the input size. For linear programming, this typically involves ( m ), ( n ), and ( L ).
Strongly Polynomial Algorithm
A strongly polynomial algorithm is one whose running time is:
- Polynomial in the number of variables ( n ) and the number of constraints ( m ),
- Independent of the bit length ( L ) of the input data.
In other words, the running time depends only on the structural size of the problem (i.e., ( m ) and ( n )) and not on the numerical values of the coefficients (which are captured by ( L )). The number of arithmetic operations performed by a strongly polynomial algorithm is bounded by a polynomial in ( m ) and ( n ), and the algorithm does not need to account for the precision or magnitude of the numbers involved.
Example:
- No practical strongly polynomial algorithm for general linear programming is currently known. However, certain special cases of linear programming (e.g., network flow problems) can be solved using strongly polynomial algorithms, such as the minimum-cost circulation problem.
Weakly Polynomial Algorithm
A weakly polynomial algorithm is one whose running time is:
- Polynomial in the number of variables ( n ), the number of constraints ( m ), and the bit length ( L ) of the input data.
This means the running time depends not only on the structural size of the problem (( m ) and ( n )) but also on the numerical complexity of the input, as captured by ( L ). The bit length ( L ) accounts for the size of the numbers in the input (e.g., large coefficients in ( A ), ( b ), or ( c )) and affects the precision required in computations.
Example:
- The Ellipsoid Method (developed by Khachiyan) is a weakly polynomial algorithm for linear programming. Its running time is polynomial in ( m ), ( n ), and ( L ).
- Interior point methods, such as Karmarkar's algorithm, are also weakly polynomial, with running times that depend on ( m ), ( n ), and ( L ).
Key Differences
| Aspect | Strongly Polynomial | Weakly Polynomial |
|---|
| Running Time Dependency | Depends only on ( m ) and ( n ) | Depends on ( m ), ( n ), and ( L ) |
| Numerical Sensitivity | Insensitive to the bit length ( L ) | Sensitive to the bit length ( L ) |
| Practical Examples | Rare for general LP; exists for special cases (e.g., network flows) | Common for general LP (e.g., Ellipsoid, Interior Point) |
| Theoretical Strength | Stronger theoretical guarantee | Weaker theoretical guarantee |
Why the Distinction Matters
-
Theoretical Significance:
- A strongly polynomial algorithm is considered a "holy grail" in linear programming because it would provide a robust solution that is independent of the numerical complexity of the input. This is especially important for problems where coefficients may have very large or very small magnitudes, leading to large ( L ).
- Weakly polynomial algorithms, while still efficient, may become impractical for problems with extremely large ( L ), as their running time grows with the bit length.
-
Practical Implications:
- In practice, weakly polynomial algorithms like interior point methods are highly efficient and widely used, even though their theoretical running time depends on ( L ). This is because ( L ) is often moderate in real-world problems, and these algorithms have excellent average-case performance.
- Strongly polynomial algorithms, if discovered for general linear programming, would provide even stronger guarantees and potentially better performance for problems with large ( L ).
Open Question in Linear Programming
As of now, it remains an open question in theoretical computer science whether there exists a strongly polynomial algorithm for solving general linear programs. The best-known algorithms (e.g., interior point methods) are weakly polynomial, but researchers continue to investigate whether a strongly polynomial algorithm is possible.
Summary
- A strongly polynomial algorithm has a running time that depends only on the structural size of the problem (( m ) and ( n )) and is independent of the numerical complexity (( L )).
- A weakly polynomial algorithm has a running time that depends on both the structural size (( m ) and ( n )) and the numerical complexity (( L )).
- While weakly polynomial algorithms are well-established and practical, the existence of a strongly polynomial algorithm for general linear programming is an open research problem.