SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
Questions 7
Dr. Roman Belavkin
BIS4435
Question 1
Consider the following production rule:
IF green THEN walk
a) What is the antecedent of this rule?
Answer: Antecedent is the left–hand–side of the rule: IF green.
b) What is the consequent of this rule?
Answer: Consequent is the right–hand–side of the rule: THEN walk.
c) Which part of the rule will be matched against the working memory
in case of forward chaining?
Answer: Left–hand–side
d) And in case of backward chaining?
Answer: Right–hand–side
Question 2
The following is the rule set of a simple weather forecast expert system:
1 IF cyclone THEN clouds
2 IF anticyclone THEN clear sky
3 IF pressure is low THEN cyclone
4 IF pressure is high THEN anticyclone
5 IF arrow is down THEN pressure is low
6 IF arrow is up THEN pressure is high
1
BIS4435 2
a) Use forward chaining to reason about the weather if the working mem-
ory contains the fact: arrow is down. Show your answer in a table
naming the rules matching the current working memory (conflict set),
which rule you apply, and how the working memory contents changes
on the next cycle after a rule has fired:
Cycle Working Memory Conflict set Rule fired
...
...
...
...
Answer:
Cycle Working Memory Conflict set Rule fired
0 arrow is down 5 5
1 arrow is down, pressure is low 5, 3 3
2 arrow is down, pressure is low,
cyclone
5, 3, 1 1
3 arrow is down, pressure is low,
cyclone, clouds
5, 3, 1 Halt
b) Use backward chaining to reason about the weather if the working
memory contains the fact: clouds. Show your answer in a similar
table.
Answer:
Cycle Working Memory Conflict set Rule fired
0 clouds 1 1
1 clouds, cyclone 1, 3 3
2 clouds, cyclone, pressure is low 1, 3, 5 5
3 clouds, cyclone, pressure is low,
arrow is down
1, 3, 5 Halt
c) Suppose that the user interface of our ES allows the system to ask a
user about the facts whether they are true or false. What question (or
questions) the system should ask the user in order to conclude that
the sky is clear? What will the user answer? Which rule will require
the clarification from the user?
Answer: The system should ask something like:
Is the arrow up? (Yes/No)
BIS4435 3
And the user will answer ‘Yes’. The system will start from the goal
clear sky, and then, in order to prove it, the system will reason back-
wards using rules 2, 4 and 6 until it will need to clarify the condition
of rule 6. That is whether the fact arrow is up is true or false. Thus,
rule 6 will cause the clarification from a user.
Question 3
Consider the following familiar set of rules:
1 IF green THEN walk
2 IF red THEN wait
3 IF green AND blinking THEN hurry
4 IF red OR green THEN traffic light works
a) Which of the above rules will be put into a conflict set by the system
if the working memory contains two facts: green, blinking ? Explain
why each rule is selected or not.
Answer: The conflict set will contain three rules: 1, 3 and 4. Rule 1
matches the fact green in the working memory (WM). Rule 2 does
not match because there is no fact red in WM. Rule 3 uses AND
(conjunctive), so both facts should be in WM, which is exactly the
case. So, rule 3 is selected. Finally, rule 4 uses OR (disjunctive),
which means that it is sufficient for only one of the facts to be in WM.
In this case fact green is in WM, so rule 4 is selected.
b) Which of the rules would fire if we used the specificity conflict resolu-
tion strategy? Explain why.
Answer: Specificity strategy states that a rule with a greater num-
ber of conditions (more specific) should be given the priority. Rules 1
and 4 satisfy only one fact in WM, while rule 3 uses two facts. Thus,
it is more specific for the situation, and rule 3 will be selected by the
conflict resolution.
Question 4
Describe characteristics of problems in which it is better to use rule–based
expert systems or problems where the case–based systems are more appro-
priate.
BIS4435 4
Answer: Rule–based systems are better for problems
• With well–defined domain which can be easily represented.
• That do not change with time.
• Where explanation of the reasoning process is very important.
Case–based systems are better for problems
• Which are less understood.
• Which are dynamic (may change with time).
Question 5
Briefly describe the cyclic process of CBR.
Answer: The process can be summarised by four REs:
a) REtrieve the most similar case or cases.
b) REuse the case(s) to attempt to solve the problem.
c) REvise the proposed solution if necessary
d) REtain the new solution as a part of a new case
A new problem is matched against cases in the case-base, and one or more
similar cases are retrieved. A solution suggested by the matching cases is
then reused and tested for success. The solution will normally be revised,
producing a new case that can be retained. This cycle rarely occurs without
human intervention. For example, many CBR tools act primarily as case
retrieval and reuse systems, case revision often being undertaken by users
of the case-base.
Question 6
Briefly describe the nearest neighbour retrieval method used in CBR systems
for case retrieval.
Answer: Each case in a case base is represented by a number of features,
some of which are used as indexes. A target case will be compare with all
the source cases according to some similarity function shown below, such as
Euclidean or a taxi-cab distance. Sometimes, weights can be used to make
some features more important. The most similar case(s) is retrieved, and
the solution for the retrieved case is adapted as the solution for the target
case.

