This is to be done in class and out of class. Your assignment will partially come from the exercises in this tutorial.
Create a diretory called demo-prolog in your class directory. Copy files into this directory from:
~compsci/cis346/demos/prolog
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/intro.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_1.html
In this section, you will be asked to trace a goal statement using the trace/1 facility in prolog. Suppose the goal statement is:
?- adjacent(5,4).
Then the trace/1 utility would be invoked by:
?- trace(adjacent(5,4)).
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/3_1.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_2.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_3.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/3_2.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_5.html
http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/4.html
http://www.binnetcorp.com/BinProlog/