TL;DR
This paper tackles the tractability concerns of multi-way dataflow constraints, which are crucial for interactive applications. The authors provide a theoretical classification of these problems, proving that the constraint planning problem handled by the SkyBlue system is NP-hard, and that the presence of cyclic solutions doesn't affect complexity when the method restriction is imposed.
What Problem Does This Paper Address?
Interactive applications, like graphical user interfaces and spreadsheets, often rely on dataflow constraints to simplify programming. While one-way dataflow constraints are well-understood and efficiently handled, multi-way dataflow constraints, which offer greater expressiveness, have been hampered by concerns about their computational complexity. Different algorithms exist for solving these problems, but a clear understanding of which problems are computationally difficult and why has been lacking. This paper aims to fill that gap by providing a theoretical classification of the computational complexity of various multi-way constraint planning problems.
Methods
The paper's core contribution lies in its theoretical analysis of constraint planning problems. The authors introduce a novel polynomial reduction from the "Exact Cover by 3-Sets" problem to the constraint planning problem (specifically, CP2, which is handled by SkyBlue). This reduction is a key technique for proving NP-completeness. They also introduce a "method transformation" to analyze the impact of the "method restriction" (where constraints must use all variables as either input or output) on computational complexity, particularly in the presence of cyclic solutions.
Datasets
Not discussed in the paper. The paper focuses on theoretical complexity analysis rather than empirical evaluation on specific datasets.
Key Insights and Ideas
- SkyBlue is NP-hard: The paper proves that the constraint planning problem handled by SkyBlue, a popular system for multi-way dataflow constraints, is NP-hard. This explains why SkyBlue can exhibit exponential worst-case behavior.
- Cyclic Solutions Don't Always Increase Complexity: When the "method restriction" is imposed, the presence of cyclic solutions in the constraint graph does not increase the computational complexity of the planning problem. This is a significant finding, as it simplifies the analysis of certain problem classes.
- Method Restriction's Impact Varies: The paper clarifies how the "method restriction" affects complexity. For acyclic constraint graphs, the method restriction is crucial in distinguishing between polynomial and NP-complete problems. However, for cyclic graphs, its impact is negligible.
- A Simple Rule for Tractability: The authors propose a straightforward rule to determine if a constraint planning problem is likely in P (polynomial time), based on whether the constraint graph contains cycles and whether acyclic solutions are expected.
Key Results
- Theorem 1: The problem of finding a valid method graph for a dataflow constraint system with the method restriction is NP-complete. This is demonstrated via a reduction from "Exact Cover by 3-Sets."
- Theorem 2: The problem of finding a valid method graph for a dataflow constraint system with methods having at most two outputs is NP-complete.
- Theorem 3: The computational complexity of constraint planning problems is insensitive to the method restriction when cyclic solutions are allowed. The problem classes Pc and P'c (with and without the method restriction, respectively) are polynomially equivalent.
- Table 2: The paper provides a comprehensive table summarizing the computational complexity of various constraint planning problems, filling in previously unknown complexities. Notably, CP2 (SkyBlue's problem) is identified as NP-complete.
Limitations and Future Work
- NP-completeness of SkyBlue: While the paper proves SkyBlue's problem is NP-hard, it leaves open whether it is in NP when handling constraint hierarchies, a common type of preferential constraint.
- Practical Implications: The authors suggest that these theoretical results can help designers create multi-way constraint systems that balance expressiveness and performance.
- Further Exploration: The paper hints at the companion paper [Trombettoni and Neveu, 1997] which explores instances of "constraint-planning" that only have cyclic solutions, suggesting further avenues for research.
Summary updated