New Results on Context-Free Tree Languages

Total Page:16

File Type:pdf, Size:1020Kb

New Results on Context-Free Tree Languages Technische Universität Dresden New Results on Context-Free Tree Languages Dissertation zur Erlangung des akademischen Grades Doctor rerum naturalium (Dr. rer. nat.) vorgelegt an der Technischen Universität Dresden Fakultät Informatik eingereicht am 20. Dezember 2017 von Dipl.-Inf. Johannes Osterholzer geboren am 07. Dezember 1984 in Simbach am Inn Gutachter: Prof. Dr.-Ing. habil. Dr. h.c./Univ. Szeged Heiko Vogler, Technische Universität Dresden (Betreuer) Prof. Dr. rer. nat. Andreas Maletti, Universität Leipzig Verteidigt am: 04. Mai 2018, Dresden Acknowledgements It may be a cliché to begin a thesis with the words “This thesis would not have been possible without. ”, followed by an exhaustive list of relatives, colleagues, friends, acquaintances, spiritual and worldly authorities, deities, favorite pet animals, and so forth. I cannot completely spare the reader such a concatenation, but I will try to keep it brief, and assure it comes from the heart. First of all, I am indebted to my parents for their continuous support and patience. As compensation, I wish you many pleasant hours with reading this thesis! Moreover, I want to thank my doctorate supervisor, Heiko Vogler, for his guidance, and for leaving me the freedom to decide on my own where to go next in my research. Thank you very much for this opportunity, Heiko! I also want to thank Andreas Maletti for agreeing to be second assessor for this work. Thank you for taking the time, Andreas! My colleagues at the Chair of Foundations of Programming also deserve my gratitude. In particular, I thank Toni Dietze for being a great office-mate and for the many counterexamples he provided, and Tobias Denkinger for his frequent flashes of inspiration. Of course, I must also thank Kerstin Achtruth, forher helpfulness and for her being the heart and soul of the institute. In the course of Toni’s, Luisa’s, and my research on inverse homomorphic closure of context-free tree languages, we came into contact with André Arnold. In our email correspondence, which we enjoyed very much, he showed us the flaws in our first proof attempts, and encouraged us to keep trying. Merci beaucoup! Finally, I want to thank Luisa for being there for me (which may not always have been easy), for mustering the strength to read all of the following pages (and spotting many mistakes), and of course for 3D printing the (objectively) best son (yet?) in the world! iii Contents This book is divided into chapters, which are divided into sections, which are divided into paragraphs, which are divided into sentences, which are divided into words, which are divided into letters. (Carl Linderholm, Mathematics Made Difficult) Introduction 1 1 Fundamental Notions and Properties 7 1.1 Mathematical Preliminaries . .8 1.1.1 Sets, Relations, and Functions . .8 1.1.2 Algebraic Structures . 11 1.1.3 Principles of Induction . 14 1.2 Formal Languages . 16 1.2.1 Words and Languages . 16 1.2.2 Recognizable Languages . 17 1.2.3 Context-Free Languages . 18 1.2.4 Indexed Languages . 22 1.2.5 Recursively Enumerable Languages and Complexity Classes . 24 1.3 Formal Tree Languages . 30 1.3.1 Trees and Tree Languages . 30 1.3.2 Recognizable Tree Languages . 40 1.3.3 Trees, Tuples, and Structural Induction . 41 1.3.4 Tree Homomorphisms and Tree Transformations . 42 1.4 Weighted Tree Languages and Weighted Tree Transformations . 45 2 Context-Free Tree Languages 47 2.1 Context-Free Tree Grammars . 51 2.1.1 Particular Restrictions . 52 2.1.2 Special Forms . 53 2.1.3 Examples . 54 2.1.4 Elementary Properties of Derivations . 58 2.1.5 Derivation Modes . 62 2.1.6 Linear Context-Free Tree Grammars . 65 v Contents 2.2 Pushdown Tree Automata . 71 2.3 Yield and Path Languages . 77 2.4 Closure Properties . 83 2.5 Complexity of Decision Problems . 86 2.6 Chapter Conclusion . 88 3 Decision Problems of Context-Free Tree Grammars 95 3.1 Space- and Time-Efficient Pushdown Tree Automata . 97 3.1.1 Derivations . 97 3.1.2 Succinct Pushdown Tree Automata . 97 3.1.3 Subdivisions of Symbols and Compact Systems . 99 3.1.4 Representing M] by a Finite Object . 108 3.2 The Uniform Membership Problem . 112 3.2.1 Upper Bound . 112 3.2.2 Lower Bound . 113 3.2.3 Uniform Membership of "-free Indexed Grammars . 115 3.3 The Non-Uniform Membership Problem . 117 3.4 The Infiniteness Problem . 122 3.5 Linear Context-Free Tree Grammars . 123 3.6 Chapter Conclusion . 127 4 Linear Context-Free Tree Languages and Inverse Linear Tree Homomorphisms 129 4.1 Linear Context-Free Tree Languages and Inverse Linear Tree Homomorphisms 132 4.1.1 Notation . 132 4.1.2 The tree language L ................................. 133 4.1.3 A normal form for G ................................ 137 4.1.4 Derivation Trees . 149 4.1.5 Dyck Words and Sequences of Chains . 152 4.1.6 A witness for L(G) = L ............................... 156 4.2 Linear Monadic Context-Free6 Tree Languages and Inverse Homomorphisms . 161 4.3 Chapter Conclusion . 167 5 Synchronous Context-Free Tree Transformations and Pushdown Tree Transducers 169 5.1 Synchronous Context-Free Tree Grammars . 171 5.1.1 Simple Synchronous Context-Free Tree Grammars . 181 5.1.2 Simple Synchronous Context-Free Tree Grammars in Normal Form . 187 5.2 Pushdown Extended Tree Transducers . 190 5.2.1 One-State Transducers . 194 5.2.2 Transducers in Normal Form . 196 5.3 Characterization of Simple Weighted Context-Free Tree Transformations . 199 5.4 Chapter Conclusion . 202 vi Contents 6 Footed and Linear Monadic Context-Free Tree Grammars 203 6.1 Footed and Linear Monadic Context-Free Tree Grammars . 205 6.2 Chapter Conclusion . 211 Conclusion 213 Index 215 Bibliography 221 vii Introduction Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing. (Abraham Lincoln) Context-Free Grammars Context-free grammars (cfg) rank among the fundamental models applied in computer science. Given by a finite number of context-free productions such as A aAb and A " , ! ! they permit describing a possibly infinite set of words, such as the formal language n n a b n N , 2 in finite space. They are an effective representation: there are algorithms to decide many interesting properties of the languages representable by a cfg – and one can even find efficient algorithms for quite some of those problems. Moreover, the context-free languages thus represented are mathematically well-behaved: given an arbitrary context-free language L and a reasonable operation ' on formal languages, in many cases the image '(L) is also context-free. The naturalness of the context-free languages is further underscored by the fact that they appear in many different guises – such as ALGOL-like languages, languages defined by (E)BNF definitions, by (simple) phrase-structure grammars, or by pushdown automata, solutions of particular equation systems, and many more. In summary, since the 1950s there has been much scientific progress on (i) complexity of decision problems of cfg, (ii) closure properties of cfg, and (iii) characterization results for cfg.1 Tree Languages Due to the associativity of monoids, there is not much structure to a word. The word aab is represented likewise by a ab and aa b. However, many topics in computer science necessitate structured data – be it to· represent the· syntax of a program, a structured document such as an XML file, or to symbolize the grammatical structure of a natural language sentence. The 1 And yet, there are still open problems on cfg; compare e.g. [150]. 1 Introduction epitomical means to represent such structure is by trees. For our example, we obtain two distinct trees · · a and b , · · a b a a corresponding to our two conceptions of the structure of aab from above. From the 1970s onward, tree language theory has evolved as a full-fledged subfield of formal language theory. Many well-known results, e.g. on recognizable sets, have been generalized from words to trees. While some generalizations are straightforward, there are also instances where the increment in structure that comes with trees complicates matters, or where properties that hold in the case of word languages are outright false when generalized to the tree case.2 Context-Free Tree Grammars So how to generalize cfg to the realm of trees? This question has been answered by Rounds, who defined a context-free tree grammar (cftg) to be given by a finite set of productions such as A A A A σ S α γ , σ γ , and . ! x1 x2 ! x1 x2 ! x1 x2 α x1 x2 x2 As we see, these productions are still context-free in the sense that each left-hand side contains precisely one nonterminal symbol – in this case, S or A. Since in a cftg, nonterminals may also occur as inner nodes of a tree, we must somehow represent a nonterminal’s subtrees. This role is fulfilled by the symbols x1, x2, . , called variables. In our example, S has no variables, it will therefore occur as a leaf. The nonterminal A has two variables x1 and x2; thus it will occur as a binary inner node. The right-hand side of a cftg production is a tree made up of nonterminal symbols, terminal symbols – in this case, σ, γ and α –, and the variables from the left-hand side, which may occur as leaves only. Given this description, the application of a production of form A(x1,..., xn) % to an occurrence of the nonterminal A in a tree is defined quite naturally: we replace! the occurrence of A by the right-hand side %, and substitute the subtrees of A for the respective occurrences of the variables x1,..., xn.
Recommended publications
  • Extended Finite Autómata O Ver Group S
    Extended finite autómata o ver group s Víctor Mitrana , Ralf Stiebe Abstract Some results from Dassow and Mitrana (Internat. J. Comput. Algebra (2000)), Griebach (Theoret. Comput. Sci. 7 (1978) 311) and Ibarra et al. (Theoret. Comput. Sci. 2 (1976) 271) are generalized for finite autómata over arbitrary groups. The closure properties of these autómata are poorer and the accepting power is smaller when abelian groups are considered. We prove that the addition of any abelian group to a finite automaton is less powerful than the addition of the multiplicative group of rational numbers. Thus, each language accepted by a finite au­ tomaton over an abelian group is actually a unordered vector language. Characterizations of the context-free and recursively enumerable languages classes are set up in the case of non-abelian groups. We investigate also deterministic finite autómata over groups, especially over abelian groups. Keywords: Finite autómata over groups; Closure properties; Accepting capacity; Interchange lemma; Free groups 1. Introduction One of the oldest and most investigated device in the autómata theory is the finite automaton. Many fundamental properties have been established and many problems are still open. Unfortunately, the finite autómata without any external control have a very limited accepting power. DirTerent directions of research have been considered for overcoming this limitation. The most known extensión added to a finite autómata is the pushdown memory. In this way, a considerable increasing of the accepting capacity has been achieved: the pushdown autómata are able to recognize all context-free languages. Another simple and natural extensión, related somehow to the pushdown memory, was considered in a series of papers [2,4,5], namely to associate an element of a given group to each configuration, but no information regarding the associated element is allowed.
    [Show full text]
  • A Second Course in Formal Languages and Automata Theory Jeffrey Shallit Index More Information
    Cambridge University Press 978-0-521-86572-2 - A Second Course in Formal Languages and Automata Theory Jeffrey Shallit Index More information Index 2DFA, 66 Berstel, J., 48, 106 2DPDA, 213 Biedl, T., 135 3-SAT, 21 Van Biesbrouck, M., 139 Birget, J.-C., 107 abelian cube, 47 blank symbol, B, 14 abelian square, 47, 137 Blum, N., 106 Ackerman, M., xi Boolean closure, 221 Adian, S. I., 43, 47, 48 Boolean grammar, 223 Aho, A. V., 173, 201, 223 Boolean matrices, 73, 197 Alces, A., 29 Boonyavatana, R., 139 alfalfa, 30, 34, 37 border, 35, 104 Allouche, J.-P., 48, 105 bordered, 222 alphabet, 1 bordered word, 35 unary, 1 Borges, M., xi always-halting TM, 209 Borwein, P., 48 ambiguous, 10 Boyd, D., 223 NFA, 102 Brady, A. H., 200 Angluin, D., 105 branch point, 113 angst Brandenburg, F.-J., 139 existential, 54 Brauer, W., 106 antisymmetric, 92 Brzozowski, J., 27, 106 assignment Bucher, W., 138 satisfying, 20 Buntrock, J., 200 automaton Burnside problem for groups, 42 pushdown, 11 Buss, J., xi, 223 synchronizing, 105 busy beaver problem, 183, 184, 200 two-way, 66 Axelrod, R. M., 105 calliope, 3 Cantor, D. C., 201 Bader, C., 138 Cantor set, 102 balanced word, 137 cardinality, 1 Bar-Hillel, Y., 201 census generating function, 133 Barkhouse, C., xi Cerny’s conjecture, 105 base alphabet, 4 Chaitin, G. J., 200 Berman, P., 200 characteristic sequence, 28 233 © Cambridge University Press www.cambridge.org Cambridge University Press 978-0-521-86572-2 - A Second Course in Formal Languages and Automata Theory Jeffrey Shallit Index More information 234 Index chess,
    [Show full text]
  • Applications of an Infinite Square-Free Co-Cfl”
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Theoretical Computer Science 49 (1987) 113-119 113 North-Holland APPLICATIONS OF AN INFINITE SQUARE-FREE CO-CFL” Michael G. MAIN Department of Computer Science, University of Colorado, Boulder, CO 80309, U.S.A. Walter BUCHER Institutes for information Processing, Technical Universify sf Graz, A-8010 Graz, Austria David HAUSSLER Department of Mathematics and Computer Science, University of Denver, Denver, CO 80208, U.S.A. Abstract. We disprove several conjectures about context-free languages. The proofs use the set of all strings which are nor prefixes of Thue’s infinite square-free sequence. This is a context-free language with an infinite square-free complement. 1. Introduction A square is an immediately repeated nonempty string, e.g., au, abub, newyorknewyork. A string x is called square-conruining if it contains a substring which is a square. For example, the string mississippi contains the segment iss twice in a row; in fact, mississippi contains a total of five squares. On the other hand, colorudo contains no squares (the character o appears several times, but not consecu- tively). A string without squares is called square-free. In a study of context-free languages, Autebert et al. [2,3] collected several conjectures about square-containing strings. One of the weakest conjectures was that no context-free language (CFL) could include all of the square-containing strings and still have an infinite complement. Contrary to this conjecture, such a language has recently been constructed [ 141.
    [Show full text]
  • On the Language of Primitive Words*
    CORE Metadata, citation and similar papers at core.ac.uk Provided by Elsevier - Publisher Connector Theoretical Computer Science ELSEVIER Theoretical Computer Science 161 (1996) 141-156 On the language of primitive words* H. Petersen *J Universitiit Stuttgart, Institut fiir Informatik, Breitwiesenstr. 20-22, D-70565 Stuttgart, Germany Received April 1994; revised June 1995 Communicated by P. Enjalbert Abstract A word is primitive if it is not a proper power of a shorter word. We prove that the set Q of primitive words over an alphabet is not an unambiguous context-free language. This strengthens the previous result that Q cannot be deterministic context-free. Further we show that the same holds for the set L of Lyndon words. We investigate the complexity of Q and L. We show that there are families of constant-depth, polynomial-size, unbounded fan-in boolean circuits and two-way deterministic pushdown automata recognizing both languages. The latter result implies efficient decidability on the RAM model of computation and we analyze the number of comparisons required for deciding Q. Finally we give a new proof showing a related language not to be context-free, which only relies on properties of semi-linear and regular sets. 1. Introduction This paper presents some further steps towards characterizing the set of primitive words over some fixed alphabet in terms of classical formal language theory and com- plexity. The notion of primitivity of words plays a central role in algebraic coding theory [28] and combinatorial theory of words [23,24]. Recently attention has been drawn to the language Q of all primitive words over an alphabet with at least two symbols.
    [Show full text]
  • Pattern Selector Grammars and Several Parsing Algorithms in the Context-Free Style
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector JOURNAL OF COMPUTER AND SYSTEM SCIENCES 30, 249-273 (1985) Pattern Selector Grammars and Several Parsing Algorithms in the Context-free Style J. GONCZAROWSKI AND E. SHAMIR* Institute of Mathematics and Computer Science, The Hebrew University of Jerusalem, Jerusalem 91904, Israel Received March 30, 1982; accepted March 5, 1985 Pattern selector grammars are defined in general. We concentrate on the study of special grammars, the pattern selectors of which contain precisely k “one% (0*( 10*)k) or k adjacent “one? (O*lkO*). This means that precisely k symbols (resp. k adjacent symbols) in each sen- tential form are rewritten. The main results concern parsing algorithms and the complexity of the membership problem. We first obtain a polynomial bound on the shortest derivation and hence an NP time bound for parsing. In the case k = 2, we generalize the well-known context- free dynamic programming type algorithms, which run in polynomial time. It is shown that the generated languages, for k = 2, are log-space reducible to the context-free languages. The membership problem is thus solvable in log2 space. 0 1985 Academic Press, Inc. 1. INTRODUCTION The parsing and membership testing algorithms for context-free (CF) grammars occupy a peculiar border position in the complexity hierarchy. The dynamic programming algorithm runs in 0(n3) steps [21], but more relined methods reduce the problem to matrix multiplication with O(n*+‘) run-time, where a < 1 ([20]. Earley’s algorithm runs in time O(n*) for grammars with bounded ambiguity [4].
    [Show full text]
  • Comparisons of Parikh's Condition
    J. Lopez, G. Ramos, and R. Morales, \Comparaci´onde la Condici´onde Parikh con algunas Condiciones de los Lenguajes de Contexto Libre", II Jornadas de Inform´atica y Autom´atica, pp. 305-314, 1996. NICS Lab. Publications: https://www.nics.uma.es/publications COMPARISONS OF PARIKH’S CONDITION TO OTHER CONDITIONS FOR CONTEXT-FREE LANGUAGES G. Ramos-Jiménez, J. López-Muñoz and R. Morales-Bueno E.T.S. de Ingeniería Informática - Universidad de Málaga Dpto. Lenguajes y Ciencias de la Computación P.O.B. 4114, 29080 - Málaga (SPAIN) e-mail: [email protected] Abstract: In this paper we first compare Parikh’s condition to various pumping conditions - Bar-Hillel’s pumping lemma, Ogden’s condition and Bader-Moura’s condition; secondly, to interchange condition; and finally, to Sokolowski’s and Grant’s conditions. In order to carry out these comparisons we present some properties of Parikh’s languages. The main result is the orthogonality of the previously mentioned conditions and Parikh’s condition. Keywords: Context-Free Languages, Parikh’s Condition, Pumping Lemmas, Interchange Condition, Sokolowski’s and Grant’s Condition. 1. INTRODUCTION The context-free grammars and the family of languages they describe, context free languages, were initially defined to formalize the grammatical properties of natural languages. Afterwards, their considerable practical importance was noticed, specially for defining programming languages, formalizing the notion of parsing, simplifying the translation of programming languages and in other string-processing applications. It’s very useful to discover the internal structure of a formal language class during its study. The determination of structural properties allows us to increase our knowledge about this language class.
    [Show full text]
  • Extended Finite Automata Over Groups
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Discrete Applied Mathematics 108 (2001) 287–300 Extended ÿnite automata over groups Victor Mitranaa;∗;1, Ralf Stiebeb aFaculty of Mathematics, University of Bucharest, Str. Academiei 14, 70109, Bucharest, Romania bFaculty of Computer Science, University of Magdeburg, P.O. Box 4120, D-39016, Magdeburg, Germany Received 18 November 1998; revised 4 October 1999; accepted 31 January 2000 Abstract Some results from Dassow and Mitrana (Internat. J. Comput. Algebra (2000)), Griebach (Theoret. Comput. Sci. 7 (1978) 311) and Ibarra et al. (Theoret. Comput. Sci. 2 (1976) 271) are generalized for ÿnite automata over arbitrary groups. The closure properties of these automata are poorer and the accepting power is smaller when abelian groups are considered. We prove that the addition of any abelian group to a ÿnite automaton is less powerful than the addition of the multiplicative group of rational numbers. Thus, each language accepted by a ÿnite au- tomaton over an abelian group is actually a unordered vector language. Characterizations of the context-free and recursively enumerable languages classes are set up in the case of non-abelian groups. We investigate also deterministic ÿnite automata over groups, especially over abelian groups. ? 2001 Elsevier Science B.V. All rights reserved. Keywords: Finite automata over groups; Closure properties; Accepting capacity; Interchange lemma; Free groups 1. Introduction One of the oldest and most investigated device in the automata theory is the ÿnite automaton. Many fundamental properties have been established and many problems are still open.
    [Show full text]
  • Position-And-Length-Dependent Context-Free Grammars – a New Type of Restricted Rewriting
    Position-and-Length-Dependent Context-Free Grammars – A New Type of Restricted Rewriting fCFL flCFL fldCFL eREG fedREG REG feREG CFL lCFL feCFL fedCFL fledCFL fleCFL fREG eCFL leCFL ledCFL Vom Fachbereich Informatik der Technischen Universität Kaiserslautern zur Erlangung des akademischen Grades Doktor der Naturwissenschaften (Dr. rer. nat) genehmigte Dissertation von Frank Weinberg Dekan: Prof. Dr. Klaus Schneider Vorsitzender der Prüfungskommission: Prof. Dr. Hans Hagen 1. Berichterstatter: Prof. Dr. Markus Nebel 2. Berichterstatter: Prof. Dr. Hening Fernau Datum der wissenschaftlichen Aussprache: 3. März 2014 D 386 Abstract For many decades, the search for language classes that extend the context-free laguages enough to include various languages that arise in practice, while still keeping as many of the useful properties that context-free grammars have – most notably cubic parsing time – has been one of the major areas of research in formal language theory. In this thesis we add a new family of classes to this field, namely position-and-length- dependent context-free grammars. Our classes use the approach of regulated rewriting, where derivations in a context-free base grammar are allowed or forbidden based on, e.g., the sequence of rules used in a derivation or the sentential forms, each rule is applied to. For our new classes we look at the yield of each rule application, i.e. the subword of the final word that eventually is derived from the symbols introduced by the rule application. The position and length of the yield in the final word define the position and length of the rule application and each rule is associated a set of positions and lengths where it is allowed to be applied.
    [Show full text]
  • On the Succinctness Properties of Unordered Context-Free Grammars M
    ON THE SUCCINCTNESS PROPERTIES OF UNORDERED CONTEXT-FREE GRAMMARS M. Drew Moshier and William C. Rounds Electrical Engineering and Computer Science Department University of Michigan Ann Arbor, Michigan 48109 1 Abstract ally in all cases. (Unfortunately, this does not solve the P - NP question!) We prove in this paper that unordered, or ID/LP Barton's reduction took a known NP-complete prob- grammars, are e.xponentially more succinct than context- lem, the vertex-coverproblem, and reduced it to the URP free grammars, by exhibiting a sequence (L,~) of finite for ID/LP. The reduction makes crucial use of grammars languages such that the size of any CFG for L,~ must whose production size can be arbitrarilylarge. Define the grow exponentially in n, but which can be described by fan-out of a grammar to be the largest total number of polynomial-size ID/LP grammars. The results have im- symbol occurrences on the right hand side of any produc- plications for the description of free word order languages. tion. For a CFG, this would be the maximum length of any RHS; for an ID/LP grammar, we would count sym- bols and their multiplicities. Barton's reduction does the 2 Introduction following. For each instance of the vertex cover problem, Context free grammars in immediate dominance and of size n, he constructs a string w and an ID/LP grammar of fanout proportional to n such that the instance has a linear precedence format were used in GPSG [3] as a skele- vertex cover if and only if the string is generated by the ton for metarule generation and feature checking.
    [Show full text]
  • Languages Generated by Iterated Idempotencies Klaus-Peter Leupold Isbn: Núm
    UNVERSITAT ROVIRA I VIRGILI LANGUAGES GENERATED BY ITERATED IDEMPOTENCIES KLAUS-PETER LEUPOLD ISBN: NÚM. 978-84-691-2653-0 / DL: T.1412-2008/73 Universitat Rovira i Virgili Facultat de Lletres Departament de Filologies Romàniques Languages Generated by Iterated Idempotencies PhD Dissertation Presented by Peter LEUPOLD Supervised by Juhani KARHUMÄKI and Victor MITRANA Tarragona, 2006 UNVERSITAT ROVIRA I VIRGILI LANGUAGES GENERATED BY ITERATED IDEMPOTENCIES KLAUS-PETER LEUPOLD ISBN: NÚM. 978-84-691-2653-0 / DL: T.1412-2008/73 UNVERSITAT ROVIRA I VIRGILI LANGUAGES GENERATED BY ITERATED IDEMPOTENCIES KLAUS-PETER LEUPOLD ISBN: NÚM. 978-84-691-2653-0 / DL: T.1412-2008/73 Supervisors Professor Juhani Karhumäki Department of Mathematics University of Turku 20014 Turku Finland and Professor Victor Mitrana Grup de Recerca de Linguïstica Matemàtica Universitat Rovira i Virgili Pça. Imperial Tàrraco 1 43005 Tarragona Catalunya Spain and Faculty of Mathematics and Computer Science Bucharest University Str. Academiei 14 70109 Bucure¸sti Romania UNVERSITAT ROVIRA I VIRGILI LANGUAGES GENERATED BY ITERATED IDEMPOTENCIES KLAUS-PETER LEUPOLD ISBN: NÚM. 978-84-691-2653-0 / DL: T.1412-2008/73 UNVERSITAT ROVIRA I VIRGILI LANGUAGES GENERATED BY ITERATED IDEMPOTENCIES KLAUS-PETER LEUPOLD ISBN: NÚM. 978-84-691-2653-0 / DL: T.1412-2008/73 Foreword Not being a big friend of rituals and formalities, I was thinking about leaving out the usual sermon of thank-yous that opens all the theses I have read. However, I now have strong doubts that I will explicitly express the gratitude I feel in the context of this thesis towards many people. Therefore I have decided to follow the tradition of listing them here anyway.
    [Show full text]
  • Comparisons of Parikh's Condition to Other Conditions for Context-Free Languages
    G. Ramos, J. Lopez, and R. Morales, \Comparisons of Parikhs conditions to other conditions for context-free languages", Theoretical Computer Science, vol. 202, pp. 231-244, 1998. NICS Lab. Publications: https://www.nics.uma.es/publications Theoretical Computer Science ELSEVIER Theoretical Computer Science 202 (1998)23 l-244 Note Comparisons of Parikh’s condition to other conditions for context-free languages G. Ramos-Jimenez, J. Lopez-Muiioz, R. Morales-Buena* E. T.S. de Ingenieria Infornuitica, Universidad de Mrilaga, Dpto. Lenguajes y Ciencias de la Computacibn, P.O.B. 4114. 29080-Mblaga, Spain Received May 1997; revised July 1997 Communicated by M. Nivat Abstract In this paper we first compare Parikh’s condition to various pumping conditions ~ Bar- Hillel’s pumping lemma, Ogden’s condition and Bader-Moura’s condition; secondly, to inter- change condition; and finally, to Sokolowski’s and Grant“s conditions. In order to carry out these comparisons we present some properties of Parikh’s languages. The main result is the orthogonality of the previously mentioned conditions and Parikh’s condition. 0 1998- Elsevier Science B.V. All rights reserved Keywords: Context-free languages; Parikh’s condition; Pumping lemmas; Interchange condi- tion; Sokolowski’s and Grant’s condition 1. Introduction The context-free grammars and the family of languages they describe, context free languages, were initially defined to formalize the grammatical properties of natural languages. Afterwards, their considerable practical importance was noticed, specially for defining programming languages, formalizing the notion of parsing, simplifying the translation of programming languages and in other string-processing applications. It is very useful to discover the internal structure of a formal language class during its study.
    [Show full text]
  • Generalized Results on Monoids As Memory
    Generalized Results on Monoids as Memory Ozlem¨ Salehi Flavio D’Alessandro Bo˘gazic¸i University Universit`adi Roma “La Sapienza” Department of Computer Engineering Dipartimento di Matematica Bebek 34342 Istanbul,˙ Turkey∗ Piazzale Aldo Moro 2, 00185 Roma, Italy [email protected] Bo˘gazic¸i University Department of Mathematics Bebek 34342, Istanbul,˙ Turkey† [email protected] A. C. Cem Say Bo˘gazic¸i University Department of Computer Engineering Bebek 34342 Istanbul,˙ Turkey [email protected] We show that some results from the theory of group automata and monoid automata still hold for more general classes of monoids and models. Extending previous work for finite automata over n n commutative groups, we prove that the context-free language L1∗ = {a b : n ≥ 1}∗ can not be rec- ognized by any rational monoid automaton over a finitely generated permutable monoid. We show that the class of languages recognized by rational monoid automata over finitely generated com- pletely simple or completely 0-simple permutable monoids is a semi-linear full trio. Furthermore, we investigate valence pushdown automata, and prove that they are only as powerful as (finite) va- lence automata. We observe that certain results proven for monoid automata can be easily lifted to the case of context-free valence grammars. 1 Introduction A group automaton is a nondeterministic finite automaton equipped with a register which holds an el- ement of a group. The register is initialized with the identity element of the group, and modified by applying the group operation at each step. An input string is accepted if the register is equal to the iden- tity element at the end of the computation.
    [Show full text]