如何在人工智能中实现简单的命题逻辑 [英] how to implement Simple propositional logic in artificial intelligence
本文介绍了如何在人工智能中实现简单的命题逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我要实现命题逻辑.我不知道此事项的使用方式和编程语言.
谁可以帮我举个例子?
我感谢能帮助我的人.
Hi all
I want implement the propositional logic. i don''t know how and which programing language using for this Matter.
who could help me with an example?
I thank the person who can help me.
推荐答案
嗨.您可以使用其他类型的语言..
Prolog :声明性逻辑编程语言
Lisp :这是AI编程非常流行的语言
Smalltalk :面向对象的动态类型的反映性
语言.
描述逻辑:知识库(KB)表示语言.
因此,选择取决于您真正想要做什么.我想您可以使用Lisp.请在Google上搜索如何使用和实现您的代码...
改进了一个:
很难在短时间内编写全部代码,您需要进行搜索和学习.
您可以点击此链接.
http://groups.engin.umd.umich.edu/CIS/course.des/cis400/lisp/lisp.html [ ^ ]
http://groups.engin.umd.umich.edu/CIS/course.des/cis400/lisp/hworld.html [ ^ ]
我假设您在这里了解AI的基本原理.剩下的只是学习如何使用语言.开始用Hello World写作...
Hi. You may use different kind of languages..
Prolog: declarative, logic programming language
Lisp: It''s a very popular language for AI programming
Smalltalk: An object-oriented, dynamically typed, reflective
language.
Description logics: Knowledge Base(KB) representation languages.
So, The choice depends on what you really want to do. I guess you can use Lisp. Please, google it how to use and implement your code...
Improved One:
It''s hard to write whole bunch of codes in short time, you need to search and learn yourself.
You may follow this links.
http://groups.engin.umd.umich.edu/CIS/course.des/cis400/lisp/lisp.html[^]
http://groups.engin.umd.umich.edu/CIS/course.des/cis400/lisp/hworld.html[^]
I''m assuming you know the basic priciples of AI here. The rest is just learning how to use the language. Start writing with Hello World...
;;; HWorld.lsp
;;; ================================================== ;;;
;;; =========== HELLO WORLD SIMULATION ============== ;;;
;;; ================================================== ;;;
;;; This function simply returns the string Hello World that is in quotes.
(DEFUN HELLO ()
"HELLO WORLD"
)
玩得开心:)
Have Fun :)
这篇关于如何在人工智能中实现简单的命题逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文