Where the Really Hard Problems Are

P. CheesemanB. KanefskyW. Taylor

article1991IJCAI1,391 citations

Reveals that computationally hard instances of NP-complete problems concentrate along a phase transition boundary between underconstrained and overconstrained regions, providing an order-parameter framework to predict search difficulty and distinguish hard instances from typically easy ones.

Listen

Many complex computational problems, such as scheduling, routing, and resource allocation, are classified as theoretically hard in the worst case, yet typical real-world instances are often solved quickly. The article addresses the fundamental question of where the truly hard problem instances reside and whether their occurrence can be predicted systematically.

The main objective of the article is to demonstrate that computationally intractable instances across major hard problem classes occur at sharp phase transitions defined by critical values of macroscopic order parameters. It aims to establish that problem hardness is not an unpredictable phenomenon, but rather a localized structural boundary separating fundamentally different problem regions.

To evaluate this relationship, the article conducts empirical computational experiments across multiple classic problem types, including Hamilton circuits, graph coloring, satisfiability, and the traveling salesman problem. The methodology relies on generating problem instances across varied structural parameter ranges, applying systematic preprocessing reduction rules to eliminate trivial subproblems, and measuring computational search effort using established exact algorithms such as backtrack search and heuristic branching.

The article identifies several key findings. First, computationally hard instances are concentrated at a critical threshold of an underlying order parameter, such as average graph connectivity or cost matrix variance. Second, this critical threshold forms a phase transition where the probability of finding a valid solution shifts precipitously from near one to near zero; underconstrained regions have abundant solutions and overconstrained regions allow search algorithms to prune failures rapidly. Third, the surge in computational difficulty at the boundary is caused by a proliferation of near-solutions or local minima, which cause local-search and backtrack algorithms to thrash. Fourth, the sharpness of this phase transition and the magnitude of computational cost increase significantly with problem size. Finally, these critical phase boundaries are preserved when problems are mathematically mapped into equivalent formulations, whereas easy polynomial problems either lack such transitions or have them confined to small, fixed problem sizes.

These findings provide practical implications for system performance, risk assessment, and algorithmic design. Understanding where phase transitions occur allows organizations to predict computational bottlenecks before deploying solvers for mission-critical logistics or optimization tasks. Rather than assuming all instances of a complex problem class will demand exponential computing time, decision-makers can determine whether a specific operational problem sits safely away from the phase boundary or requires specialized handling.

The source supports several actionable recommendations. System designers should incorporate rigorous preprocessing and reduction techniques into solver pipelines, as problem reduction alone resolves many seemingly difficult cases without search. For problems near critical phase boundaries, engineering teams should deploy randomized parallel search strategies to mitigate algorithm thrashing caused by high performance variance. Furthermore, operational requirements can be designed with constraints that intentionally shift problem instances away from critical parameter regions, effectively rendering them computationally tractable.

The findings carry strong empirical confidence across the evaluated constraint satisfaction and routing domains, but several boundaries remain. The results depend heavily on the specific order parameters studied and on exact reduction techniques. Readers should exercise caution when extrapolating these observations to unstudied problem domains, such as complex multi-agent optimization, game theory, or broader classes of optimization problems that may exhibit alternative phase behaviors.

Cheeseman et al (1991).pdf

No sufficiently relevant recommendations were found.

Cover for Where the Really Hard Problems Are

Abstract

It is well known that for many NP-complete problems, such as K-Sat, etc., typical cases are easy to solve; so that computationally hard cases must be rare (assuming P = NP). This paper shows that NP-complete problems can be summarized by at least one "order parameter", and that the hard problems occur at a critical value of such a parameter. This critical value separates two regions of characteristically different properties. For example, for K-colorability, the critical value separates overconstrained from underconstrained random graphs, and it marks the value at which the probability of a solution changes abruptly from near 0 to near 1. It is the high density of well-separated almost solutions (local minima) at this boundary that cause search algorithms to "thrash". This boundary is a type of phase transition and we show that it is preserved under mappings between problems. We show that for some P problems either there is no phase transition or it occurs for bounded N (and so bounds the cost). These results suggest a way of deciding if a problem is in P or NP and why they are different.

