Expert System Algorithms
Combine a rule base with an inference engine and an explanation facility.
The idea
An expert system captures a specialist's knowledge as rules. The inference engine (forward or backward chaining) applies them, asks the user follow-up questions, and can explain why it asked and how it reached a conclusion. Early systems like MYCIN diagnosed infections this way.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- known / proved
- active rule or sub-goal
- unknown
Work backwards from the goal H: which rule would give it, and what must be true for that rule?
Circles are statements, squares are IF-THEN rules. A rule links its inputs to its conclusion.
Step by step
- 1Interview an expert and write their knowledge as rules.
- 2Start a consultation; collect facts from the user.
- 3Chain through the rules to reach a conclusion.
- 4Explain the reasoning on request.
Where it is used
Diagnosis, configuration, compliance checking.
Watch out for
Knowledge acquisition is slow and the rules do not learn on their own.