🗊 Презентация Structure of the program in Prolog. Execution management

Нажмите для полного просмотра!
Structure of the program in Prolog. Execution management, слайд №1 Structure of the program in Prolog. Execution management, слайд №2 Structure of the program in Prolog. Execution management, слайд №3 Structure of the program in Prolog. Execution management, слайд №4 Structure of the program in Prolog. Execution management, слайд №5 Structure of the program in Prolog. Execution management, слайд №6 Structure of the program in Prolog. Execution management, слайд №7 Structure of the program in Prolog. Execution management, слайд №8 Structure of the program in Prolog. Execution management, слайд №9 Structure of the program in Prolog. Execution management, слайд №10 Structure of the program in Prolog. Execution management, слайд №11 Structure of the program in Prolog. Execution management, слайд №12 Structure of the program in Prolog. Execution management, слайд №13 Structure of the program in Prolog. Execution management, слайд №14 Structure of the program in Prolog. Execution management, слайд №15 Structure of the program in Prolog. Execution management, слайд №16 Structure of the program in Prolog. Execution management, слайд №17 Structure of the program in Prolog. Execution management, слайд №18 Structure of the program in Prolog. Execution management, слайд №19 Structure of the program in Prolog. Execution management, слайд №20 Structure of the program in Prolog. Execution management, слайд №21 Structure of the program in Prolog. Execution management, слайд №22 Structure of the program in Prolog. Execution management, слайд №23

Вы можете ознакомиться и скачать презентацию на тему Structure of the program in Prolog. Execution management. Доклад-сообщение содержит 23 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1


Structure of the program in Prolog. Execution management Lecture 4
Описание слайда:
Structure of the program in Prolog. Execution management Lecture 4

Слайд 2


Peculiarities of Visual Prolog Visual Prolog is a compiled language Other versions have elements of interpretation of a code during the execution...
Описание слайда:
Peculiarities of Visual Prolog Visual Prolog is a compiled language Other versions have elements of interpretation of a code during the execution Strict data typing Rules are not data: you can’t add or remove them during the execution You can’t define new operations

Слайд 3


Program sections compiler directives CONSTANTS – section of constants description DOMAINS – section of domains description DATABASE – section of...
Описание слайда:
Program sections compiler directives CONSTANTS – section of constants description DOMAINS – section of domains description DATABASE – section of description of internal database predicates PREDICATES – section of predicates description CLAUSES – section of clauses description GOAL – section of internal goal description

Слайд 4


Peculiarities of Visual Prolog All sections can be in any order Predicates and domain must be defined before their usage Predicates declared in a...
Описание слайда:
Peculiarities of Visual Prolog All sections can be in any order Predicates and domain must be defined before their usage Predicates declared in a section DATABASE can be added and removed from internal database while the execution

Слайд 5


Program containing only the goal GOAL write("hello"), readchar(_).
Описание слайда:
Program containing only the goal GOAL write("hello"), readchar(_).

Слайд 6


Compiler directives trace – to trace the program nowarnings – to suppress the message that a variable occurs only once include – insertion of some...
Описание слайда:
Compiler directives trace – to trace the program nowarnings – to suppress the message that a variable occurs only once include – insertion of some file content check_determ – compulsory check of predicates determination

Слайд 7


Peculiarities of Visual Prolog You can start tracing only for the definite predicate If there is a tracing the optimization of recursion is not...
Описание слайда:
Peculiarities of Visual Prolog You can start tracing only for the definite predicate If there is a tracing the optimization of recursion is not working To establish non-determination of predicates by default: Options – Project – Compiler options – Warnings – Default predicate type – Nondeterm

Слайд 8


Constants CONSTANTS pi=3.14 path="c:\\prolog\\bgi"
Описание слайда:
Constants CONSTANTS pi=3.14 path="c:\\prolog\\bgi"

Слайд 9


Domains integer – an integer number (-32768...32767) real – a float number (±e-307...±e308) char – a symbol in apostrophes string – a sequence of...
Описание слайда:
Domains integer – an integer number (-32768...32767) real – a float number (±e-307...±e308) char – a symbol in apostrophes string – a sequence of symbols in double quotation marks symbol – a symbolic constant (atom) file – a file

