Prolog - a brief introduction


Click here to start


Table of Contents

Prolog - a brief introduction

What is Prolog?

Components of Prolog

A standard representation

A Prolog program

A simple Prolog program

A trace of a Prolog program

Another view

Inferencing in Prolog

Prolog, by default, uses:

List processing in Prolog

Dissecting lists

Recursion

Recursion eg, a train journey

Adding a boundary condition

The member function

A trace of ‘member’

Some problems with Prolog

Author: GW4