Extend the CLIPS rules given in Section 9.5 to produce a more useful system for running an
Question:
Extend the CLIPS rules given in Section 9.5 to produce a more useful system for running an elevator on a building with five floors.
Transcribed Image Text:
9.5 CLIPS (C Language Integrated Production System) CLIPS is a freely available expert system shell that has been implemented in C. It provides a language for expressing rules and mainly uses forward chaining to derive conclusions from a set of facts and rules. The notation used by CLIPS is very similar to that used by LISP. The fol- lowing is an example of a rule specified using CLIPS: (defrule birthday (firstname ?rl John) (surname ?rl Smith) (haircolor ?rl Red) => (assert (is-boss ?rl))) ?rl is used to represent a variable, which in this case is a person. Assert is used to add facts to the database, and in this case the rule is used to draw a conclusion from three facts about the person: If the person has the first name John, has the surname Smith, and has red hair, then he is the boss. This can be tried in the following way: (assert (firstname x John)) (assert (surname x Smith)) (assert (haircolor x Red)) (run) At this point, the command (facts) can be entered to see the facts that are contained in the database: CLIPS> (facts) f-0 (firstname x John) f-1 (surname x Smith) f-2 (haircolor x Red) f-3 (is-boss x)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 0% (1 review)
Answered By
Pushpinder Singh
Currently, I am PhD scholar with Indian Statistical problem, working in applied statistics and real life data problems. I have done several projects in Statistics especially Time Series data analysis, Regression Techniques.
I am Master in Statistics from Indian Institute of Technology, Kanpur.
I have been teaching students for various University entrance exams and passing grades in Graduation and Post-Graduation.I have expertise in solving problems in Statistics for more than 2 years now.I am a subject expert in Statistics with Assignmentpedia.com.
4.40+
3+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Understanding the history and background of your company gives you valuable insights as to what to do and what not to do going forward. A brief written summary of the background and history of the...
-
(a) Prove that if 151 integers are selected from {1, 2, 3, ..., 300}, then the selection must include two integers x, y where x|y or y|x. (b) Write a statement that generalizes the results of part...
-
Task 4.2Written report Describe how you will present the menu to customers, for example, folders, covers, boards or binding. Include details of colour schemes, pictures, icons, logos, symbols and...
-
Fill er up! In a recent month, 88% of automobile drivers filled their vehicles with regular gasoline, 2% purchased midgrade gas, and 10% bought premium gas.18 Of those who bought regular gas, 28%...
-
On September 1, 2011, Parcel Corporation purchased 80% of the outstanding common stock of Sack Corporation for $152,000. On that date, Sacks net book values equaled fair values, and there was no...
-
Tulsa Company is considering investing in new bottling equipment and has two options: Option A has a lower initial cost but would require a significant expenditure to rebuild the machine after four...
-
Translate the given theoretical conformer from the H wedge-and-dash drawing into its Newman projection. Cl I Cl F Br OH F Br
-
Use the ID3 algorithm to build the full decision tree for the data set given in Section 10.9.2. 10.9.2 Example We will start with the training data given below: Film Country of origin Big star Genre...
-
Prove the following: a. AA b. (( AB)A)((BA)B) c. ( A B)(AB)
-
The adjusted trial balance below of Smith Advisory Services is incomplete. Enter the adjustment amounts directly in the adjustment columns of the text. Service Revenue is the only account affected by...
-
Pulse rates of women are normally distributed with a mean of 77.5 beats per minute and a standard deviation of 11.6 beats per minute. Answer the following questions. What are the values of the mean...
-
Suppose youre applying a simulated annealing algorithm to a certain problem, where T is the parameter that measures the tendency to accept the current candidate to be the next trial solution. You...
-
Following is a partially completed balance sheet for Epsico Incorporated at December 31, 2022, together with comparative data for the year ended December 31, 2021. From the statement of cash flows...
-
Assume, further, that the acquisition was consummated on October 1, 2024, as described above. However, by the end of 2025, Ayayai was concerned that the fair values of one or both of the acquired...
-
You have been asked to prepare a brief presentation on a criminological topic or issue of interest to you. Go to the Bureau of Justice Statistics (BJS) Publications & Products Overview page (See link...
-
1. What is the point Shiva wants to make with the quote from Chief Seattle? 2. Rather than viewing the planet as private property, what does Shiva suggest? 3. What does she mean in saying that...
-
Chao, Louis, and Mari, unrelated individuals, own all of the shares of Cerise Corporation. All three shareholders have been active in the management of Cerise since its inception. In the current...
-
Finley Company End-of-Period Spreadsheet For the Year Ended December 31 Adjusted Trial Balance Income Statement Debit Credit Debit Credit Account Title Balance Sheet Cash Debit Credit Accounts...
-
Question 1 of 35. Self-employed taxpayers pay self-employment tax on: The gross profit of the business reduced by 15.3%. The net profit of the business. The net profit of the business reduced by...
-
Problem 5-29 (Algo) Changes in Cost Structure; Break-Even Analysis; Operating Leverage; Margin of Safety [LO5-4, LOS-5, LO5-7, LO5-8) Morton Company's contribution format income statement for last...
Study smarter with the SolutionInn App