In this paper we show that for many NP problems one or more "order parameters" can be defined, and hard instances occur around particular critical values of these order parameters. In addition, such critical values form a boundary that separates the space of problems into two regions. One region is underconstrained, so the density of solutions is high, thus making it relatively easy to find a solution. The other region is overconstrained and very unlikely to contain a solution. If there are solutions in this overconstrained region, then they have such deep local minimum (strong basin of attraction) that any reasonable algorithm is likely to find it. If there is no solution, then a backtrack search can usually establish this with ease, since potential solution paths are usually cut off early in the search. Really hard problems occur on the boundary between these two regions, where the probability of a solution is low but non-negligible. At this point there are typically many local minima corresponding to almost solutions separated by high "energy barriers". These almost solutions form deep local minima that may often trap search methods that rely on local information.

Because it is possible to locate a region where hard problems occur, it is possible to predict whether a particular problem is likely to be easy to solve. We expect that in future computer scientists will produce "phase diagrams" for particular problem domains to aid in hard problem identification and for prediction of solution existence probability, such as shown in [6]. We present these ideas by first showing how phase transitions arise in problem solving, and then illustrating particular transitions through several examples with different properties.

Table of Contents

  • 1. Introduction
  • 2. Phase Transitions
  • 3. An Example: Hamilton Circuits
  • 4. An Example: Graph Coloring
  • 5. An Example: K-Satisfiability
  • 6. An Example: Traveling Salesman
  • 7. Mappings Between Problems
  • 8. Discussion
  • 9. Conclusions and Conjectures
  • Acknowledgements
  • References

