Simple expert system (declarative languages)

12.5.1.2  create a simple expert system

Expert system on declarative language

An expert system is a computer system that emulates the decision-making ability of a human expert.

Key terms used in Expert systems

A fact is a small portion of important information. Facts on their own are of very limited use.

The rules are essential to select and apply facts to a user problem.

Create expert system for the next family tree


https://swish.swi-prolog.org/ 

Facts

male(kanat).
...
female(alya).
...
parent(kanat, umit).
...

Rules

father(X, Y):-parent(X, Y), male(X).
...

Queries:
male(kanat).  //True
male(alya).  //False
parent(kanat, umit). //true 
parent(marat, umit).  //false 

 

Questions:

  1. Give definitions for terms "expert system", "fact" and "rule".

 

Exercises:

Ex. 1

Write expert system to the next family tree:

Create five queries.

Ex. 2

Fill the blank using program

Exam questions:

Worksheet 



 

Категория: Programming languages | Добавил: bzfar77 (15.09.2020)
Просмотров: 100 | Теги: Fact, query, swish, Prolog, expert system, Rule | Рейтинг: 0.0/0
Всего комментариев: 0
avatar