其他语言

本类阅读TOP10

·基于Solaris 开发环境的整体构思
·使用AutoMake轻松生成Makefile
·BCB数据库图像保存技术
·GNU中的Makefile
·射频芯片nRF401天线设计的分析
·iframe 的自适应高度
·BCB之Socket通信
·软件企业如何实施CMM
·入门系列--OpenGL最简单的入门
·WIN95中日志钩子(JournalRecord Hook)的使用

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
The Tour of Artificial Intelligence

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

    Intruction to AI   

 Artificial Intelligence is a kind of technology for simplifying the solving of problem, esspecially for logic problems.

You may have been heared Eight Qeens , The Tower of Hanoi puzzle , and Chinese chess etc. These problems can solved 
by AI technology easily . A programing language for logic programing is called Prolog ,which means Program
Logicly, You
can Implement your idear  by describing the rules of these problems should obey.  You can download an IDE of prolog
visual prolog on
   http://www.visual-prolog.com. You may ask me how to use prolog. For example, you want describe the
relations between your family, you can write
            declare:                                         //declare predications
                   Father(father, child) ;             // father is child's father
                   Mother(mother, child) ;         //mother is child's mother
                   Sister(girl1, girl2) ;                //girl1 is girl2 's sister
                   Son(partent, boy) ;                //boy is parent'son
                   Daughter(partent, girl)  ;       //girl is parent's daughter
                   isBoy(child) ;                       //child is a boy
                   isGirl(child) ;                       //child is a girl
                   Parent(parent, child) ;         //parent is the parent of the child
          clause:                                          //define the relations between predications
               Father(father, child) :-
                  isBoy(child) ;    
                 Son(father, child) .
               
             Father(father, child) :-
                  isGirl(child) ;    
                 Daughter(father, child) .
             Sister(child1, child2) :-
                Parent(a, child1) ,
                Parent(a, child2),
                isGirl(child1) .
          //the fact
         Sister(Kate, Jim) ;
         Parent(Jam, jim) ;
then run this program, you ask: Parent(Jam, Kate)?
It tell you “yes“.
  (200501172225continued)
                 
          
             




相关文章

相关软件