4 ms·
To be fair, the first task of any AI project in Prolog is to implement a different search algorithm. So I don't seem much gain (or loss).
by marcosdumay 8y ago
To be fair, the first task of any AI project in Prolog is to implement a different search algorithm. So I don't seem much gain (or loss).
- YeGoblynQueenne 8y agoI've assisted with the teaching of Prolog at my university (as a TA) and the first task is usually something like the append/3 predicate (used to append two lists, or split them, etc). Last year, the end-of-term exercise involved the farmer-wolf-goat-cabbage problem, which can be (and was) solved just fine with Prolog's built-in depth-first search. I think though you may be talking of forward chaining, rather than depth-first search? That is, indeed a classic exercise in Prolog.