Contenu connexe

Tendances

Database Normalization
Database NormalizationDatabase Normalization
Database NormalizationArun Sharma
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlMukesh Tekwani
 
Interprocess communication
Interprocess communicationInterprocess communication
Interprocess communicationSushil Singh
 
parallel Questions & answers
parallel Questions & answersparallel Questions & answers
parallel Questions & answersMd. Mashiur Rahman
 
Datascience - bigmart data analysis
Datascience - bigmart data analysisDatascience - bigmart data analysis
Datascience - bigmart data analysisRvk Reddy
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systemsmridul mishra
 
Chapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlChapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlAbDul ThaYyal
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking systemUmme habiba
 
Report-An Expert System for Car Failure Diagnosis-Report
Report-An Expert System for Car Failure Diagnosis-ReportReport-An Expert System for Car Failure Diagnosis-Report
Report-An Expert System for Car Failure Diagnosis-ReportViralkumar Jayswal
 
Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...zammok
 
Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)Yaksh Jethva
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin schedulingRaghav S
 
Databases: Locking Methods
Databases: Locking MethodsDatabases: Locking Methods
Databases: Locking MethodsDamian T. Gordon
 

Tendances (20)

Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Rule based system
Rule based systemRule based system
Rule based system
 
weak slot and filler
weak slot and fillerweak slot and filler
weak slot and filler
 
Mycin
MycinMycin
Mycin
 
DBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency ControlDBMS-chap 2-Concurrency Control
DBMS-chap 2-Concurrency Control
 
Interprocess communication
Interprocess communicationInterprocess communication
Interprocess communication
 
parallel Questions & answers
parallel Questions & answersparallel Questions & answers
parallel Questions & answers
 
Datascience - bigmart data analysis
Datascience - bigmart data analysisDatascience - bigmart data analysis
Datascience - bigmart data analysis
 
Normalization
NormalizationNormalization
Normalization
 
Optimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed SystemsOptimistic concurrency control in Distributed Systems
Optimistic concurrency control in Distributed Systems
 
Chapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency controlChapter 12 transactions and concurrency control
Chapter 12 transactions and concurrency control
 
Dbms acid
Dbms acidDbms acid
Dbms acid
 
online bus ticket booking system
online bus ticket booking systemonline bus ticket booking system
online bus ticket booking system
 
AI: Planning and AI
AI: Planning and AIAI: Planning and AI
AI: Planning and AI
 
Report-An Expert System for Car Failure Diagnosis-Report
Report-An Expert System for Car Failure Diagnosis-ReportReport-An Expert System for Car Failure Diagnosis-Report
Report-An Expert System for Car Failure Diagnosis-Report
 
Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...Solution manual for database systems a practical approach to design implement...
Solution manual for database systems a practical approach to design implement...
 
Distributed database
Distributed databaseDistributed database
Distributed database
 
Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)Transaction Properties(ACID Properties)
Transaction Properties(ACID Properties)
 
Round robin scheduling
Round robin schedulingRound robin scheduling
Round robin scheduling
 
Databases: Locking Methods
Databases: Locking MethodsDatabases: Locking Methods
Databases: Locking Methods
 

Similaire à Lab 07-sol

Similaire à Lab 07-sol (20)

Forward Backward Chaining
Forward Backward ChainingForward Backward Chaining
Forward Backward Chaining
 
2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt2.Problems Problem Spaces and Search.ppt
2.Problems Problem Spaces and Search.ppt
 
Problems Spaces and Search
Problems Spaces and SearchProblems Spaces and Search
Problems Spaces and Search
 
