chickadee » aima » backtracking-search

Find a solution to the CSP or return failure.

csp
The CSP to solve
(define (backtracking-search csp)
  (let ((enumeration (backtracking-enumeration 1 csp)))
    (if (null? enumeration) failure (car enumeration))))