STRING REWRITING
A 'string rewriting system' is a substitution system used to transform a given string according to specified rewriting rules.
Certain basic forms of string rewriting systems are essentially equivalent to term rewriting systems. Suppose we have strings over some alphabet ''A'', and we are only given a list of transformation rules on substrings of the form
:
indicating that any substring ''x''0''x''1...''x''n is to be replaced with ''y''0''y''1...''y''m.
We can reformulate such a system into a term rewriting system -- the transformation rules now become
:
where each ''x''i and ''y''''i'' constitute the function symbols in the term rewriting system.
Strings in this term rewriting systems are then ground terms.
Examples of computational models based on deterministic string rewriting include Markov algorithms, Post canonical systems (e.g., tag systems), a variety of formal grammars, and L-systems (the latter lending themselves well to the creation of certain types of fractals such as the Cantor set and Menger sponge).
★ Formal grammar
★ L-system
★ Markov algorithm
★ Semi-Thue system
★ Tag system
| Contents |
| Equivalence of basic string rewriting systems |
| Examples |
| See also |
Equivalence of basic string rewriting systems
Certain basic forms of string rewriting systems are essentially equivalent to term rewriting systems. Suppose we have strings over some alphabet ''A'', and we are only given a list of transformation rules on substrings of the form
:
indicating that any substring ''x''0''x''1...''x''n is to be replaced with ''y''0''y''1...''y''m.
We can reformulate such a system into a term rewriting system -- the transformation rules now become
:
where each ''x''i and ''y''''i'' constitute the function symbols in the term rewriting system.
Strings in this term rewriting systems are then ground terms.
Examples
Examples of computational models based on deterministic string rewriting include Markov algorithms, Post canonical systems (e.g., tag systems), a variety of formal grammars, and L-systems (the latter lending themselves well to the creation of certain types of fractals such as the Cantor set and Menger sponge).
See also
★ Formal grammar
★ L-system
★ Markov algorithm
★ Semi-Thue system
★ Tag system
This article provided by Wikipedia. To edit the contents of this article, click here for original source.
psst.. try this: add to faves

العربية
中国
Français
Deutsch
Ελληνική
हिन्दी
Italiano
日本語
Português
Русский
Español