Prolog

Using SWI-Prolog

1. Get SWI-Prolog working

2. An example.

Examples and Tutorials

The pages below have links to each other by menu numbers

1. Who owns the zebra? A complex example solved.

2. Introduction to facts and rules and a Prolog query.

3. More facts and rules and a Prolog query.

4. Backtracking and stepping through the code.

5. Tracing a solution to a murder.

6. More for you to do solving the murder.

7. Recursion and a power network.

8. A subscribers network and fault-finding.

9. Monkey and banana - part 1

10. Monkey and banana - part 2

11. Monkey and banana - part 3

12. Lists and recursion - 1

13. Lists - some operations -2

14. Lists - solving monkey and bananas - 3

15. Lists and logic puzzles - easy - 1

16. Lists and logic puzzles - easy - 2

17. Lists and logic puzzles - zebras again.