Artificial Intelligence Lecture No. 17 . Dr. Asad Ali Safi Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology (CIIT) Islamabad, Pakistan. Summary of Previous Lecture. Types of inference engines Forward chaining and backward chaining
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Dr. Asad Ali Safi
Department of Computer Science,
COMSATS Institute of Information Technology (CIIT) Islamabad, Pakistan.
CLIPS is a type of computer language designed for writing applications called expert systems.
CLIPS is called an expert system tool because it is a complete environment for developing expert systems which includes features such as an integrated editor and a debugging tool.
A program written in CLIPS may consist of rules, facts, and objects. The inference engine decides which rules should be executed and when.
A rule-based expert system written in CLIPS is a data-driven program
Where the facts, and objects if desired, are the data that stimulate execution via the inference engine.
The generic CLIPS interface is a simple, interactive, text-oriented, command prompt interface for high portability.
A number is either stored as a float or an integer. Any number consisting of an optional sign followed by only digits is stored as an integer (represented internally by CLIPS as a C long integer). All other numbers are stored as floats (represented internally by CLIPS as a C double-precision float).
Delimiters may not be included in symbols with the exception of the “<“ character which may be the first character in a symbol. In addition, a symbol may not begin with either the “?” character or the “$?” sequence of characters (although a symbol may contain these characters). These characters are reserved for variables
Note that the brackets are not part of the name of the instance; they merely indicate that the enclosed symbol is an instance-name.
Function calls in CLIPS use a prefix notation – the arguments to a function always appear after the function name.
Facts may be added to the fact-list (using the assert command), removed from the fact-list (using the retract command), modified (using the modify command), or duplicated (using the duplicate command) through explicit user interaction or as a CLIPS program executes.
Some commands, such as the retract, modify, and duplicate commands, require a fact to be specified.