The complexity of constraint satisfaction in prolog

  • Authors:
  • Bernard A. Nadel

  • Affiliations:
  • Department of Computer Science, Wayne State University, Detroit, Michigan

  • Venue:
  • AAAI'90 Proceedings of the eighth National conference on Artificial intelligence - Volume 1
  • Year:
  • 1990

Quantified Score

Hi-index 0.00

Visualization

Abstract

We obtain here the complexity of solving a type of Prolog problem which Genesereth and Nilsson have called sequential constraint satisfaction. Such problems are of direct relevance to relational database retrieval as well as providing a tractable first step in analyzing Prolog problem-solving in the general case. The present paper provides the first analytic expressions for the expected complexity of solving sequential constraint satisfaction problems. These expressions provide a basis for the formal derivation of heuristics for such problems, analogous to the theory-based heuristics obtained by the author for traditional constraint satisfaction problem-solving. A first application has been in providing a formal basis for Warren's heuristic for optimally ordering the goals in a conjunctive query. Due to the incorporation of "constraint looseness" into the analysis, the expected complexity obtained here has the useful property that it is usually quite accurate even for individual problem instances, rather than only for the assumed underlying problem class as a whole. Heuristics based on these results can be expected to be equally instance-specific. Preliminary results for Warren's heuristic have shown this to be the case.