Programming Languages (CS302 2006S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[CSC302 1999S]
Back to Logic Programming (1). On to Logic Programming (3).
Held: Wednesday, April 19, 2006
Summary: Today we consider the basics of the Prolog logic programming language.
Related Pages:
Notes:
Overview:
took(Person,Course)
indicates that Person took a
particular course.
prereq(PreReq,Course)
indicates that PreReq is
a PreReq for Course.
took
and prereq
?
add([],X,X). add([1|X],Y,[1|Z]) :- add(X,Y,Z).
{ foo(f(X0),X0); foo(X1,f(X1)) }
f(X0)
vs X1
.
f(X0)
for X1
{ foo(f(X0),X0); foo(f(X0),f(f(X0)) }
X0
vs. f(f(X0))
{ foo(f(f(f(X0)),f(f(X0))); foo(f(f(f(X0))),f(f(f(f(X0)))) }
Back to Logic Programming (1). On to Logic Programming (3).
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[SamR]
[CSC302 1999S]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Wed May 10 09:03:03 2006.
The source to the document was last modified on Thu Jan 12 09:00:38 2006.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS302/2006S/Outlines/outline.32.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby