浅谈Prolog在教育教学中的运用
2018-01-17王佳楠
摘 要:Prolog作为一种逻辑语言广泛被运用于人工智能和专家系统中。不同于其他编程语言,Prolog类似自然语言的语法使它更容易被读懂和理解,因此它被认为可能是一种出色的帮助学习逻辑知识的工具,一些科学家已经通过实验证明了Prolog甚至可以很好的被儿童运用和学习,本文将延续这个思路,回顾过往实验和结果,结合数学中几何证明问题的例子,提出将Prolog运用于教育,尤其是面向非计算机专业相关人员进行逻辑相关问题的学习上的可能性和优势。
关键词:Prolog;教育;几何证明
中图分类号:TP311.1 文献标识码:A
Abstract:As a famous logic programming language,Prolog is widely used as an AI language and a great tool to design expert systems.Different from other programming languages,Prolog is expressed as a natural language,which makes it much easier to read and understand.Therefore,it is a great tool for teaching logic.Results of scientific experiments have shown that Prolog can even be used and learned by children.Following this idea,the paper reviews some previous experiments and their results.Combined with some examples of using Prolog to handle geometric proof problems,the paper proposes the possibilities and advantages of using Prolog in education,especially in the field of helping nonprogrammers and laypersons to study logic.
Keywords:Prolog;education;geometric proof
1 引言(Introduction)
Prolog是“Programming in Logic”的縮写,这个名字的由来指明了这是一种逻辑编程语言。最初它经常被运用于自然语言处理等研究领域,而现如今,它更多的和AI或计算语言学联系在一起。尽管AI是目前最前沿的计算机技术之一,Prolog本身却并未深奥的令人望而却步,与此相反,它比人们想象中更容易理解。
第一个Prolog系统诞生于1972年,这也使它成为世界上最早的逻辑编程语言之一。之后Prolog在北美洲和欧洲被广泛运用,在日本,Prolog也被赋予重任,被运用构建第五代ICOT计算机系统。在智能系统研究领域,Prolog一直担任着重要开发工具的角色。
2 文献综述(Literature review)
1980年,Prolog首次被Kowalski建议可以为儿童所用[1]。从1981年开始,有多个将Prolog运用在教育上的实验项目陆续展开[2],1986年,一个命名为Prolog教育小组(PRG)建立,他们提供了多种工具组和系统供学校使用,以此进行了数个相关实验[3]。1987年,Prolog被PRG的组织者之一Jon Nichol明确指出可以作为杰出的教育工具。……
