Permalink
Browse files

exercises of the section 1.6

  • Loading branch information...
1 parent 315fe6f commit c60baa7ab393298d6c8258d921e4480b54b1bf95 @fxn committed Jul 2, 2011
Showing with 21 additions and 0 deletions.
  1. +9 −0 chapter01/exercise-1.6.2.pl
  2. +12 −0 chapter01/exercise-1.6.3.pl
@@ -0,0 +1,9 @@
+/* With GEO.PL, which is faster to compute,
+'?- located_in(austin, north_america).' or '?- located_in(austin, usa).'? Why? */
+
+/*
+
+'?- located_in(austin, north_america).' needs to solve '?- located_in(austin, usa).',
+so it will be slower.
+
+*/
@@ -0,0 +1,12 @@
+/* Without using the computer, predict the order in which the Prolog system will find
+the various solutions to the query '?- located_in(X, usa).' Then use the computer to
+verify your prediction. */
+
+/*
+
+X = atlanta ;
+X = houston ;
+X = austin ;
+false.
+
+*/

0 comments on commit c60baa7

Please sign in to comment.