Rule-based system
In computer science, a rule-based system is a computer system in which domain-specific knowledge is represented in the form of rules and general-purpose reasoning is used to solve problems in the domain.[src] Two different kinds of rule-based systems emerged within the field of artificial intelligence in the 1970s: * Production systems, which use if-then rules to derive actions from conditions.[src] * Logic programming systems, which use conclusion if conditions rules to derive conclusions from conditions.[src] The differences and relationships between these two kinds of rule-based system has been a major source of misunderstanding and confusion.[src] Both kinds of rule-based systems use either forward or backward chaining, in contrast with imperative programs, which execute commands listed sequentially.[src] However, logic programming systems have a logical interpretation, whereas production systems do not.[src]
In computer science, a rule-based system is a computer system in which domain-specific knowledge is represented in the form of rules and general-purpose reasoning is used to solve problems in the domain.[src] Two different kinds of rule-based systems emerged within the field of artificial intelligence in the 1970s: Production systems, which use if-then rules to derive actions from conditions.[src] Logic programming systems, which use conclusion if conditions rules to derive conclusions from conditions.[src] The differences and relationships between these two kinds of rule-based system has been a major source of misunderstanding and confusion.[src] Both kinds of rule-based systems use either forward or backward chaining, in contrast with imperative programs, which execute commands listed sequentially.[src] However, logic programming systems have a logical interpretation, whereas production systems do not.[src] ==Production system rules== A classic example of a production rule-based system is the domain-specific expert system that uses rules to make deductions or choices.[src] For example, an expert system might help a doctor choose the correct diagnosis based on a cluster of symptoms, or select tactical moves to play a game.[src] Rule-based systems can be used to perform lexical analysis to compile or interpret computer programs, or in natural language processing.[src] Rule-based programming attempts to derive execution instructions from a starting set of data and rules.[src] This is a more indirect method than that employed by an imperative programming language, which lists execution steps sequentially.[src] ===Construction=== A typical rule-based system has four basic components: A list of rules or rule base, which is a specific type of knowledge base.[src] An inference engine or semantic reasoner, which infers information or takes action based on the interaction of input and the rule base.[src] The interpreter executes a production system program by performing the following match-resolve-act cycle: Match: In this first phase, the condition sides of all productions are matched against the contents of working memory.[src] As a result a set (the conflict set) is obtained, which consists of instantiations of all satisfied productions.[src] An instantiation of a production is an ordered list of working memory elements that satisfies the condition side of the production.[src] Conflict-resolution: In this second phase, one of the production instantiations in the conflict set is chosen for execution.[src] If no productions are satisfied, the interpreter halts.[src] Act: In this third phase, the actions of the production selected in the conflict-resolution phase are executed.[src] These actions may change the contents of working memory.[src] At the end of this phase, execution returns to the first phase.[src] Temporary working memory, which is a database of facts.[src] A user interface or other connection to the outside world through which input and output signals are received and sent.[src] Whereas the matching phase of the inference engine has a logical interpretation, the conflict resolution and action phases do not.[src] Instead, "their semantics is usually described as a series of applications of various state-changing operators, which often gets quite involved (depending on the choices made in deciding which ECA rules fire, when, and so forth), and they can hardly be regarded as declarative".[src] ==Logic programming rules== The logic programming family of computer systems includes the programming language Prolog, the database language Datalog and the knowledge representation and problem-solving language Answer Set Programming (ASP).[src] In all of these languages, rules are written in the form of clauses: A :- B 1 , ..., B n .[src] and are read as declarative sentences in logical form: A if B 1 and ...[src] and B n .[src] In the simplest case of Horn clauses (or "definite" clauses), which are a subset of first-order logic, all of the A, B 1 , ..., B n are atomic formulae.[src] Although Horn clause logic programs are Turing complete, for many practical applications, it is useful to extend Horn clause programs by allowing negative conditions, implemented by negation as failure.[src] Such extended logic programs have the knowledge representation capabilities of a non-monotonic logic.[src] ==See also== Logic programming Expert systems Rewriting RuleML List of rule-based languages Learning classifier system Rule-based machine learning Rule-based modeling[src]
39 sentences · 39 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Rule-based system." encyclopegia.org, 2026, https://encyclopegia.org/wiki/rule-based-system. Accessed 25 November 2026.
Chicago
"Rule-based system." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/rule-based-system.
APA
encyclopegia.org. (2026). Rule-based system. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/rule-based-system
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON