|
|
Line 1: |
Line 1: |
| A '''matrix grammar''' is a [[formal grammar]] in which instead of single productions, productions are grouped together into finite sequences. A production cannot be applied separately, it must be applied in sequence. In the application of such a sequence of productions, the rewriting is done in accordance to the each production in sequence, the first one, second one etc. till the last production has been used for rewriting. The sequences are referred to as '''matrices'''.
| | Getting paid money to work online isn't the easiest thing to do in the world, but it is possible. Here's more information in regards to [http://comoficarrico.comoganhardinheiro101.com ganhar dinheiro] look at comoficarrico.comoganhardinheiro101.com If this is something you wish to work with, then the tips presented above should have helped you. Take some time, do things the right way and then you can succeed. Start your online [http://www.comoganhardinheiro101.com/tag/opcoes-binarias/ como ganhar dinheiro] earning today by following the great advice discussed in this article. Earning money is not as hard as it may seem, you just need to know how to get started. By choosing to put your right foot forward, you are heading off to a great start earning money to make ends meet. <br><br><br> |
|
| |
|
| Matrix grammar is an extension of [[context-free grammar]], and one instance of a [[Controlled grammar]].
| | Make money online by selling your [http://comoconseguirdinheiro.comoganhardinheiro101.com/ talents]. Good music is always in demand and with today's technological advances, anyone with musical talent can make music and offer it for sale [http://www.comoganhardinheiro101.com/ganhar-dinheiro-pela-internet-com-opcoes-binarias/ ganhar dinheiro pela internet] to a broad audience. By setting up your own website como ganhar dinheiro and using ganhando dinheiro na internet social media for promotion, you can share your music with others and sell downloads with a free PayPal account.<br><br>It's easy to make money online. There is truth to the fact that you can start making money on the Internet as soon as you're done with this article. After all, so many others are making money online, why not you? Keep your mind open and you can make a lot of money. As you [http://www.comoganhardinheiro101.com/index.php como ganhar dinheiro pela internet] can see, there are many ways to approach the world of [http://comoficarrico.comoganhardinheiro101.com/ online income]. With various streams of income available, you are sure to find one, or two, that can help you with your income needs. Take this information to heart, put it to use and build your own online success story.<br><br>fee to watch your webinar at their convenience. Once it is in place, [http://www.comoganhardinheiro101.com/?p=73 ganhe dinheiro na internet] promotion and possibly answering questions will be your only tasks. |
| | |
| == Formal definition ==
| |
| A ''matrix grammar'' is an ordered quadruple
| |
| | |
| :<math>G = (V_N, V_T, X_0, M).</math> | |
| | |
| where
| |
| | |
| * <math>V_N</math> is a finite set of non-terminals
| |
| * <math>V_T</math> is a finite set of terminals
| |
| * <math>X_0</math> is a special element of <math>V_N</math>, viz. the starting symbol
| |
| * <math>M</math> is a finite set of non-empty sequences whose elements are ordered pairs
| |
| | |
| :<math>(P, Q), \quad P \in W(V) V_N W(V), \quad Q \in W(V), \quad V = V_N \cup V_T.</math>
| |
| | |
| The pairs are called productions, written as <math>P \to Q</math>. The sequences are called matrices and can be written as
| |
| | |
| :<math>m = [P_1 \to Q_1, \ldots, P_r \to Q_r].</math> | |
| | |
| Let <math>F</math> be the set of all productions appearing in the matrices <math>m</math> of a matrix grammar <math>G</math>. Then the matrix grammar <math>G</math> is of type-<math>i, i = 0, 1, 2, 3</math>, ''length-increasing'', ''linear'', ''<math>\lambda</math>-free'', ''context-free'' or ''context-sensitive'' if and only if the grammar <math>G_1 = (V_N, V_T, X_0, F)</math> has the following property.
| |
| | |
| For a matrix grammar <math>G</math>, a binary relation <math>\Rightarrow_G</math> is defined; also represented as <math>\Rightarrow</math>. For any <math>P, Q \in W(V)</math>, <math>P \Rightarrow Q</math> holds if and only if there exists an integer <math>r \ge 1</math> such that the words
| |
| | |
| :<math>\alpha_1,, \ldots, \alpha_{r + 1}, \quad P_1, \ldots, P_r, \quad R_1, \ldots, R_r, \quad, R^1, \ldots, R^r</math>
| |
| | |
| over V exist and
| |
| | |
| * <math>\alpha_i = P</math> and <math>\alpha_{r + 1} = Q</math>
| |
| * <math>m</math> is one of the matrices of <math>G</math>
| |
| * <math>\alpha_i = R_i P_i R^i</math> and <math>\alpha_{i + 1} = R_i Q_i R^i.</math>
| |
| | |
| If the above conditions are satisfied, it is also said that <math>P \Rightarrow Q</math> holds with <math>(m, R_1)</math> as the ''specifications''.
| |
| | |
| Let <math>\Rightarrow^{*}</math> be the reflexive transitive closure of the relation <math>\Rightarrow</math>. Then, the language generated by the matrix grammar <math>G</math> is given by
| |
| | |
| :<math>L(G) = \{P \in W(V_T) | X_0 \Rightarrow^{*} P\}.</math>
| |
| | |
| == Example ==
| |
| | |
| Consider the matrix grammar
| |
| | |
| <math>G = (\{S, X, Y\}, \{a, b, c\}, S, M)</math>
| |
| | |
| where <math>M</math> is a collection containing the following matrices:
| |
| | |
| <math>[S \rightarrow XY], \quad [X \rightarrow aXb, Y \rightarrow cY], \quad [X \rightarrow ab, Y \rightarrow c]</math>
| |
| | |
| These matrices, which contain only ''context-free'' rules generate the ''context-sensitive'' language
| |
| | |
| <math>L = \{a^nb^nc^n|n \ge 1\}.</math>
| |
| | |
| This example can be found on pages 8 and 9 of {{ref|Abraham1965}}.
| |
| | |
| == Properties ==
| |
| | |
| Let <math>MAT^\lambda</math> be the class of languages produced by matrix grammars, and <math>MAT</math> the class of languages produced by <math>\lambda</math>-free matrix grammars.
| |
| | |
| * Trivially, <math>MAT</math> is included in <math>MAT^\lambda</math>.
| |
| * All [[context-free languages]] are in <math>MAT</math>, and all languages in <math>MAT^\lambda</math> are [[recursively enumerable]].
| |
| * <math>MAT</math> is closed under [[Union (set theory)|union]], [[concatenation]], [[Intersection (set theory)|intersection]] with regular languages and permutation.
| |
| * All languages in <math>MAT</math> can be produced by a [[context-sensitive grammar]].
| |
| * There exists some languages in <math>MAT^\lambda</math> which can not be produced by a context-sensitive grammar.
| |
| * Each language produced by a matrix grammar with only one terminal symbol is regular.
| |
| | |
| == Open problems ==
| |
| | |
| It is not known whether there exist languages in <math>MAT^\lambda</math> which are not in <math>MAT</math>, and it is neither known whether <math>MAT^\lambda</math> contains languages which are not context-sensitive {{ref|Paun}}.
| |
| | |
| == References ==
| |
| * {{note|Abraham1965}} Ábrahám, S. Some questions of language theory. International Conference on Computational Linguistic, 1965. pp 1-11. [http://acl.ldc.upenn.edu/C/C65/C65-1001.pdf]
| |
| * {{note|Paun}} Gheorghe Păun, Membrane Computing: An Introduction, Springer-Verlag New York, Inc., Secaucus, NJ, USA, 2002. pp 30-32
| |
| | |
| [[Category:Formal languages]]
| |
Getting paid money to work online isn't the easiest thing to do in the world, but it is possible. Here's more information in regards to ganhar dinheiro look at comoficarrico.comoganhardinheiro101.com If this is something you wish to work with, then the tips presented above should have helped you. Take some time, do things the right way and then you can succeed. Start your online como ganhar dinheiro earning today by following the great advice discussed in this article. Earning money is not as hard as it may seem, you just need to know how to get started. By choosing to put your right foot forward, you are heading off to a great start earning money to make ends meet.
Make money online by selling your talents. Good music is always in demand and with today's technological advances, anyone with musical talent can make music and offer it for sale ganhar dinheiro pela internet to a broad audience. By setting up your own website como ganhar dinheiro and using ganhando dinheiro na internet social media for promotion, you can share your music with others and sell downloads with a free PayPal account.
It's easy to make money online. There is truth to the fact that you can start making money on the Internet as soon as you're done with this article. After all, so many others are making money online, why not you? Keep your mind open and you can make a lot of money. As you como ganhar dinheiro pela internet can see, there are many ways to approach the world of online income. With various streams of income available, you are sure to find one, or two, that can help you with your income needs. Take this information to heart, put it to use and build your own online success story.
fee to watch your webinar at their convenience. Once it is in place, ganhe dinheiro na internet promotion and possibly answering questions will be your only tasks.