Knowls

  1. Knowl 1 — Phase Transition Conjecture for NP-Complete Problems

    theoretical result

    All NP-complete problems can be characterized by one or more macroscopic order parameters (such as constraint-to-variable ratio or average graph connectivity). Computational hardness is concentrated around a critical value of this order parameter, which marks a phase transition separating two qualitatively different regions:

    1. An underconstrained region, where constraints are sparse, the density of solutions is high, and a solution is easy to find.
    2. An overconstrained region, where constraints are dense, solutions are extremely rare or nonexistent, and backtrack search can quickly prove unsatisfiability because dead ends occur near the top of the search tree.

    At the critical threshold separating these regimes, the probability of a solution existing drops abruptly from near 11 to near 00, and the average computational cost of finding a solution (or proving none exists) reaches a sharp maximum.

  2. Knowl 2 — Phase Transition Characterization of Complexity Classes P and NP

    theoretical result

    The structural distinction between polynomial-time (PP) and NP-complete problems can be formulated in terms of phase transition behavior:

    • NP-complete problems possess phase transitions where the critical boundary persists or shifts with problem size NN (e.g., at average connectivity ln⁡N+ln⁡ln⁡N\ln N + \ln \ln N for Hamilton Circuits or at fixed critical connectivities for KK-colorability), producing exponentially hard instances for arbitrarily large NN.
    • Problems in class PP either contain no phase transition or exhibit a phase transition only for fixed, bounded NN, which bounds the maximum computational cost.

    For example, in the NN-Queens problem (a known PP problem), the number of variables scales as N2N^2 while constraints scale as O(N)O(N). Consequently, average variable connectivity decreases with increasing NN, and an overconstrained-to-underconstrained transition occurs only at N=4N = 4.

  3. Knowl 3 — Landscape Mechanism of Search Thrashing at Phase Boundaries

    model/method

    The dramatic surge in computational cost (search thrashing) at the critical phase boundary is caused by the topology of the solution space. At the critical threshold:

    • The density of true solutions is very low, but the density of "almost solutions" (deep local minima satisfying nearly all constraints) is high.
    • These near-solutions are separated by large Hamming distances (requiring many variable reassignments to move from one to another) and high energy/constraint barriers.
    • Local-heuristic and backtrack search algorithms are repeatedly misled by partial assignments that appear consistent until almost all variables are instantiated, forcing the search to backtrack extensively (often to the root of the search tree) and explore many false leads.
  4. Knowl 4 — Polynomial Reduction Operators for Graph K-Colorability

    algorithm

    To identify intrinsically hard instances and remove trivial structures without performing search, graph KK-colorability problems are simplified using three reduction operators applied iteratively until no further reductions are possible:

    Input: Graph G = (V, E), integer K >= 2
    Output: Reduced graph G'
    repeat
        if exists v in V with degree deg(v) < K then
            remove vertex v from V (and all its incident edges)
        else if exists u, w in V such that (u, w) not in E and Neighbors(u) is a subset of Neighbors(w) then
            remove vertex u from V (u is subsumed by w)
        else if exists subset S of V of size >= 2 such that every s in S is fully connected to a clique C of size K - 1 then
            merge all vertices in S into a single composite vertex inheriting all neighbor constraints of S
        else
            break
    until V is empty or no rule applies
    return G

    If the reduced graph is empty, the original graph is trivially KK-colorable; if it contains a clique of size greater than KK, it is trivially uncolorable. Applying these operators prevents trivial subproblems from diluting the hard instances at the critical connectivity boundary.

  5. Knowl 5 — Phase Transition in Graph K-Colorability

    empirical result

    For reduced random graphs, KK-colorability displays a sharp phase transition parameterized by the average node connectivity γ=2∣E∣/N\gamma = 2|E|/N:

    • The probability that a graph is KK-colorable drops sharply from near 11 to near 00 at a critical threshold γc\gamma_c, where γc\gamma_c increases with KK (e.g., γc≈5.4\gamma_c \approx 5.4 for 33-colorability on reduced graphs).
    • The computational cost of finding a valid coloring (e.g., using Brélaz's heuristic backtrack algorithm) peaks sharply at γc\gamma_c, forming an easy-hard-easy pattern across the range of average connectivity.
    • The sharpness of both the solvability drop and the cost peak increases as the number of nodes NN increases.
  6. Knowl 6 — Phase Transition and Critical Threshold in Hamilton Circuit Existence

    empirical result

    For random graphs with NN vertices, the existence and search cost of a Hamilton Circuit (HC) is governed by the average node connectivity γ\gamma:

    • The probability that a random graph contains a Hamilton Circuit undergoes a sharp phase transition from 00 to 11 around the theoretical threshold:

    γc=ln⁡N+ln⁡ln⁡N\gamma_c = \ln N + \ln \ln N

    • The computational cost of backtrack search procedures peaks sharply at this threshold. In the low-connectivity regime (γ<γc\gamma < \gamma_c), non-existence is quickly verified because dead ends occur near the start of the search tree. In the high-connectivity regime (γ>γc\gamma > \gamma_c), Hamilton circuits are dense and easily located. At the boundary γc\gamma_c, the size of the largest almost-complete cycle grows exponentially, maximizing search cost.
  7. Knowl 7 — Cost-Matrix Variance as an Order Parameter in the Traveling Salesman Problem

    empirical result

    In the Traveling Salesman Problem (TSP), a combinatorial minimization problem, the standard deviation σ\sigma of the edge cost matrix (for a fixed mean cost) acts as the order parameter governing computational difficulty for exact branch-and-bound algorithms (such as Little's algorithm):

    • When σ→0\sigma \to 0, edge costs are nearly homogeneous, resulting in many tours of identical minimal cost, which makes finding an optimal tour computationally easy.
    • When σ\sigma is large, the optimal tour is heavily constrained to the low-cost tail of the distribution, allowing branch-and-bound pruning to quickly discard higher-cost edges.
    • Computational difficulty peaks at an intermediate value of σ\sigma, where a high density of distinct, near-optimal tours creates deep local minima and forces extensive exploration of competing search branches.
  8. Knowl 8 — Phase Transition Behavior in K-Satisfiability

    empirical result

    In KK-satisfiability (KK-SAT), problem difficulty is governed by the clause-to-variable ratio (average variable connectivity):

    • For 33-SAT (an NP-complete problem), the probability of satisfiability drops sharply from 11 to 00 at a critical clause density threshold, and backtrack search cost reaches a pronounced peak at this same threshold.
    • For 22-SAT (a problem solvable in polynomial time), no exponential cost phase boundary occurs.
    • For large random KK-SAT problems with higher KK, hard instances become diluted by trivial structures unless effective reduction operators are applied.
  9. Knowl 9 — Preservation and Dilution of Critical Boundaries Under Problem Reductions

    theoretical result

    Polynomial reductions between decision problems interact directly with order parameters and phase boundaries:

    • When hard instances of reduced KK-colorability are mapped to KK-SAT by introducing Boolean variables for node-color assignments and translating constraints to CNF clauses, the mapped instances remain within the critical, computationally hard region of the KK-SAT space.
    • When instances of a PP problem are embedded into an NP-complete problem space (such as reducing 22-SAT to 33-SAT by transforming a clause (a∨b)(a \lor b) into (a∨b∨x)∧(a∨b∨¬x)(a \lor b \lor x) \land (a \lor b \lor \neg x)), the reduction introduces auxiliary variables that appear in very few clauses. This dilutes the variable connectivity, shifting the problem instances strictly below the critical threshold of the target NP space and ensuring they remain easy to solve.

Coverage note — Specific details of prior algorithms (such as Brélaz's coloring heuristic and Little's TSP algorithm) and open speculative questions listed in the discussion were omitted because they represent background or future work rather than core contributions of the paper.

References

  1. 1.Bollobas, B. "Random Graphs", Academic Press, London, 1985.
  2. 2.Fu, Y. "The Uses and Abuses of Statistical Mechanics in Computational Complexity", in " Lectures in the Sciences of Complexity", Ed, D, L. Stein, pp 815-826, Addison Wesley, 1989.
  3. 3.Garey M. R, and Johnson D. S., "Computers and Intractability': A Guide to the Theory of NP-Completeness", Freeman, 1979.
  4. 4.Huberman, B. A. and Hogg, T., "'Phase Transitions in Artificial Intelligence Systems", Artificial Intelligence, 33, 155-171, 1987.
  5. 5.Karp, R. M. and Pearl, J., "Searching for an Optimal Path in a Tree with Random Costs" 9, Artificial Intelligence , (1,2), 99-116, 1983.
  6. 6.Purdom, P. W., "Search Rearrangement Backtracking and Polynomial Average Time", Artificial Intelligence , 2 1 (1,2), 117-134, 1983.
  7. 7.Kirkpatrick, S. and Swendsen, R. H., "Statistical Mechanics and Disordered Systems", Comm. ACM, 28, 4, 363-373, April 1985
  8. 8.Little, J. D. C, et al., "An Algorithm for the Traveling Salesman Problem", O.R.S.A., 11, 972-989, 1963.
  9. 9.Minton, S. et al, "Solving Large-Scale Constraint Satisfaction and Scheduling Problems Using a Heuristic Repair Method", Proc. 8th. Nat. Conf. on A.I. (AAAI-90), 17-24, 1990.
  10. 10.Turner, J. S., "Almost All k-Colorable Graphs are Easy to Color", Journal of Algorithms, 9: 63-82, 1988.

Citation

MLA
Cheeseman, P., et al. “Where the Really Hard Problems Are”. International Joint Conference on Artificial Intelligence, 1991, pp. 331–37, http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.3552.
APA
Cheeseman, P., Kanefsky, B., & Taylor, W. M. (1991). Where the really hard problems are. International Joint Conference on Artificial Intelligence, 331–337. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.3552
Chicago
Cheeseman, P., B. Kanefsky, and W. M. Taylor. 1991. “Where the Really Hard Problems Are”. International Joint Conference on Artificial Intelligence, 331–37. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.3552.
Harvard
Cheeseman, P., Kanefsky, B. and Taylor, W.M. (1991) “Where the really hard problems are”, International Joint Conference on Artificial Intelligence, pp. 331–337. Available at: http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.3552.
Vancouver
1. Cheeseman P, Kanefsky B, Taylor WM (1991) Where the really hard problems are. International Joint Conference on Artificial Intelligence 331–337

BibTeX

@article{cheeseman1991where,
  title = {Where the really hard problems are},
  author = {Cheeseman, Peter and Kanefsky, Bob and Taylor, William M.},
  year = {1991},
  journal = {International Joint Conference on Artificial Intelligence},
  pages = {331-337},
  url = {http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.3552}
}
Metadata:DOI registry

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF