The Source for Java Technology Collaboration
User: Password:
Register | Login help    

Search

Online Books:
java.net on MarkMail:


AI: Using artificial intelligence in standard application development

Posted by alois on January 17, 2006 at 8:01 AM PST
Introduction
I started to think about integrating AI (Artificial Intelligence) in my development after have take a look on the PROLOG language.

PROLOG development
If you have coded in PROLOG, you have understand that PROLOG take problem totally opposite from traditional language.
After having understand PROLOG fundamental, I found that I can replace some code in my application with PROLOG style code and then solve problem with less line code than standard code.

Creating a simple standard AI framework
I found some PROLOG compiler that generate Java class from PROLOG source code, but I don't want to code in PROLOG, I want to use pure Java... so I've got the idea to create a simple project to materialize AI using Java object. The goal is to enable developers to do some simple AI tasks using this framework... Creating object and constrain that react automatically between them and then use the result of this reaction.

An example of problem solving using AI
Let's take a simple problem, a ball moving randomly in a room.
  • Now imagine developing that in a standard way, I think you start to do a Room and a Ball object that include a function to generate random move, after that you need to develop every case that is possible of collision between room and the ball.
  • Using AI you take problem differently, like first case, you create a Room and a Ball object, but you too create a Move object that include random value each time you allocate. Then you simply add constrain that oblige the ball to stay in the room. When running the artificial brain evaluate constrain and when a new move is created, the brain check if the ball stay in the room automatically.

Conclusion
This is a really simple example, and it's not necessary take less line to code it in pure Java than PROLOG style. But just imagine complex problems, with lots of causes and purposes, I’m sure AI development can make developers solve problems faster with less lines of code! I'm thinking about starting new project to make use of AI power easier (but I’m still working hard on the UniNet Project), so if you interested to help me or you already know a similar project, just send a comment.
Related Topics >> Extreme Programming      
Comments
Comments are listed in date ascending order (oldest first)