Capitulo1
Capitulo1Capitulo1
Capitulo1
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
A-Hybrid-Approach-Using-Particle-Swarm-Optimization-and-Simulated-Annealing-f...
A-Hybrid-Approach-Using-Particle-Swarm-Optimization-and-Simulated-Annealing-f...A-Hybrid-Approach-Using-Particle-Swarm-Optimization-and-Simulated-Annealing-f...
A-Hybrid-Approach-Using-Particle-Swarm-Optimization-and-Simulated-Annealing-f...
 
Analyzing Performance Test Data
Analyzing Performance Test DataAnalyzing Performance Test Data
Analyzing Performance Test Data
 
Chapter 2 (final)
Chapter 2 (final)Chapter 2 (final)
Chapter 2 (final)
 
The physics of computational drug discovery
The physics of computational drug discoveryThe physics of computational drug discovery
The physics of computational drug discovery
 
ebl machine learning.pdf
ebl machine learning.pdfebl machine learning.pdf
ebl machine learning.pdf
 
201977 1-1-3-pb
201977 1-1-3-pb201977 1-1-3-pb
201977 1-1-3-pb
 
Om0010 operations management docx
Om0010 operations management docxOm0010 operations management docx
Om0010 operations management docx
 
Simulation
SimulationSimulation
Simulation
 
Biomolecular Assignment Help
Biomolecular Assignment HelpBiomolecular Assignment Help
Biomolecular Assignment Help
 
07 rules-and-cases
07 rules-and-cases07 rules-and-cases
07 rules-and-cases
 
.doc
.doc.doc
.doc
 
.doc
.doc.doc
.doc
 
Machine learning important questions
Machine learning  important questionsMachine learning  important questions
Machine learning important questions
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
MyStataLab Assignment Help
MyStataLab Assignment HelpMyStataLab Assignment Help
MyStataLab Assignment Help
 

Plus de Ahmad sohail Kakar (20)

Lec 1 network types
Lec 1 network typesLec 1 network types
Lec 1 network types
 
Lec 1 introduction
Lec 1 introductionLec 1 introduction
Lec 1 introduction
 
Active directory restoration
Active directory restorationActive directory restoration
Active directory restoration
 
Active directory backup
Active directory backupActive directory backup
Active directory backup
 
Seii unit7 component-level-design
Seii unit7 component-level-designSeii unit7 component-level-design
Seii unit7 component-level-design
 
Seii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesSeii unit6 software-testing-techniques
Seii unit6 software-testing-techniques
 
Seii unit5 ui_design
Seii unit5 ui_designSeii unit5 ui_design
Seii unit5 ui_design
 
Seii unit4 software_process
Seii unit4 software_processSeii unit4 software_process
Seii unit4 software_process
 
Se ii unit3-architectural-design
Se ii unit3-architectural-designSe ii unit3-architectural-design
Se ii unit3-architectural-design
 
Se ii unit2-software_design_principles
Se ii unit2-software_design_principlesSe ii unit2-software_design_principles
Se ii unit2-software_design_principles
 
Se ii unit1-se_ii_intorduction
Se ii unit1-se_ii_intorductionSe ii unit1-se_ii_intorduction
Se ii unit1-se_ii_intorduction
 
Second chapter-java
Second chapter-javaSecond chapter-java
Second chapter-java
 
Second chapter-java
Second chapter-javaSecond chapter-java
Second chapter-java
 
Chapter 9 java
Chapter 9 javaChapter 9 java
Chapter 9 java
 
Chapter 8 java
Chapter 8 javaChapter 8 java
Chapter 8 java
 
Chapter 7 java
Chapter 7 javaChapter 7 java
Chapter 7 java
 
Chapter 6 java
Chapter 6 javaChapter 6 java
Chapter 6 java
 
Chapter 5 java
Chapter 5 javaChapter 5 java
Chapter 5 java
 
Chapter 4 java
Chapter 4 javaChapter 4 java
Chapter 4 java
 
Chapter 3 java
Chapter 3 javaChapter 3 java
Chapter 3 java
 

Dernier

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 

