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: 100% (QA)
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...
-
A party was held to celebrate the bicentennial of Clarksville, the county seat of Caroline County. Six-hundred attendees were estimated, but 700 arrived. The food and entertainment budget was $6,000,...
-
An auditor should request that an audit client send a letter of inquiry to those attorneys who have been consulted concerning litigation, claims, or assessments. The primary reason for this request...
-
Sherrod, Inc. reported pretax accounting income of $76 million for 2011. The following information relates to differences between pretax accounting income and taxable income: a. Income from...
-
Based on the company you picked from week 2 , find the most recent 1 0 - K Annual Report. To do that, type in 2 0 2 3 Annual Report for XXX Company. Answer the following questions: Which company are...
-
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)
-
Polymer Molecular Weight Distribution the following data were obtained for polyethylene. Determine the average molecular weight and degree of polymerization.
-
A young child pushes her stuffed plush cow down a frictionless slide at the playground. The slide has a height h. The cow exits the slide horizontally at the bottom. The cow slides along the level...
-
Brief for the Court presenting your clients position and responding to anticipated caused of actions and defenses of the other parties. FACTS: Adam owns a Mobile Home. In 2017, he has a dispute with...
-
Determine the zero-state response of the following system, if the input is; f(t) = e-4t.u(t) H(s) = 2s + 3 s + 5s +6
-
Your boss would like you to estimate the fixed and variable components of a particular cost. Actual data for this cost over four recent periods appear below. Activity Cost Period 1 2 8 $ 3 8 2 Period...
-
Suppose you take a 3 / 1 interest - only, 3 0 - year ARM for $ 1 8 0 , 0 0 0 . 0 0 with an interest - only contract rate of 3 % and a following rate of 7 . 7 5 % in year four. Assume you pay 1 . 5...
-
The air conditioner in a house or a car has a cooler that brings atmospheric air from 30oC to 10oC both states at 101 kPa. If the flow rate is 0.5 kg/s find the rate of heat transfer?
-
r = 0.18 Find the coefficients of determination and non-determination and explain the meaning of each.
-
There is information asymmetry in a "principal and agent relationship". Principal is the main entity whose interests should be realized. An agent should work for the interest of the Principal. This...
-
Let [800] = 0 4 3 0 3 6 be a variance-covariance matrix. 1. Find the corresponding correlation matrix. 2. Find the eigenvalues and eigenvectors of . Use the determinant and trace to check that the...
-
2 8 15 (a) Encrypt the message "SAFE MESSAGES" using the Hill cipher with key 7 4 17 8 13. 6 Show your calculations and results. (b) (i) Construct a Playfair matrix with the key "GOOD LUCK". Make a...
Study smarter with the SolutionInn App