Module 17 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
- Download SWI-Prolog
- SWISH Interactive Online Prolog
- Learn Prolog Now! online book
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.
Programming Assignment
Please complete the project and submit your code on Canvas by the due date.