0% found this document useful (0 votes)
236 views4 pages

Basic Elements of Prolog

The document discusses the basic elements of Prolog, which include terms, fact statements, and rule statements. A term can be a constant, variable, or structure. Fact statements represent propositions that are assumed true, while rule statements represent rules of implication between propositions. Examples of a fact statement and rule statement are provided.

Uploaded by

balakumareurekha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
236 views4 pages

Basic Elements of Prolog

The document discusses the basic elements of Prolog, which include terms, fact statements, and rule statements. A term can be a constant, variable, or structure. Fact statements represent propositions that are assumed true, while rule statements represent rules of implication between propositions. Examples of a fact statement and rule statement are provided.

Uploaded by

balakumareurekha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Basic elements of Prolog

Some of the basic elements of Prolog are:

1. Term
2. Fact statements
3. Rule statements

1. Term: A Prolog term is a constant, a variable, or a structure.


A constant is either an atom or an integer.
Atoms are the symbolic values of Prolog and are similar to their counterparts in LISP. In
particular, an atom is either a string of letters, digits, and underscores that begins with a
lowercase letter or a string of any printable ASCII characters delimited by apostrophes.
2. Fact statements: A fact statement is simply a proposition that is assumed to be true.
For example:

female(khushi). , it states Khushi is a female.


mother(varsha, khushi). , it states Varsha is Mother of Khushi.

3. Rule Statements: Rule statements state rules of implication between propositions.For


example: ancestor(varsha, khushi) :- mother(varsha, khushi)., it states that if Varsh is the
mother of Khushi, then Varsha is an ancestor of Khushi.

Related Posts:
1. Sequence Control & Expression | PPL
2. PPL:Named Constants
3. Parse Tree | PPL | Prof. Jayesh Umre
4. Loops | PPL | Prof. Jayesh Umre
5. Programming Paradigms | PPL | Prof. Jayesh Umre

EasyExamNotes.com Basic elements of Prolog


Basic elements of Prolog

6. Subprograms Introduction | PPL | Prof. Jayesh Umre


7. Phases of Compiler | PPL | Prof. Jayesh Umre
8. Parse Tree | PPL
9. Influences on Language design | PPL | Prof. Jayesh Umre
10. Fundamentals of Subprograms | PPL | Prof. Jayesh Umre
11. Programming Paradigm
12. Influences on Language Design
13. Language Evaluation Criteria
14. OOP in C++ | PPL
15. OOP in Java | PPL
16. PPL: Abstraction & Encapsulation
17. PPL: Introduction to 4GL
18. PPL: Variable Initialization
19. PPL: Conditional Statements
20. PPL: Array
21. PPL: Strong Typing
22. PPL: Coroutines
23. PPL: Exception Handler in C++
24. PPL: Character Data Type
25. PPL: Exceptions
26. PPL: Heap based storage management
27. PPL: Primitive Data Type
28. PPL: Data types
29. Programming Environments | PPL
30. Virtual Machine | PPL
31. PPL: Local referencing environments
32. Generic Subprograms

EasyExamNotes.com Basic elements of Prolog


Basic elements of Prolog

33. Local referencing environments | PPL | Prof. Jayesh Umre


34. Generic Subprograms | PPL | Prof. Jayesh Umre
35. PPL: Loops
36. PPL: Exception Handling
37. PPL: C# Threads
38. Pointer & Reference Type | PPL
39. Scope and lifetime of variable
40. Parameter passing methods
41. Fundamentals of sub-programs
42. Subprograms
43. Design issues of subprogram
44. Garbage Collection
45. Issues in Language Translation
46. PPL Previous years solved papers
47. Type Checking | PPL | Prof. Jayesh Umre
48. PPL RGPV May 2018 solved paper discussion| Prof. Jayesh Umre
49. PPL Viva Voce
50. PPL RGPV June 2017 Solved paper | Prof. Jayesh Umre
51. Concurrency
52. Basic elements of Prolog
53. Introduction and overview of Logic programming
54. Language Evaluation Criteria PPL
55. PPL: Sequence Control & Expression
56. PPL: Programming Environments
57. PPL: Virtual Machine
58. PPL: Programming Paradigm
59. PPL: Pointer & Reference Type

EasyExamNotes.com Basic elements of Prolog


Basic elements of Prolog

60. try-catch block in C++

EasyExamNotes.com Basic elements of Prolog

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy