Constraint Logic Programming

2003--2004

Photographer wanted!
courtesy Mathias Klockenbring

2002--2003 | spring 2002 | spring 2001 | fall 2000 | fall 1999

(PG106; PG107)

created 7 November 2003 from last year, last edition 16 January 2004
Paul Y Gloess


Week by week

Back to Top

Week 1 : November 17--21, 2003

TD 1:  Getting started with CHIP ; start writing pure Prolog programs, about family life, exercise VI from sheet (pdf | ps | doc), asking simple queries; continue with exercise VIII on ancestors; experiment with "trace" and "notrace";

Lecture 1: Beginning of: LP, introduction, functional versus relational programming, first order logic syntax and semantics, Prolog, Horn clauses, Prolog problem semantics, substitutions, pure Prolog program syntax and semantics (logical, proof tree, least model, fixed point semantics),

Back to Week by Week or Top


Week 2 : November 24--28, 2003

TD 2: Pure Prolog: recursive predicates and standard Prolog termination, exercises VII from sheet (pdf | ps | doc); since most of these predicates are already defined in CHIP environment, use different names (e.g., "app", "rev", ...) to avoid conflicts; do not use Edimburg list syntax: use your own list constructors, e.g., "c" and "n" for "cons" and "nil";

TP 1 (on project) with G1:

Lecture 2: End of: LP, introduction, functional versus relational programming, first order logic syntax and semantics, Prolog, Horn clauses, Prolog problem semantics, substitutions, pure Prolog program syntax and semantics (logical, proof tree, least model, fixed point semantics), TP 2 (on project) with G1: Back to Week by Week or Top

Week 3 : December 1--5, 2003

TD 3: CLP(FD) with exercises from TP 3 (on project) with G1: Lecture 3: Beginning of: LP, resolution method, unification, Prolog standard linear derivation,search tree of a Prolog problem, real (impure) Prolog, cut, negation by failure; syntactic sugar (list notation), builtin arithmetics and input/output predicates, TP 4 (on project) with G1: Back to Week by Week or Top

Week 4 : December 8--12, 2003

TP 5 (on project) with G1: TD 4: CLP(FD) with exercises from Lecture 4: Beginning of: CLP, motivation and operational semantics, CLP(X) families (for X = Boolean, QLin, FD, trees), constraint satisfaction, delaying non linear constraints, Back to Week by Week or Top

Week 5 : December 15--19, 2003

TD 5: CLP(FD) with Operational semantics of standard Prolog: exercises IV and V from sheet (pdf | ps | doc) on unification and resolution (for VI, use two methods: linear derivation, with backtracking; search tree); look at "revapp.pl" example for termination;
 
Wednesday December 17, 2003, 11:27am, I107

A lot more pictures ... on mystery solution (important for final!)


Lecture 5: End of: CLP, motivation and operational semantics, CLP(X) families (for X = Boolean, QLin, FD, trees), constraint satisfaction, delaying non linear constraints,

Beginning of: CLP, constraint satisfaction, k-consistency, arc-consistency, solving a binary CSP (Constraint Satisfaction Problem): backtracking, GT (Generate and Test), SB (Standard Backtracking), FC (Forward Checking), LA (Look Ahead), CHIP syntax, labeling, length, element, min_max, task scheduling and other global CHIP constraints; Back to Week by Week or Top

Week 6 : January 5--9, 2004

TD 6 : Pure Prolog operational semantics: look at "revapp.pl" example for termination;
see revapp search tree exercise solution
CLP(FD) with exercises from: Lecture 6: End of: CLP, constraint satisfaction, k-consistency, arc-consistency, solving a binary CSP (Constraint Satisfaction Problem): backtracking, GT (Generate and Test), SB (Standard Backtracking), FC (Forward Checking), LA (Look Ahead), CHIP syntax, labeling, length, element, min_max, task scheduling and other global CHIP constraints;


Back to Week by Week or Top


Week 7 : January 12--16, 2004

TD 7: Pure Prolog operational semantics: look at "revapp.pl" example for termination;

CLP(FD) with exercises from:

Lecture 7: Student Questions:
        

Back to Week by Week or Top


Library

We are still in the early times of computer science, where computer scientists struggle with incompatible environments and chaotic computer programs, and make the whole thing even worse by inventing as many "portable" formats as environments. None of these formats deserves this qualifier: they all tend toward an approximation of a truth which yet has to be revealed!
 
Document
Original
Html
PDF
(Acrobat)
Color Postscript 
Black&White Postscript
Logic Programming
lp.ppt (new)
(animation)
lp.htm (new, OK with Internet Explorer only)
lp.htm (old, OK with any browser)

(inanimated)
 lp.pdf (new)
lp.ps (old) *
lp.bw.ps (old) *
Constraint Logic Programming
clp.ppt
(animation)
clp.htm
(inanimated)
 
clp.ps *
clp.bw.ps *
Correctness of Resolution
Resolution.doc
(Word)
 
Resolution.pdf
Resolution_Adobe.pdf
 
Resolution.ps
Resolution_Adobe.ps
TD exercises
handout
exercises.doc
(Word)
 
 exercises.pdf
 
exercises.ps
TD exercises
and programs
td_exercises
 
 
 
 
CHIP exercise
directory
~gloess/chip/clp/exercises/
 
 
 
 
Solution of exercise I
solution_I.doc
(Word)
 
solution_I.pdf
 
solution_I.ps
Solution to mystery
Mystery/
(JPG pictures)
 
 
 
 
Solution to revapp
revapp/
(JPG pictures)
 
 
 
 
CHIP solution
directory
~gloess/chip/clp/solutions/
 
 
 
 
Getting started
with CHIP
Getting started with CHIP
 
 
 
 
Chip Documentation
by Cosytec
 
local CHIP on-line documentation
 
 
 

Use ghostview with Landscape orientation and letter format.

Acrobat Reader: for easy access through your navigator, edit your preferences and associate "acroread %s" handler with "Portable Document Format" application.

Back to Top


Project

The project specification is available since 7 November 2003.

A solution will be made is now (17 December 2003) available from

~gloess/chip/clp/project/2003_2004/solution/ directory.
Please read Copyright Notice carefully before accessing this directory.

Tentative (unofficial) marks will be proposed to the jury and made available.

The project is to be done by teams of three students. The team list is established by Philippe Duchon, see his document entitled "Projets de première année".

Project deadline is Friday 12 December 2003. The project shall be submitted under the two following forms and conditions:

  1. before 4:00pm at Ms Francoise Verdier's office for the printed version;
  2. and by 11:59pm on the appropriate directory opened by Mr Michel Pallard for the electronic version.
The project report may be written in English or French.

Any delay will automatically yield a mark of 0: file last modification date will be matched against the relevant deadline.

Back to Top


Prolog and Constraint Industry

Back to Top

© Copyright 1999-3000 Paul Y Gloess