Valid XHTML 1.1

Prolog Programming
University: Intelligent Systems, Final Year (2010).


Pool Simulation
Prolog Programming
Graphical Techniques
Top Trumps
Guessing Game & Monte Carlo Pi
10 Second Video


Prolog Programming consists of three seperate assessments made during the course of the second semester for my degree's Intelligent Systems module. Each assessment consisted of developing specific predicates. Assessments one, two and three consisted of the following tasks:

Assessment One
  1. Produce a family tree representation for given facts.
  2. Produce predicates to define the relationships between family members.
  3. Produce predicates for infering relationships and testing relationships.
  4. Produce a predicate to determine who is related to who.
  5. Produce a predicate to detect a half-sister relationship.
Assessment Two
  1. Produce a predicate to calculate the modulos of a number.
  2. Produce a predicate to calculate the division of a number.
  3. Produce a predicate to determine the factors of a number.
  4. Produce a predicate to determine the common factors of two numbers.
Assessment Three
  1. Produce a predicate to calculate the mean value of a list.
  2. Produce a predicate to calculate the variance of a list.
  3. Produce a predicate that removes any item from a list.
  4. Produce a predicate to display staff who work under a specififed manager.
  5. Produce a predicate to shuffle a list of cards.
  6. Produce a predicate to produce a number of cards at random from a list.

You can download the pl source files in Rar (2 KB) or Zip (3 KB) format.
Prolog Programming: RAR ZIP


Return to Top