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...
-
Terry Guentner, the production manager, was grumbling about the new quality cost system the plant controller wanted to put into place. If we start trying to track every bit of spoiled material, well...
-
Indicate the effect of each of the following transactions upon the total assets of a business by using one of the appropriate phrases as below: a. Owner contributed a computer to the business. b....
-
How does the strategic plan influence preparation of the master budget?
-
Price level Show what happens in the short run on the graph if the policy moves the economy too far and the economy reaches higher than full employment. Real GDP LRAS AD SRAS
-
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)
-
Find the missing values. a. [13 23] + [-6 31] = [x y] b. c. d. e. 90 101090 101-[C11 C12 05 95 ]L05 95] C21 C22 18-231+-2.4 5.432.25.3 12.21-[a b 1011cd 18 231112 5.4 32.2 21 22 10 -2.4 12.21- 5.3...
-
Substitutes for leadership may be of three types: characteristics of (1) the subordinate, (2) the task, and (3) the organization. For each of these THREE types, give one specific example of a...
-
Leadership is not a magnetic personality, that can just as well be a glib tongue. It is not 'making friends and influencing people,' that is flattery. Leadership is lifting a person's vision to...
-
Discuss one or more leadership positions that you currently or in or have held in the past. Carefully assess what you consider to be your personal strengths and weaknesses in the position. If you...
-
Build a chart comparing 3 different Leadership Models, Universal Model of Leadership, Reactive Leader and Autocratic Model of Leadership presented in this week's reading.?
-
Consider the models of leadership from Jones & George chapter 10: Power, Trait, Behavior, Contingency, and Transformational. How would you describe Tharaldson's leadership through the lens of one (or...
-
Show that the digital exponential filter output can be written as a function of previous measurements ym(k) and the initial filter output yF(0).
-
On April 29, 2015, Auk Corporation acquires 100% of the outstanding stock of Amazon Corporation (E & P of $750,000) for $1.2 million. Amazon has assets with a fair market value of $1.4 million (basis...
-
Exercise 7-10 (Algo) Customer Profitability Analysis [LO7-3, LO7-4, LO7-5] Worley Company buys surgical supplies from a variety of manufacturers and then resells and delivers these supplies to...
-
Lake Incorporated and River Incorporated reported net incomes of $255,000 and $204,000, respectively, for the most recent fiscal year. Both companies had 51,000 shares of common stock issued and...
-
New Company produces Peaceful Widgets that are designed to increase relaxation. The company has established the below standard costs: Standard Quantity Standard Price/Rate Direct Materials Direct...
Study smarter with the SolutionInn App