![]() ![]() ![]() There are well-known examples of symbolic computation whose implementation in other standard languages took tens of pages of indigestible code. Features like this make Prolog a powerful language for artificial intelligence (AI) and non-numerical programming in general. Prolog can now reason about the spatial relationships and their consistency with respect to the general rule. It is also easy to state a more general rule: if object X is closer to the observer than object Y, and Y is closer than Z, then X must be closer than Z. For example, it is an easy exercise in Prolog to express spatial relationships between objects, such as the blue sphere is behind the green one. Prolog is especially well suited for problems that involve objects - in particular, structured objects - and relations between them. This small set constitutes a surprisingly powerful and flexible programming framework. Prolog is a programming language centred around a small set of basic mechanisms, including pattern matching, tree-based data structuring and automatic backtracking. From the preface to Prolog Programming for Artificial Intelligence:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |