Adobe PDF (2.85 MB)
Title Details:
The Logic Programming Language Prolog – The Basics
Authors: Stamatopoulos, Panagiotis
Reviewer: Rontogiannis, Panagiotis
Subject: MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES
MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > INTELLIGENT SYSTEMS > BASIC KNOWLEDGE REPRESENTATION AND REASONING
MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES > LOGIC PROGRAMMING
Description:
Abstract:
In this chapter, the initial focus is on how to write Prolog programs that express simple knowledge in the form of facts and rules, and submit queries for problem solving. Following this, there is a discussion on the capability of formulating recursive definitions using Prolog to encode world knowledge in a simple and elegant way. Additionally, the chapter presents the process used in Prolog to compute answers to submitted queries and the backtracking mechanism that is activated when this process reaches a dead end, allowing it to explore alternative proof possibilities. Finally, the main application areas of Prolog are briefly mentioned, along with the two approaches to implementing Prolog systems, via interpreters and compilers.
Type: Chapter
Creation Date: 2015
Item Details:
License: http://creativecommons.org/licenses/by-nc-nd/3.0/gr
Handle http://hdl.handle.net/11419/3589
Bibliographic Reference: Stamatopoulos, P. (2015). The Logic Programming Language Prolog – The Basics [Chapter]. In Stamatopoulos, P. 2015. Logic and Functional Programming [Undergraduate textbook]. Kallipos, Open Academic Editions. https://hdl.handle.net/11419/3589
Language: Greek
Is Part of: Logic and Functional Programming
Publication Origin: Kallipos, Open Academic Editions