Family Tree on PROLOG

291 views 9 slides May 05, 2020
Slide 1
Slide 1 of 9
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9

About This Presentation

Complete family tree made by PROLOG, a tool of Artificial Intelligence


Slide Content

Complete Family Tree on PROLOG Abdul Rafay BSCS Student

Objective Our objective is to make a complete family tree which covers all over the family and we will define all of the Facts, Rule and Predicates between them. To introduce the basic concepts of prolog. To Implement a simple knowledge base i.e. (on a family tree). To get familiar with SWI-Prolog working environment.

Introduction SWI-Prolog is an easy s/w for logical programming. You can build, compile and apply query on your code to retrieve results. Prolog is a logic programming language. It has important role in artificial intelligence. Unlike many other programming languages, Prolog is intended primarily as a declarative programming language. In prolog, logic is expressed as relations (called as Facts and Rules).

Definition Prolog stands for “Programming with Logic”. It is different from other programming languages and used for artificial programming. It’s Declarative, No Recursion (no “for” or “while” loops), No Relations (no functions), High-level language and Think declaratively, not procedurally. Prolog is referred to as a declarative language because all program statements are definitional. In particular, a Prolog program consists of facts and rules which serve to define relations (in the mathematical sense) on sets of values.

Some more Definitions Knowledge Base is simply a collection of facts. Facts are used to state things that are unconditionally true of some situation of interest Facts and Rules Everything in Prolog is defined in terms of two constructs: the fact and the rule A Fact states that a certain tuple of values satisfies a predicate unconditionally. A Rule, on the other hand, is a Prolog statement which gives conditions under which tuples satisfy predicate.

Applications of PROLOG Some applications of Prolog are: natural language understanding. expert systems. specification language. machine learning. robot planning. problem solving.

Code

Facts and Rules