Title Details: | |
Prolog's Exolog Features |
|
Authors: |
Sakellariou, Ilias Vasileiadis, Nikolaos Kefalas, Petros Stamatis, Dimosthenis |
Reviewer: |
Tsadiras, Athanasios |
Description: | |
Abstract: |
The chapter presents the so-called extra-logical features of the Prolog language which, although they fall outside of first-order predicate logic (extra-logical), are essential for the development of practical applications. The presentation begins with the closed-world assumption, which allows the implementation of negation as failure. Examples of predicates using not/1, the negation predicate in Prolog, are provided. The chapter continues with the cut predicate, which modifies the behavior of the execution mechanism. Examples of programs are shown where the use of the cut operator changes their semantics (“red” cut), as well as examples where the cut, without changing semantics, improves execution speed (“green” cut), along with the combination of cut and negation. Finally, the chapter concludes with the presentation of streams/files for input-output operations.
|
Type: |
Chapter |
Creation Date: | 2015 |
Item Details: | |
License: |
http://creativecommons.org/licenses/by-nc-sa/3.0/gr |
Handle | http://hdl.handle.net/11419/786 |
Bibliographic Reference: | Sakellariou, I., Vasileiadis, N., Kefalas, P., & Stamatis, D. (2015). Prolog's Exolog Features [Chapter]. In Sakellariou, I., Vasileiadis, N., Kefalas, P., & Stamatis, D. 2015. Logic Programming Techniques [Undergraduate textbook]. Kallipos, Open Academic Editions. https://hdl.handle.net/11419/786 |
Language: |
Greek |
Consists of: |
1. Κώδικας Prolog Κεφαλαίου 9 |
Is Part of: |
Logic Programming Techniques |
Publication Origin: |
Kallipos, Open Academic Editions |