Prolog Examples
The solutions of the examples are implemented in SWI Prolog.
- 1 Basics
- 1.1 Family Relations
- 1.1.1 Facts
- 1.1.2 Predicates
- 1.1.3 More Family Relations
- 1.2 A Simple Thought (Basic Inference)
- 1.3 A Small World (Knowledge Representation)
- 1.1 Family Relations
- 2 Backtracking
- 3 Lists, Recursion
- 4 Knowledge Representation in Pure Prolog
- 5 Cut und Not, Backtracking
- 5.1 A Tennis Tournament
- 5.2 Three Friends
- 5.3 The Queen Problem
- 5.3.1 Generate and Test
- 5.3.2 Stepwise Generate and Test
- 6 Built-in Predicates
- 7 Problem Solving
- 8 Prolog Potpourri (or Fun with Prolog)
- 9 An Information System
- 10 Rule-based Shell, Diagnosis
- 11 Rule-based Shell, Explanations
- 12 Property-based Shell, Structured-based Diagnosis
- 13 Frames, Inheritance, Demons
- 14 Natural Languages I
- 15 Natural Languages II