| |
| | [No title] |
 | | ;;;; Top-Level Functions (defun prefix->cnf (p &optional vars) "Convert a sentence p to conjunctive normal form [p 279-280]." ;; That is, return (and (or...)...) where ;; each of the conjuncts has all literal disjuncts. |
 | | (conjuncts q))) (warn "~A, converted to ~A, is not a Horn clause." p q)) q)) ;;;; Auxiliary Functions (defun cnf1->inf1 (p) ;; P is of the form (or (not a) (not b)... |
 | | ,s1,s2)) ;;; Indexed cnf representation for efficient implementation of propositional algorithms ;;; An icnf instance represents its symbols by the integers 0,1,...,n-1 ;;; and numbers its clauses by integers 0,1,...,m-1. |
| www.cs.berkeley.edu /~russell/classes/cs289/f04/assignments/sat289.lisp (1167 words) |
|