- From: Gary Hallmark <GARY.HALLMARK@ORACLE.COM>
- Date: Tue, 19 Dec 2006 00:02:49 -0700 (MST)
- To: Francis McCabe <frankmccabe@sandsoft.com>
- Cc: public-rif-wg@w3.org
Received on Tuesday, 19 December 2006 07:03:08 UTC
Doesn't cut just stop the DFS early? So the average and worst case work of the prolog program is still O(size of the transitive closure), but a "goal directed" PR program only does O(size of the answer), which may be much, much less work. This is a consequence of prolog's top-down vs. PR's bottom-up evaluation. We are given a leaf *me*, so prolog still has to search to find the leaf, whereas the PR does not. Cheers, Gary
Received on Tuesday, 19 December 2006 07:03:08 UTC