Skip to main content
Log in

Backtracking and random constraint satisfaction

  • Published:
Annals of Mathematics and Artificial Intelligence Aims and scope Submit manuscript

Abstract

The average running time used by backtracking on random constraint satisfaction problems is studied. This time is polynomial when the ratio of constraints to variables is large, and it is exponential when the ratio is small. When the number of variables goes to infinity, whether the average time is exponential or polynomial depends on the number of variables per constraint, the number of values per variable, and the probability that a random setting of variables satisfies a constraint. A method for computing the curve that separates polynomial from exponential time and several methods for approximating the curve are given. The version of backtracking studied finds all solutions to a problem, so the running time is exponential when the number of solutions per problem is exponential. For small values of the probability, the curve that separates exponential and polynomial average running time coincides with the curve that separates an exponential average number of solutions from a polynomial number. For larger probabilities the two curves diverge. Random problems similar to those that arise in understanding line drawings with shadows require a time that is mildly exponential when they are solved by simple backtracking. Slightly more sophisticated algorithms (such as constraint propagation combined with backtracking) should be able to solve these rapidly.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. J.R. Bitner and E.M. Reingold, Backtrack programming techniques, Comm. ACM 18 (1975) 651–655.

    Article  MATH  Google Scholar 

  2. C.A. Brown and P.W. Purdom, An average time analysis of backtracking, SIAM J. Comput. 10 (1981) 585–593.

    Article  MathSciNet  Google Scholar 

  3. K.M. Bugrara, On the average case analysis of some satisfiability model problems, Information Sciences 40 (1986) 21–37.

    Article  MathSciNet  Google Scholar 

  4. J. Franco, On the probabilistic performance of algorithms for the satisfiability problem, Information Processing Letters 23 (1986) 103–106.

    Article  Google Scholar 

  5. J. Franco, Elimination of infrequent variables improves average case performance of satisfiability algorithms, SIAM J. Comput. 20 (1991) 1119–1127.

    Article  MATH  MathSciNet  Google Scholar 

  6. J. Gu, Local search for satisfiability (SAT) problems, IEEE Trans. on Systems, Man, and Cybernetics 23 (1993) 1108–1129.

    Article  Google Scholar 

  7. R.M. Haralick and G.L. Elliot, Increasing tree search efficiency for constraint satisfaction problem, Artificial Intelligence 14 (1980) 263–313.

    Article  Google Scholar 

  8. B. Monien, E. Speckenmeyer and O. Vornberger, Superlinear speedup for parallel backtracking, University of Paderborn Report.

  9. B. Nudel, Consistent-labeling problems and their algorithms: expected-complexities and theory-based heuristics, Artificial Intelligence 21 (1983) 135–178. Also in: Search and Heuristics, ed. J. Pearl (North-Holland, New York, 1983) pp. 135–178.

    Google Scholar 

  10. P.W. Purdom, Jr., Search rearrangement backtracking and polynomial average time, Artificial Intelligence 21 (1983) 117–133.

    Google Scholar 

  11. P.W. Purdom, Jr., Solving satisfiability with less searching, IEEE Trans. on Pattern Analysis and Machine Intelligence PAMI-4 (1984) 510–513.

    Article  Google Scholar 

  12. P.W. Purdom, Jr., A survey of average time analyses of satisfiability algorithms, Journal of Information Processing 13 (1990) 449–455.

    MATH  Google Scholar 

  13. P.W. Purdom, Jr. and C.A. Brown, Polynomial-average-time satisfiability problems, Information Sciences 41 (1987) 23–42.

    Article  MATH  MathSciNet  Google Scholar 

  14. P.W. Purdom, Jr., C.A. Brown and E.L. Robertson, Backtracking with multi-level dynamic search rearrangement, Acta Informatica 15 (1981) 99–113.

    Article  MATH  MathSciNet  Google Scholar 

  15. P.W. Purdom and G.N. Haven, Probe order backtracking, SIAM J. Comput. (in press).

  16. B. Selman, H. Levesque and D. Mitchell, A new method for solving hard satisfiability problems, in: Proceedings of AAAI'92 (1992) pp. 440–446.

  17. Y.K. Tsuji, A systematic selection of efficient strategies for solving satisfiability problems, Ph.D. Thesis, University of California at Santa Cruz (in preparation).

  18. D.L. Waltz, Understanding line drawings of scenes with shadows, in: The Psychology of Computer Vision, ed. P.H. Winston (McGraw-Hill, New York, 1975) pp. 19–91.

    Google Scholar 

  19. P.H. Winston, Machine vision, in: The Psychology of Computer Vision, ed. P.H. Winston (McGraw-Hill, New York, 1975) pp. 1–17.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Purdom, P.W. Backtracking and random constraint satisfaction. Annals of Mathematics and Artificial Intelligence 20, 393–410 (1997). https://doi.org/10.1023/A:1018944814355

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1018944814355

Keywords

Navigation