2006--2007
Photographer wanted!
courtesy Mathias Klockenbring (2003-2004)
2005--2006 | 2003--2004 | 2002--2003 | spring 2002 | spring 2001 | fall 2000 | fall 1999
(PG211)
created 23 January 2007 from last year, last edition 3 July 2007
Paul Y Gloess
Lecture 1: Introduction to the module. Presentation of web information (Library, Prolog and Constraint Industry). [Printed version of Slides and Exercise list is available from Ms Marie-Josèphe de Gasquet, computer science secretary: these are old versions, but very close to Library documents.]
Evaluation: 2 hour final test (30%) + mini-project (70%) OR 2 hour final test (70%) + mini-project (30%). Mini-project soon available.
Motivation: Sudoku problem.
Beginning of: LP, introduction, functional versus relational programming, first order logic syntax and semantics, validity of formulas,
Lecture 4: Very brief overview of CHIP constraints (or builtin predicates needed for the N-queen puzzle):
TD 6: Mystery exercise:
Back to Week by Week or Top
Back to Week by Week or Top
| LISP | Pure Prolog | Edimburgh (CHIP) |
| nil () |
n | [] |
| (cons E L) | c(E, L) | [E | L] |
| (U V W) (cons U (cons V (cons W nil))) |
c(U, c(V, c(W, n))) | [U, V, W] [U | [V | [W | []]]] |
| Literal | Informal semantics | Hint |
| app(L, M, LM) | means that LM is the concatenation of lists L and M | Recursive idea: consider two cases for L:
|
| rev(L, LR) | means that LR is the mirror of list L | Usez "app". |
| revapp(L, M, LRM) | means that LRM is the contenation of L mirror and list M | Do not use "app" and "rev"; Use "revapp" only! |
| mem(E, L) | means that E is a member of list L | Recursive idea: there are two cases, but note that empty list n has no member. |
| mem2(E, L) | means the same as memb(E, L) | Non recursive: use "app" and one clause only! |
Back to Week by Week or Top
Back to Week by Week or Top
|
Document
|
|
|
(Acrobat) |
|
|
|
Logic Programming
|
(animation) |
lp.htm (old, OK with any browser) (inanimated) |
|
|
|
|
Constraint Logic Programming
|
(animation) |
(inanimated) |
|
|
|
|
Correctness of Resolution
|
(Word) |
|
Resolution_Adobe.pdf |
|
Resolution_Adobe.ps |
| CLP final test 23 May 2006 |
see CLP final test 23 May 2006 | ||||
|
TD exercises
handout |
(Word) |
|
|
|
|
|
TD exercises
and programs |
|
|
|
|
|
|
CHIP exercise
directory |
|
|
|
|
|
|
Solution of exercise I
|
(Word) |
|
|
|
|
|
Solution to mystery
|
(JPG pictures) |
|
|
|
|
|
Solution to revapp
|
(JPG pictures) |
|
|
|
|
|
CHIP solution
directory |
|
|
|
|
|
|
Getting started
with CHIP |
|
|
|
|
|
|
Chip Documentation
by Cosytec |
|
|
|
|
|
* 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
Back to Top
© Copyright 1999-3000 Paul Y Gloess