is this task good for Prolog ?

From: Andy (djANTISPAMhd_at_computerman.de)
Date: 06/17/04

  • Next message: Oskar Bartenstein: "Re: mod_prolog or equivalent?"
    Date: Thu, 17 Jun 2004 18:10:04 +0200
    
    

    Hello everybody,

    I would like to know is good for the following task or I should stick with
    traditional C++ approach.
    I have a list of operators:

    1. Reads A, changes D
    2. Reads B, changes C
    3. Reads A, changes C
    4. Reads C, changes B
    5. Reads D, changes A

    The program should find that operator 2 is not needed, because the following
    operator 3 does not use C but also changes C. This means that operator 2 was
    useless.

    I also want that program discovered that operator 5 can be also placed after
    operator 3 because D is changed in the very begining and last time A used
    for reading is at 3rd operator.

    How do you think is Prolog a right tool for it ?


  • Next message: Oskar Bartenstein: "Re: mod_prolog or equivalent?"

    Relevant Pages

    • Re: Problem with SWI Prolog
      ... When p is a not recursive it is equivalent with the reading ... This is because Prolog includes the Closed World Assumption in its ... In case of negation and recursion, the if and only if reading/inference ... Prolog is not FOL and FOL is not Prolog. ...
      (comp.lang.prolog)
    • Re: Non-Blocking reading from terminal
      ... I am new to this group and, first of all, i want to congratulate ... all of you for the really nice information about Prolog you manage. ... reading and put the characters in a message queue. ...
      (comp.lang.prolog)
    • Re: Problem with SWI Prolog
      ... yet not totally precise. ... Actually you read Prolog ... > When p is a not recursive it is equivalent with the reading ... of the Canidian Bagle Breeder's Association. ...
      (comp.lang.prolog)
    • Re: The Invention of Porno Torture
      ... After reading your whole article, I am begining to wonder if the whole torture thing is all blown up. ...
      (soc.culture.malaysia)
    • Re: Question about fopen() and r+
      ... pointer to the begining of the file for reading, ... 'r+' Open for reading and writing; ... pointer at the beginning of the file. ...
      (comp.lang.php)