counting the number of backtracs

From: zeus (zohar_at_sheernetworks.com)
Date: 03/27/04


Date: 27 Mar 2004 01:01:50 -0800

How can I use assert/retract to count the number of backtracks made in
execution of a predicate?

Thanks,
Zeus



Relevant Pages

  • Re: counting the number of backtracs
    ... zeus wrote: ... > execution of a predicate? ... Unless you don't know what "the number of backtracks" means - and then ...
    (comp.lang.prolog)
  • Re: Command "listing" in SWI prolog
    ... Each operation (assert/retract) ... you do on a predicate you _append_ to a file. ... predicates and some more cases to the reloading code. ...
    (comp.lang.prolog)
  • Re: Denesting
    ... words in a separate execution space, ... commands from the master CPU need not be frequent. ... the simplest and most effective case every predicate and loop count must ... be evaluatable at microcode generation time. ...
    (comp.lang.forth)
  • Re: cross-module asserting/retracting - is this a good thing?
    ... I agree that assert/retract and their kin are regrettable ... procedural warts. ... One important reason for assert/retract across module boundaries is to ... a predicate could interact badly with module boundaries, ...
    (comp.lang.prolog)
  • Re: sql server 2000 - slow record retrieval
    ... Have you checked the execution ... plans to find out the differences between index usage between #1 & #2? ... the outcome of the predicate 0=1 as FALSE without any parameter substitution ... trivial optimization endeavor & is much simpler. ...
    (microsoft.public.sqlserver.programming)