Re: counting the number of backtracs

From: bart demoen (bmd_at_cs.kuleuven.ac.be)
Date: 03/27/04

  • Next message: Martin Sondergaard: "Re: How to parse expressions with parenthesis"
    Date: Sat, 27 Mar 2004 22:22:40 +0100
    
    

    zeus wrote:
    > How can I use assert/retract to count the number of backtracks made in
    > execution of a predicate?
    >
    > Thanks,
    > Zeus

    Your question is very difficult to answer - it resembles the question:
    "how can I use a hammer to put a nail in a piece of wood".
    The question suggests that you are so close to actually doing it, that
    you need no more help.
    Unless you don't know what "the number of backtracks" means - and then
    your question should have been different ...

    ???

    Cheers

    Bart Demoen


  • Next message: Martin Sondergaard: "Re: How to parse expressions with parenthesis"

    Relevant Pages

    • Re: counting the number of backtracs
      ... > zeus wrote: ... >> execution of a predicate? ... what I wanna count is the number of ... constraints checked by a predicate. ...
      (comp.lang.prolog)
    • Re: counting the number of backtracs
      ... > zeus wrote: ... >> execution of a predicate? ... the semantics of assert and retract, so I lack the understanding of ...
      (comp.lang.prolog)
    • counting the number of backtracs
      ... How can I use assert/retract to count the number of backtracks made in ... execution of a predicate? ...
      (comp.lang.prolog)
    • Re: counting the number of backtracs
      ... zeus wrote: ... What is your definition of a "constraint checked by a predicate"? ... Since you asked specifically where the assert and retract go, ... and in case you don't know: reading the manual helps. ...
      (comp.lang.prolog)
    • Re: counting the number of backtracs
      ... In message, zeus ... >constraints checked by a predicate. ... hint as to what you are actually trying to do. ... Nick ...
      (comp.lang.prolog)