Dernier (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 

Lab 07-sol

  • 1. Questions 7 Dr. Roman Belavkin BIS4435 Question 1 Consider the following production rule: IF green THEN walk a) What is the antecedent of this rule? Answer: Antecedent is the left–hand–side of the rule: IF green. b) What is the consequent of this rule? Answer: Consequent is the right–hand–side of the rule: THEN walk. c) Which part of the rule will be matched against the working memory in case of forward chaining? Answer: Left–hand–side d) And in case of backward chaining? Answer: Right–hand–side Question 2 The following is the rule set of a simple weather forecast expert system: 1 IF cyclone THEN clouds 2 IF anticyclone THEN clear sky 3 IF pressure is low THEN cyclone 4 IF pressure is high THEN anticyclone 5 IF arrow is down THEN pressure is low 6 IF arrow is up THEN pressure is high 1
  • 2. BIS4435 2 a) Use forward chaining to reason about the weather if the working mem- ory contains the fact: arrow is down. Show your answer in a table naming the rules matching the current working memory (conflict set), which rule you apply, and how the working memory contents changes on the next cycle after a rule has fired: Cycle Working Memory Conflict set Rule fired ... ... ... ... Answer: Cycle Working Memory Conflict set Rule fired 0 arrow is down 5 5 1 arrow is down, pressure is low 5, 3 3 2 arrow is down, pressure is low, cyclone 5, 3, 1 1 3 arrow is down, pressure is low, cyclone, clouds 5, 3, 1 Halt b) Use backward chaining to reason about the weather if the working memory contains the fact: clouds. Show your answer in a similar table. Answer: Cycle Working Memory Conflict set Rule fired 0 clouds 1 1 1 clouds, cyclone 1, 3 3 2 clouds, cyclone, pressure is low 1, 3, 5 5 3 clouds, cyclone, pressure is low, arrow is down 1, 3, 5 Halt c) Suppose that the user interface of our ES allows the system to ask a user about the facts whether they are true or false. What question (or questions) the system should ask the user in order to conclude that the sky is clear? What will the user answer? Which rule will require the clarification from the user? Answer: The system should ask something like: Is the arrow up? (Yes/No)
  • 3. BIS4435 3 And the user will answer ‘Yes’. The system will start from the goal clear sky, and then, in order to prove it, the system will reason back- wards using rules 2, 4 and 6 until it will need to clarify the condition of rule 6. That is whether the fact arrow is up is true or false. Thus, rule 6 will cause the clarification from a user. Question 3 Consider the following familiar set of rules: 1 IF green THEN walk 2 IF red THEN wait 3 IF green AND blinking THEN hurry 4 IF red OR green THEN traffic light works a) Which of the above rules will be put into a conflict set by the system if the working memory contains two facts: green, blinking ? Explain why each rule is selected or not. Answer: The conflict set will contain three rules: 1, 3 and 4. Rule 1 matches the fact green in the working memory (WM). Rule 2 does not match because there is no fact red in WM. Rule 3 uses AND (conjunctive), so both facts should be in WM, which is exactly the case. So, rule 3 is selected. Finally, rule 4 uses OR (disjunctive), which means that it is sufficient for only one of the facts to be in WM. In this case fact green is in WM, so rule 4 is selected. b) Which of the rules would fire if we used the specificity conflict resolu- tion strategy? Explain why. Answer: Specificity strategy states that a rule with a greater num- ber of conditions (more specific) should be given the priority. Rules 1 and 4 satisfy only one fact in WM, while rule 3 uses two facts. Thus, it is more specific for the situation, and rule 3 will be selected by the conflict resolution. Question 4 Describe characteristics of problems in which it is better to use rule–based expert systems or problems where the case–based systems are more appro- priate.
  • 4. BIS4435 4 Answer: Rule–based systems are better for problems • With well–defined domain which can be easily represented. • That do not change with time. • Where explanation of the reasoning process is very important. Case–based systems are better for problems • Which are less understood. • Which are dynamic (may change with time). Question 5 Briefly describe the cyclic process of CBR. Answer: The process can be summarised by four REs: a) REtrieve the most similar case or cases. b) REuse the case(s) to attempt to solve the problem. c) REvise the proposed solution if necessary d) REtain the new solution as a part of a new case A new problem is matched against cases in the case-base, and one or more similar cases are retrieved. A solution suggested by the matching cases is then reused and tested for success. The solution will normally be revised, producing a new case that can be retained. This cycle rarely occurs without human intervention. For example, many CBR tools act primarily as case retrieval and reuse systems, case revision often being undertaken by users of the case-base. Question 6 Briefly describe the nearest neighbour retrieval method used in CBR systems for case retrieval. Answer: Each case in a case base is represented by a number of features, some of which are used as indexes. A target case will be compare with all the source cases according to some similarity function shown below, such as Euclidean or a taxi-cab distance. Sometimes, weights can be used to make some features more important. The most similar case(s) is retrieved, and the solution for the retrieved case is adapted as the solution for the target case.