Слайд 10


Description of your own domain = or file = ; ...; or = * Examples: DOMAINS i=integer list=i*
Описание слайда:
Description of your own domain = or file = ; ...; or = * Examples: DOMAINS i=integer list=i*

Слайд 11


Description of a structured domain = (, ..., ) [;(...)]* Examples: flatpoint = p(integer, integer) triangle = tr(point, point, point) fullpoint =...
Описание слайда:
Description of a structured domain = (, ..., ) [;(...)]* Examples: flatpoint = p(integer, integer) triangle = tr(point, point, point) fullpoint = p(integer, integer); p(integer, integer, integer)

Слайд 12


Description of predicates (, ..., ). Examples: PREDICATES mother(string,string). member(integer,integer*). member(real,real*). member(char,char*)....
Описание слайда:
Description of predicates (, ..., ). Examples: PREDICATES mother(string,string). member(integer,integer*). member(real,real*). member(char,char*). member(string,string*).

Слайд 13


Standard predicates readln(_) readint(_) readreal(_) readchar(_) readterm(name_domain, term_domain) write([,…]) writef – format output
Описание слайда:
Standard predicates readln(_) readint(_) readreal(_) readchar(_) readterm(name_domain, term_domain) write([,…]) writef – format output

Слайд 14


Standard predicates div() mod() trunc() round() random(_) random(,_) All embedded predicates are determinated
Описание слайда:
Standard predicates div() mod() trunc() round() random(_) random(,_) All embedded predicates are determinated

Слайд 15


Program “Relatives” DOMAINS s=string PREDICATES nondeterm mother(s,s) nondeterm grandmother(s,s) CLAUSES mother("Наташа","Даша")....
Описание слайда:
Program “Relatives” DOMAINS s=string PREDICATES nondeterm mother(s,s) nondeterm grandmother(s,s) CLAUSES mother("Наташа","Даша"). mother("Даша","Маша"). grandmother(X,Y):- mother(X,Z), mother(Z,Y).

Слайд 16


Execution management Method of a depth search (backtracking) Method of a rollback after a failure Cut and rollback Method of a user-defined search
Описание слайда:
Execution management Method of a depth search (backtracking) Method of a rollback after a failure Cut and rollback Method of a user-defined search

Слайд 17


Backtracking DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha")....
Описание слайда:
Backtracking DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha"). mother(“Natasha",”Glasha"). mother(“Dasha",”Sasha"). grandmother(X,Y):– mother(X,Z), mother(Z,Y).

Слайд 18


Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha")....
Описание слайда:
Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha"). mother(“Natasha",”Glasha"). mother(“Dasha",”Sasha"). grandmother(X,Y):– mother(X,Z), mother(Z,Y).

Слайд 19


Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha")....
Описание слайда:
Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha"). mother(“Natasha",”Glasha"). mother(“Dasha",”Sasha"). grandmother(X,Y):– mother(X,Z), mother(Z,Y).

Слайд 20


Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) show_names CLAUSES mother(“Dasha",“Masha")....
Описание слайда:
Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) show_names CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha"). mother(“Natasha",”Glasha"). mother(“Dasha",”Sasha"). grandmother(X,Y):– mother(X,Z), mother(Z,Y).

Слайд 21


Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) show_names2(s) CLAUSES...
Описание слайда:
Method of a rollback after a failure DOMAINS s=string PREDICATES mother(s,s) grandmother(s,s) show_names2(s) CLAUSES mother(“Dasha",“Masha"). mother(“Natasha",”Dasha"). mother(“Natasha",”Glasha"). mother(“Dasha",”Sasha"). grandmother(X,Y):– mother(X,Z), mother(Z,Y).

Слайд 22


Cut and rollback
Описание слайда:
Cut and rollback

Слайд 23


Method of a user-defined search
Описание слайда:
Method of a user-defined search



Похожие презентации
Mypresentation.ru
Загрузить презентацию