Module 06 Study Guide
Learning Objectives (Prolog, CPL Ch.16)
- Write Prolog predicates that use lists and pattern matching
- Write Prolog predicates that use the
is
predicate, integer arithmetic, and integer comparisons - Understand how the Prolog interpreter’s inference engine works and how the ordering of clauses can affect performance
- Write recursive predicates on trees in Prolog using list tuples
Resources
- CPL Chapter 16
- Learn Prolog Now! online book
- The Power of Prolog online book
- GNU Prolog Manual
- SWISH Interactive Online Prolog
Lab
Please complete the lab. You may begin it any time. You should try to finish it by Wednesday so you can start working on the programming assignment in class on Wednesday (please bring your computer).
Programming Assignment
Please complete the project and submit your code on Canvas by the due date.