Grammar systems theory is a field of
theoretical computer science
Theoretical computer science (TCS) is a subset of general computer science and mathematics that focuses on mathematical aspects of computer science such as the theory of computation, lambda calculus, and type theory.
It is difficult to circumsc ...
that studies
systems of finite collections of
formal grammar
In formal language theory, a grammar (when the context is not given, often called a formal grammar for clarity) describes how to form strings from a language's alphabet that are valid according to the language's syntax. A grammar does not describe ...
s generating a
formal language
In logic, mathematics, computer science, and linguistics, a formal language consists of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules.
The alphabet of a formal language consists of s ...
. Each grammar works on a string, a so-called ''sequential form'' that represents an environment. Grammar systems can thus be used as a formalization of decentralized or distributed systems of
agents in
artificial intelligence
Artificial intelligence (AI) is intelligence—perceiving, synthesizing, and inferring information—demonstrated by machines, as opposed to intelligence displayed by animals and humans. Example tasks in which this is done include speech r ...
.
Let
be a simple
reactive agent moving on the table and trying not to fall down from the table with two reactions, ''t'' for turning and ''ƒ'' for moving forward. The set of possible behaviors of
can then be described as
formal language
In logic, mathematics, computer science, and linguistics, a formal language consists of words whose letters are taken from an alphabet and are well-formed according to a specific set of rules.
The alphabet of a formal language consists of s ...
:
where ''ƒ'' can be done maximally ''k'' times and ''t'' can be done maximally ''ℓ'' times considering the dimensions of the table.
[
]
Let
be a which generates language
. The behavior of
is then described by this grammar. Suppose the
has a
subsumption architecture Subsumption architecture is a reactive robotic architecture heavily associated with behavior-based robotics which was very popular in the 1980s and 90s. The term was introduced by Rodney Brooks and colleagues in 1986.Brooks, R. A., "A Robust Pro ...
; each component of this architecture can be then represented as a formal grammar, too, and the final behavior of the agent is then described by this ''system of grammars''.{{clarify, reason=Again: How? Does each component have its own grammar and language? In this case: how can restrictions on the interleaving of reaction sequences (e.g. "always blink before turning") be expressed? Or do all components share a common language, viz. the intersection of all grammars' languages? In this case: a single ("intersection") grammar is sufficient for regular grammars, but emptiness of the common language is generally undecidable for more complex grammars., date=February 2022
The schema on the right describes such a system of grammars which shares a common string representing an environment. The shared sequential form is sequentially rewritten by each grammar, which can represent either a component or generally an agent.
If grammars communicate together and work on a shared sequential form, it is called a ''Cooperating Distributed (DC)'' grammar system. Shared sequential form is a similar concept to the blackboard approach in
AI,
which is inspired by an idea of experts solving some problem together while they share their proposals and ideas on a shared blackboard.
Each grammar in a grammar system can also work on its own string and communicate with other grammars in a system by sending their sequential forms on request. Such a grammar system is then called a ''Parallel Communicating (PC)'' grammar system.
PC and DC are inspired by distributed AI. If there is no communication between grammars, the system is close to the decentralized approaches in AI. These kinds of grammar systems are sometimes called ''colonies'' or ''Eco-Grammar'' systems, depending (besides others) on whether the environment is changing on its own (Eco-Grammar system) or not (colonies).
See also
*
Artificial life
Artificial life (often abbreviated ALife or A-Life) is a field of study wherein researchers examine systems related to natural life, its processes, and its evolution, through the use of simulations with computer models, robotics, and biochemist ...
*
Agent-based model
An agent-based model (ABM) is a computational model for simulating the actions and interactions of autonomous agents (both individual or collective entities such as organizations or groups) in order to understand the behavior of a system and what ...
*
Distributed artificial intelligence
Distributed Artificial Intelligence (DAI) also called Decentralized Artificial Intelligence is a subfield of artificial intelligence research dedicated to the development of distributed solutions for problems. DAI is closely related to and a pred ...
*
Multi-agent system
A multi-agent system (MAS or "self-organized system") is a computerized system composed of multiple interacting intelligent agents.Hu, J.; Bhowmick, P.; Jang, I.; Arvin, F.; Lanzon, A.,A Decentralized Cluster Formation Containment Framework fo ...
References
Formal languages
Theoretical computer science
Combinatorics on words
Artificial intelligence
Formal sciences