News for hackers. Stuff that matters.
Re:The Art of Prolog, Second Edition by newacctjhro on Wednesday October 10, 2018 @06:03PM (#18189329)
Resolution isn't really brute force search, in that it doesn't search all possible solutions at random; the search is directed by the programmer's rules.

But yeah, it involves quite a lot of backtracking, that happens when the resolution engine needs to go back and try something different. When this is a problem you can sometimes use the cut rule http://www.cse.unsw.edu.au/~billw/dictionaries/prolog/cut.ht...

There are no comments on this comment yet.