ITEC 380 - Chapter 15 Notes - Prolog

  • PROLOG = PROgramming in LOGic

  • Programming in Prolog

  • Program components

  • Example 1: Family Facts and Rules, Sample run

  • Unification and resolution

  • Example 2: Vegetable Facts and Rules

  • Example 2 continued: Solving a sample query

  • The Syntax of Prolog programs (Atoms, variables, etc)

  • Some details on Prolog solves queries.

  • Example 3: Factorial

  • Example 4: Fibonacci

  • cut and fail

  • not

  • List matching and User Input

  • Some list functions

    Last modified on