by nyrikki · 3y ago · 0 comments
Schaefer's dichotomy theorem shows that, when possible, just make sure to use Horn clauses when possible.
Takes a bit of thinking but is superior to huristics or SAT solvers if you can refactor to allow for it.
The syntax looks like Prolog, but predicate negations are a first class citizen, avoids infinite loops.
Prolog's approach is like a depth first search through a search tree -- ASP is like a nondeterministic turing machine, exploring all branches simultaneously from the bottom up.
[1] https://en.wikipedia.org/wiki/Answer_set_programming
[2] https://www.youtube.com/playlist?list=PL7DBaibuDD9O4I05DiQfi...