Picture Array Generation Using Pure 2D Context-Free Grammar Rules
Pure two-dimensional context-free grammar (P2DCFG) is a simple but effective non-isometric 2D grammar model to generate picture arrays. This 2D grammar uses only one kind of symbol as in a pure string grammar and rewrites in parallel all the symbols in a column or row by a set of context-free type rules. P2DCFG and a variant called (l / u)P2DCFG, which was recently introduced motivated by the “leftmost” rewriting mode in string context-free grammars, have been investigated for different properties. In this paper we introduce another variant of P2DCFG that corresponds to “rightmost” rewriting in string context-free grammars. The resulting grammar is called (r / d)P2DCFG and rewrites in parallel all the symbols only in the rightmost column or the lowermost row of a picture array by a set of context-free type rules. Unlike the case of string context-free grammars, the picture language families of P2DCFG and the two variants (l / u)P2DCFG and (r / d)P2DCFG are mutually incomparable, although they are not disjoint. We also examine the effect of regulating the rewriting in a (r / d)P2DCFG by suitably adapting two well-known control mechanisms in string grammars, namely, control words and matrix control.
The authors are grateful to the referees for their very useful comments which helped improve the presentation of the paper.
- 4.Freund, R.: Control mechanisms on #-context-free array grammars. In: Păun, Gh. (ed.) Mathematical Aspects of Natural and Formal Languages, pp. 97–137. World Scientific Publishing, Singapore (1994)Google Scholar
- 8.Mishra, J.: Classification of linear fractals through L-system. In: Proceedings of the International Conferences Emerging Trends in Engineering and Technology, pp. 1–5 (2008)Google Scholar
- 11.Rosenfeld, A., Siromoney, R.: Picture languages - a survey. Lang. Des. 1, 229–245 (1993)Google Scholar
- 13.Rozenberg, G., Salomaa, A. (eds.): Handbook of Formal Languages (3 Volumes). Springer, Berlin (1997)Google Scholar
- 19.Wang, P.S.-P. (ed.): Array Grammars, Patterns and Recognizers. Series in Computer Science, vol. 18. World Scientific, Singapore (1989) Google Scholar