Posts

Prolog tutorial

Introduction to prolog Setting up prolog Hello World Program Basic constructs in Prolog How to create facts in prolog? Prolog: Variables Unification Conjunctions Rules Prolog program Prolog: Constants Prolog: Variables Prolog: Structures Unifying operator (=) Arithmetic Operators Convert centigrade to farenheit Prolog: =:= (equal to), =\= (not equal to) operators Prolog: Example Program with players information Get the population of cities in a country Prolog: //: Get integer quotient on division Prolog: mod: Get the reminder Lists Prolog: Check for existence of an element in the list Get size or length of the list Prolog: Check whether given element is list or not Prolog: Why to define facts before rules Prolog: convert list of characters to list of integers Prolog: Append elements of a list