Notes: The code snippet posted in the notes for a definition of
cons
in Prolog was wrong. I updated it in the notes, and here it is so you don't need to dig.
cons(X,Y,[X|Y]).
For the family tree predicates, sibling-hood can be assumed based on simply sharing a single parent. You need not deal with marriage or relatioships not found directly by blood.
Prolog Homework assigned in class today.
Due Weds 2007-04-11 by 11:59pm
Prolog Notes from class today are available online.
Reminder! BACI Homework due tonight before midnight.
Chris will be teaching Prolog in class this coming Friday. In preparation for class please download the Prolog implementation for your OS and attempt to load this file (godzilla.prolog) and then make some queries on it.
% some example queries for predicates defined in 'godzilla.prolog' % oh, btw the percentage sign (%) is the comment syntax in Prolog eats(godzilla,X). % what does Godzilla eat? eats(godzilla,chicken). % does Godzilla eat chicken? carnivore(X). % who is a carnivore?This is to give you some familiarity with the environment, because a Prolog homework will be assigned shortly and we'd like to provide as much help as possible.
See short Prolog tutorial for some starter tips on working in Prolog. This is just an exercise to
help you. Don't fear, Prolog will be covered in class on Friday.
Come, ask questions, get answers!
BACI Homework now due Weds 2007-03-28 by 11:59pm! This gives you 5 extra days!
If you go the jBACI route, here is a little nugget of info.
There is config file that specifies where bacc.exe
is located.
By default it expects the jBACI files to be unzipped into c:\jbaci
.
So try unzipping it to that dir OR, you can edit
(using any text editor) the config.cfg
in the jbaci directory so that the C_COMPILER
parameter is
set to the name of the directory where you placed jBACI.
If you have jBACI in another directory than the one it is configured for, when you press 'Compile' it
will appear to do nothing (in the background it will throw a little error which you can see in the
command line if you run jBACI from the run.bat
).
Silent failure is truly a joy. Sorry I didn't catch this sooner.
BACI Homework posted.
Due: Friday 2007-03-23 Weds 2007-03-28 by 11:59pm.
Also,
Installing &
Configuring the jBaci programming environment (download executable files,
documentation, and example source code).
Note: If the only computer that you have access to is a Mac, here a link to get BACI installed on OS X. It will install the BACI files in
/usr/local/baci/
, and is not as easy to use/setup as the
Windows/Linux jBACI
environment linked to above so I would recommend
using jBACI
on Win/Linux if at all possible. Contact Chris if you need help with getting either
environment setup.
Draft Chapter 13: Concurrency posted.
Notes on the homework:
FFTE
(problem 5).APPEND
to use.Some people reported trouble with the PDF of HW1, here is a text version of Homework 1.
Lisp notes posted. Homework 1 updated, use EQL
instead of EQ
when checking for equality in XMEMBER
.
Homework 1 posted. Due Monday 2007-02-12 by 5:00pm.
How to setup Lisp and Prolog programming environments for this class.
Chapter 10 - Chapter 10 [ppt].
Chapter 1 -
Read the text book.
Chapter 2 -
Lecture 2 [ppt].
Syllabus [doc] online.