Results 1 to 6 of 6
  1. #1
    ala_mages is offline Member
    Join Date
    Nov 2010
    Location
    Greece-Athens
    Posts
    13
    Rep Power
    0

    Question Artificial Intelligence knowledge base in java

    Hi guys:) i have a project(university homework) which tell us to make a knowledge base ( Artificial Intelligence ) and extract logic conclusions in the form of logic sentences.Up to theory i'm ok but i don't have any good idea how i suppose to express(logic sentences) this in java:confused:.can you give me a piece of advice or any example??:)thanks a lot! :D

  2. #2
    couling is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default

    Having not done you're specific your question is a little unclear. You may wish to give a couple of examples of what you mean by "A logical sencence" as I've seen this refer to a few different things in AI.

    I'm going to assume that logical sentences include both facts...:
    a is true
    b is true

    ...and inferences:
    if a is true and b is true then c is true.

    Needles to say you need to be able to represent a fact. This could be as simple a String, or more complex if you need to store a variety if different types of facts.

    An inference (such as the sentence above) could be an object containing a Fact object and a Rule object (see below).


    You will need to break a rule down (not try to swallow it whole), so a rule could at any point be many things:
    • A required fact (if a ... would have a rule simply: requires {a} ).
    • A logical operator such as "and". This will need to contain two further rules for the left and right side (if a and b ... would have a rule: and{requires{a}, requires{b}}).
    • Other logical operators can be added as required.




    I hope this makes at least some sence.
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

  3. #3
    ala_mages is offline Member
    Join Date
    Nov 2010
    Location
    Greece-Athens
    Posts
    13
    Rep Power
    0

    Default

    you're right,i'm sorry that i was unclear before.for example i have a knowledge base : a => b , b => c and from this i want to end up to a => c.i'm a little bit confused about how i'm gonna make this in java.any advice ( like you did before ) would help . thanks a lot.

  4. #4
    couling is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default

    Will you need to use logical operators for OR an AND?
    ie: will you need to represent a rule such as the following?:
    a^b=>c (a and b implies c)

    or will it only be simple runs containing only one item on the left hand side such as the following?:
    a=>c
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,048
    Blog Entries
    7
    Rep Power
    23

    Default

    Maybe the OP likes this short paper.

    kind regards,

    Jos

    ps. there are many more papers on propositional logic proof finders available.
    The only person who got everything done by Friday was Robinson Crusoe.

  6. #6
    ala_mages is offline Member
    Join Date
    Nov 2010
    Location
    Greece-Athens
    Posts
    13
    Rep Power
    0

    Default

    i need to use logical operators OR an AND : a^b=>c (a and b implies c)

Similar Threads

  1. Java developer with ffmpeg knowledge needed
    By u2390j103 in forum Jobs Offered
    Replies: 0
    Last Post: 11-13-2010, 10:43 AM
  2. Java with Data Base
    By Nerijus in forum New To Java
    Replies: 9
    Last Post: 05-21-2010, 11:54 AM
  3. Artificial intelligence coding problems
    By MuslimCoder in forum New To Java
    Replies: 1
    Last Post: 02-26-2010, 04:30 PM
  4. How to find logarithm base 2 value in java
    By RJNARESH in forum Advanced Java
    Replies: 5
    Last Post: 03-19-2009, 11:12 PM
  5. Replies: 0
    Last Post: 06-27-2008, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •