The WHILE Hierarchy of Program Schemes is Infinite

Size: px
Start display at page:

Download "The WHILE Hierarchy of Program Schemes is Infinite"

Transcription

1 The WHILE Hierarchy of Program Schemes is Infinite Can Adam Alayrak and Thomas Noll RWTH Aachen Ahornstr. 55, Aachen, Germany and fax: Astract. We exhiit a sequence S n (n 0) of while program schemes, i. e., while programs without interpretation, with the property that the while nesting depth of S n is n, and prove that any while program scheme which is scheme equivalent to S n, i. e., equivalent for all interpretations over aritrary domains, has while nesting depth at least n. This shows that the while nesting depth imposes a strict hierarchy (the while hierarchy) when programs are compared with respect to scheme equivalence and contrasts with Kleene s classical result that every program is equivalent to a program of while nesting depth 1 (when interpreted over a fixed domain with arithmetic on non negative integers). Our proof is ased on results from formal language theory; in particular, we make use of the notion of star height of regular languages. 1 Introduction When comparing programming languages, one often has a vague impression of one language eing more powerful than another. However, a asic result of the theory of computaility is that even simple models of computation like Turing machines, while programs (with arithmetic), and partial recursive functions are universal in the following sense: They descrie exactly the class of computale functions, according to Church s thesis. The proof uses encodings of functions y non negative integers with the help of zero and successor function. Thus, if the programming language under consideration supports arithmetic on non negative integers, then it is capale of simulating any effective control structure. A compiler implementing a programming language could in principle adopt this method. In general, such languages do not only specify computations over non negative integers ut they handle data types like floating point numers, character strings, and trees as well. Additionally, modern programming languages allow recursion as means for the description of algorithms. In principle, these extended capailities could e implemented (1) y emedding them in the setting of non negative integers using appropriate encodings, (2) y simulating their ehavior as a computale function, and (3) y translating the result

2 ack into the original context. However, it is clear that this approach is of purely theoretical interest; there is no hope for achieving good efficiency in this way. Instead these concepts are implemented directly: for example recursion is usually translated into iterative algorithms using a run time stack. Thus a comparison of the computational power of programming languages requires the distinction etween the control structures of a program and other aspects like the semantic domains involved in the computations. Therefore we use the approach to decompose a program into a program scheme and an interpretation (which comprises the semantic domain). We study only the scheme part as an astraction of the family of all programs represented y this scheme. In this generalized approach, two schemes are considered to e equivalent iff the concrete programs otained y addition of an interpretation are equivalent for all interpretations. It is well known that the schematic concept of recursion is more powerful than that of iteration [12], that recursion equals iteration + stack [2], and that iteration equals while + Boolean variales [1]. Unfortunately the question of scheme equivalence is undecidale in the general case [11]. The reason is not, as one might expect, the large numer of interpretations which one has to apply for deciding scheme equivalence it suffices to consider free interpretations (or Herrand interpretations) only. Instead, the undecidaility is caused y the structure of the state space of the program, more precisely the state space has too many components. If we astract from the state space we otain simple or monadic schemes for which the question of scheme equivalence ecomes decidale in most cases. In this paper we consider the class of Dijkstra schemes which are inductively uilt up from atomic statements y means of sequential composition, ranching instructions, and while loops. A characterization of scheme equivalence via regular languages is exploited: the star height of the regular language associated with a Dijkstra scheme yields a lower ound for the while nesting depth required. We exhiit a sequence S n (n 0) of Dijkstra schemes with the property that the while nesting depth of S n is n, and prove (via the correspondence to regular languages) that any Dijkstra scheme which is equivalent to S n has while nesting depth at least n. This shows that the while nesting depth of Dijkstra schemes imposes a strict hierarchy with respect to the computational power of the corresponding class of programs the while hierarchy. It contrasts with Kleene s classical result [10] that every program is equivalent to a program of while nesting depth 1 (eside some fixed numer of other loops) when interpreted over a fixed domain with arithmetic on non negative integers. 2 Dijkstra schemes Here we introduce the class of Dijkstra schemes. The only construction elements for Dijkstra schemes are sequential composition, ranching, and conditional it-

3 eration. Thus, Dijkstra schemes can e regarded as while programs without interpretations. Let Ω, Π e non empty, finite, and disjoint sets of unary function symols and unary predicate symols. (Ω, Π) is called a signature. The set BExp(Π) of Boolean expressions over Π is the smallest set which contains Π and which is closed under the Boolean operations (i. e., and ). The class Dij(Ω, Π) of Dijkstra schemes over Ω and Π is the smallest set which, for every S, S 1, S 2 Dij(Ω, Π) and BExp(Π), satisfies the following conditions: Ω Dij(Ω, Π) (S 1 ; S 2 ) Dij(Ω, Π) if then S 1 else S 2 fi Dij(Ω, Π) while do S done Dij(Ω, Π). We allow to omit races. Example 1. Let Ω := {f, g, h} and Π := {p}. Then is a Dijkstra scheme. f; while p do (g; h) done A (Ω, Π) interpretation, or interpretation for short, is a pair A := A; α where A is a non empty set, the domain of the interpretation, and α is a mapping which assigns a predicate α(p) : A {0, 1} to every symol p Π and a total function α(f) : A A to every symol f Ω. Instead of α(f) we write f A. The class of all (Ω, Π) interpretations is denoted y Int(Ω, Π). A pair (S, A) consisting of a Dijkstra scheme S Dij(Ω, Π) and an interpretation A Int(Ω, Π) is called a Dijkstra program. The semantics of (S, A) is the (partial) mapping [S ] A : A A, given as follows: f A (a), if S Ω [S 2 ] A ([S 1 ] A (a)), if S = (S 1 ; S 2 ) [S 1 ] A (a), if S = if then S 1 else S 2 fi and [] A (a) = 1 [S ] A (a) := [S 2 ] A (a), if S = if then S 1 else S 2 fi and [] A (a) = 0 [S ] k A (a), if S = while do S done and the while condition holds undefined else where [] A (a) is the truth value of on input a which is induced y the interpretation A and where the while condition depending on, S and a is given y i {0,..., k 1} : [] A ([S ] i A (a)) = 1 and [] A ([S ] k A (a)) = 0.

4 As usual [] A ([S ] i A (a)) = 1 means that the ith iteration [S ] i A of the mapping [S ] A applied to a is defined and that the results satisfies condition. Example 2. Let S the Dijkstra scheme in Example 1 and A := IN 2 ; α (IN is the set of all non negative integers) with f A (m, n) := (m, 1), g A (m, n) := (m, m n), h A (m, n) := (max{0, m 1}, n) and p A (m, n) = 1 m 0. Then [S ] A computes the factorial function, more precisely [S ] A (m, n) = (0, m!). As mentioned in the introduction we define: Two Dijkstra schemes S 1, S 2 Dij(Ω, Π) are (strongly) equivalent iff the equation [S 1 ] A = [S 2 ] A is valid for all interpretations A Int(Ω, Π). We write S 1 S 2 iff S 1 and S 2 are equivalent. Hence scheme equivalence comprises program equivalence which expresses that, under a fixed interpretation, oth programs compute the same function. 3 Characterization of Dijkstra scheme equivalence Now we give a characterization of scheme equivalence in terms of formal languages. The language L S which we associate with a given Dijkstra scheme S is a regular language capturing the full computation potential of S. To simulate the ehaviour of S under aritrary interpretations, we especially record the decisions which have een taken in the Boolean conditions. The languages we define use Boolean vectors for this protocol; a word of this language consists of function symols and Boolean vectors in alternation. The central point is the representation of scheme composition y a conditional product [9] of the corresponding languages. It allows two computations to e concatenated only if their adjacent Boolean vectors coincide. For a set Ω of unary function symols and a set Π = {p 1,..., p n } of predicate symols with n elements let B := {0, 1} n e the set of all Boolean vectors of length n. We associate with each Boolean expression BExp(Π) a set of Boolean vectors L B y induction: for p i Π let L pi := {(x 1,..., x i 1, 1, x i+1,..., x n ) x 1,..., x i 1, x i+1,..., x n {0, 1}}, and L 1 2 := L 1 L 2, L 1 2 := L 1 L 2, and L := B \ L. Now we are ready to specify the Dijkstra scheme language L S of an aritrary scheme

5 S Dij(Ω, Π). It is given y the following inductive definition: L f :=B {f} B L (S1;S 2) :=L S1 L S2 L if then S1 else S 2 fi :=(L L S1 ) ((B \ L ) L S2 ) ( ) L while do S done := (L L S ) i (B \ L ) i IN where L 1 L 2 is the conditional product defined y L 1 L 2 := {wβv β B, w (BΩ), v (ΩB), wβ L 1 and βv L 2 } and L 0 := B and L i+1 := L i L for every i IN. The class of all Dijkstra scheme languages over Ω and Π is denoted y L Dij (Ω, Π). Example 3. Let S e the Dijkstra scheme in Example 1, and let B := (0 + 1). Then L S is the language denoted y the regular expression Bf(1gBh) 0. Proposition 4. (Characterization of Dijkstra scheme equivalence) For any two Dijkstra schemes S 1, S 2 Dij(Ω, Π) the following condition holds: S 1 S 2 L S1 = L S2. Proof. It is well known that every Dijkstra scheme is translatale into an equivalent Ianov scheme, which can e considered as an uninterpreted (monadic) flowchart (see [7], [6], [8], and [13] for further details). For this class of schemes, I. I. Ianov gave a language theoretic description of equivalence y assigning to every scheme a deterministic finite automaton whose recognized language characterizes the scheme equivalence. The comination of oth techniques yields our proof: y induction on the syntactic structure of S Dij(Ω, Π) it is possile to show that the language associated with the equivalent Ianov scheme trans(s) and the language L S assigned to S coincide. Example 5. Let S once again e the Dijkstra scheme in Example 1 and S e the Dijkstra scheme f; if ( p) then while p do (g; h) done else (g; h); while p do (g; h) done fi Let B := (0+1). Then the Dijkstra scheme language L S is the language denoted y the regular expression (Bf0 ) + ( Bf1gBh(1gBh) 0 ). Since it is the same language as the Dijkstra scheme language for S we can deduce y Proposition 4 that S and S are equivalent.

6 4 The star height of regular languages In order to prove the main theorem we use the concept of star height of regular languages. After presenting some known facts concerning the star height, we show that there exists an infinite family of regular languages (L n ) n IN such that every language L n of this family has star height n. This knowledge will e exploited in the next section. We use to denote the empty language, ε to denote the language which consists of the empty word and L(α) for the language denoted y the regular expression α. The set of all regular expressions over a finite alphaet Σ is denoted y RE(Σ). The star height of a regular expression is the maximal numer of nested stars which appear in this expression, and the star height of a regular language is the minimal star height of all regular expressions denoting this language, more formally one defines for a finite alphaet Σ sh( ) = sh(ε) = sh(a) = 0 for all symols a Σ sh(αβ) = sh(α + β) = max{sh(α),sh(β)} for α, β RE(Σ) sh(α ) = sh(α) + 1 for α RE(Σ), and for a regular language L Σ is called the star height of L. sh(l) := min{sh(α) α RE(Σ) and L(α) = L} Example 6. (Star height [3]) Let Σ := {a, }. The regular expression (a ) has star height 2 ut the language L((a ) ) denoted y this regular expression has at most star height 1, ecause L(ε + (a + ) ) = L((a ) ) and sh(ε + (a + ) ) = 1. Furthermore it is easy to show that a regular language is finite iff it has zero star height. So we get sh(l((a ) )) = 1. In 1963 L. C. Eggan has raised up the question whether there are languages of aritrary star height over a two letter alphaet [5]. F. Dejean and M. P. Schützenerger gave a positive answer to this question y showing that for every n IN \ { 0 } the language L n over the alphaet {a, } which is recognized y the deterministic finite automaton A n

7 a q 1 a q 0 a q 2n 1 a q 2 q 2 n 2 a a q 3 a with 2 n states has star height n. We pick up the technique which has een used in [4] for showing that in a special suclass of regular languages, the class L Dij (Ω, Π) of all Dijkstra scheme languages, there also exist languages of aritrary star height. The following well known lemma, which we need in the next section, is easy to prove. Lemma 7. (Star height of homomorphic images) Let Σ e a finite alphaet and h : Σ Σ e a homomorphism on Σ. Then for every regular language L Σ : sh(h(l)) sh(l). The next lemma presents the regular language family y which we are going to estalish the connection to Dijkstra schemes. Lemma 8. (Star height of a certain family of regular languages) Let (α n ) n IN e a family of regular expressions over the alphaet Σ := {f, g}, defined inductively y α 0 α 1 := ε := (fg) α n+1 := (f 2n α n fgg 2n α n fg) (for n IN \ { 0 } ). (1) Then for all n IN it holds that sh(l(α n )) = n. Proof. To identify the star height of a language given y a regular expression, one has to prove the nonexistence of equivalent expressions of lower star height. Here we are forced to give a proof for every parameter n IN. The technique applied in [4] (cf. also [14] for a similar approach) can e used to otain this

8 result. Here we only sketch the proof. For every n IN \ { 0 }, let K n e a class of regular languages which satisfies the following three conditions (a), (), and (c): (a) For every language L in K n z w L : w f w g = z, where w f and w g denote the numer of occurrences of f and g, respectively, in the word w. () For m, n IN \ { 0 } let w (n,m) {f, g} e given y w (1,m) := fg ( ) mfgg ( ) w (n+1,m) := f 2n 2 n mfg w(n,m) w(n,m). For every n IN \ { 0 }, the n suword index set of a language L is T L n := {m IN \ { 0 } (w (n,m) ) m is a suword of a word in L}. The cardinality of this set, which is called n suword index of L, must e infinite for each L in K n : T L n =, i. e. there are (for every index n of K n ) infinitely many suwords of the form (w (n,m) ) m in L. (c) Every element L K n is minimal with respect to the star height among all languages which satisfy the conditions (a) and (), i. e. for all regular languages L over {f, g} which also fulfil conditions (a) and () it holds that sh(l) sh(l ). Thus all languages in K n have the same star height. It is easy to see that, for every n IN\ { 0 }, L(α n ) (cf. (1)) has properties (a) and (). Hence, sh(l) n for every L K n. The proof of the reverse inequation is shown y induction on n. For the case where n = 1 this follows from the fact that every infinite regular language has a star height of at least 1. For the inductive step we consider a decomposition of L K n+1 in a finite union of expressions of the form γ 0 γ 1γ 2 γ 3... γ 2k 1 γ 2k with sh(γ i ) < sh(l) and verify that there is an index i 0 such that γ i0 meets (a) and () for the parameter n. With the inductive assumption we conclude sh(l) n + 1.

9 5 Nested WHILE loops in Dijkstra schemes We now consider Dijkstra schemes with nested while loops. We want to know whether it is possile to restrict the numer of nested while loops if we do not use coding mechanisms like in recursion theory, and if we do not require any special data structures. We will show that such a limit does not exist in general. To this aim we exploit our characterization of Dijkstra scheme equivalence y formal languages and the star height property of regular languages. According to our preliminary definitions, the proof must e founded on a fixed finite signature of function and predicate symols. Before studying this situation we consider the simpler case where the set of predicate symols may ecome aritrarily large. In this case it suffices to consider the value language val(s) of a Dijkstra scheme S to estalish the connection to formal language theory. It collects all execution paths of S, represented y the sequence of function symols as they are applied, and is defined as the homomorphic image of the Dijkstra scheme language L S under the homomorphism which erases all Boolean vectors. Proposition 9. (Value language of a Dijkstra scheme) Let Ω e a set of unary function symols and R Ω e an aritrary non empty regular language over Ω. Then there exist a set Π R of predicate symols and a Dijkstra scheme S R Dij(Ω, Π R ) such that val(s R ) = R. Proof. The proof is an easy induction on the set RE(Ω) of all regular expressions over Ω, where for the inductive step we assume that the sets of predicate symols of the constituent schemes are disjoint and where we otain one of the schemes if p then S R1 else S R2 fi with a new predicate symol p for the case R 1 R 2 (S R1 ; S R2 ) for R 1 R 2 while p do S R1 done with a new predicate symol p for the case R 1. Note that the while nesting depth of the resulting scheme coincides with the star height of the regular expression representing R. Corollary 10. (Star height of Dijkstra scheme languages with infinite signatures) Let Ω e a set of function symols with at least two elements and Π e an aritrary large set of predicate symols. Then for every n IN there exists a Dijkstra scheme S n Dij(Ω, Π) such that sh(l Sn ) = n, i. e. the star height of Dijkstra scheme languages over infinite signatures is unounded.

10 Proof. We use the following result, cited in Section 4: In the class of regular languages over an alphaet with at least two elements there exists, for every numer n IN, a regular language L n such that sh(l n ) = n. Let n IN, and let α e a regular expression with L(α) = L n and sh(α) = n. According to Proposition 9, there exists (a set Π of predicate symols and) a Dijkstra schema S with val(s) = L n, constructed inductively on the structure of α. Because its value language val(s) is a homomorphic image of the scheme language L S, Lemma 7 yields sh(l S ) sh(val(s)) = n. (2) As mentioned aove, since S has een uilt up according to α, it contains at most n nested while loops. On the other hand, only while loops yield a contriution to the star height of the scheme language L S. Thus we otain sh(l S ) n and hence, y (2), sh(l S ) = n. The question arises whether it is really necessary to introduce new predicate symols, as in the proof of Theorem 9. If it was possile to reuse them, then our proof could e ased on a fixed signature. The following example illustrates the difficulties. Example 11. Let Π := {p} and Ω := {f, g, h}. We consider the Dijkstra schemes S 1 and S 2 over this signature where and S 1 := if p then f else g fi S 2 := h. Then we get L S1 = {1f0, 1f1, 0g0, 0g1} and L S1 = {0h0, 0h1, 1h0, 1h1} and therefore val(s 1 ) = {f, g} and val(s 2 ) = {h}. If in the case R 1 R 2 of the aove construction we would not introduce a new predicate symol then we would otain the Dijkstra scheme S = if p then (if p then f else g fi) else h fi, which has the scheme language L S = {1f0, 1f1, 0h0, 0h1} and thus the value language val(s) = {f, h}. But then val(s) = {f, h} {f, g, h} = val(s 1 ) val(s 2 ). The reason for this is simply that g ecomes never applied in any interpretation ecause of the repeated use of the predicate symol p S is not free.

11 Now we present our proof of the hierarchy result with a fixed signature. We assume that we have at least one predicate symol p and at least two function symols. In the discussion at the end of the paper we will explain why we cannot extend our proof technique to signatures where we have one function symol only. The set of predicate symols which we need in the proof of Theorem 9 must contain at least as many symols as the numer of occurrences of + and in the regular expression where we start from. To restrict the numer of predicate symols we should sparingly use the symol +, and we should reuse predicate symols. The aove example shows that such a reuse can at est e accomplished y employing free Dijkstra schemes, i. e. Dijkstra schemes where etween two condition evaluations a computation (function application) must take place. This can e achieved y appending function symols after while loops. An appropriate family (S n ) n IN of Dijkstra schemes over Ω = {f, g} and Π := {p} is given as follows. For every n IN, let f 2n := f;... ; f }{{} 2 n times (g 2n analogously). Then (S n ) n IN is defined as S 0 S 1 :=while (p p) do f; g done :=while p do f; g done; S n+1 :=while p do f 2n ; S n ; f; g; g 2n ; S n ; f; g; done; (3) (where n 1). Now the following theorem holds: Theorem 12. (Star height of Dijkstra scheme languages over a fixed signature) Let Ω := {f, g} and Π := {p}. For n IN let S n Dij(Ω, Π) e the Dijkstra schemes defined in (3). The Dijkstra scheme language L Sn has the following property: sh(l Sn ) = n. Proof. An easy induction over n IN shows for the value language val(s n ): val(s n ) = L(α n ), where α n is the regular expression defined in Lemma 8. According to Proposition 8 we get sh(val(s n )) = n (for every n IN). As in the proof of Corollary 10, Lemma 7 on the star height of homomorphic images and the oservation that only while loops can contriute to the star height of a Dijkstra scheme language yield n (8) = sh(val(s n )) (7) sh(l Sn ) n, which implies that sh(l Sn ) = n.

12 From this theorem we can deduce a corollary which shows clearly the effect of the different notions of equivalence (program equivalence, scheme equivalence) and of the encodings y means of special data structures. While from the standpoint of recursion theory the numer of nested loops can e ounded, such a limit does not exist from the standpoint of program scheme theory (ecause otherwise there would exist a limit on the star height of Dijkstra scheme languages). We express the main result of this section: Corollary 13. (The WHILE Hierarchy of Dijkstra schemes) The hierarchy of nested while loops in Dijkstra schemes is strict, i. e. for every n IN there exists a Dijkstra scheme S n+1 such that S n+1 uses n + 1 nested while loops and S n+1 cannot e equivalent to any Dijkstra scheme with less than n + 1 nested while loops. 6 Conclusion and Discussion Conclusion: By comining two well known techniques we characterized the equivalence of Dijkstra schemes which respect to the inductive structure of the class of Dijkstra schemes. We have shown, y considering the star height of Dijkstra scheme languages, that the renounce of coding mechanism and special data structures leads to an infinite hierarchy concerning the numer of nested while loops. Discussion: Unfortunately Theorem 12 does not express anything aout minimal signatures, i. e. signatures with one predicate symol and one function symol only. Since value languages of a Dijkstra scheme over such a signature are regular languages over a one letter alphaet, the star height of the value language can only e 0 or 1. So the technique we used in our proof can not e extended to such a signature, ecause the inequality sh(val(s n )) sh(l Sn ) degenerates to 0 sh(l Sn ) or 1 sh(l Sn ), respectively. Thus the question is still open in this setting. Since it suffices to identify languages of aritrary star height in the homomorphic images of the scheme languages, a possile approach might e a homomorphism which erases the function symols instead of the Boolean vectors, yielding a regular language over the two letter alphaet of truth values. Acknowledgements: We would like to thank Klaus Indermark for the premise of this work, as well as Markus Mohnen and Thomas Wilke for the effort of reading a draft version of this paper. References 1. Corrado Böhm and Giuseppe Jacopini. Flow diagrams, Turing machines and languages with only two formation rules. Communications of the ACM, 9(5): , 1966.

13 2. Steven Brown, David Gries, and Thomas Szymanski. Program schemes with pushdown stores. SIAM Journal on Computing, 1: , Rina S. Cohen and Janusz A. Brzozowski. General properties of star heigt of regular events. Journal of Computer and System Sciences, 4: , F. Dejean and M. P. Schützenerger. On a question of Eggan. Information and Control, 9:23 25, L. C. Eggan. Transition graphs and the star height of regular events. The Michigan Mathematical Journal, 10: , Iu. I. Ianov. On matrix program schemes. Communications of the ACM, 12(1):3 6, Iu. I. Ianov. On the equivalence and transformation of program schemes. Communications of the ACM, 10(1):8 12, Iu. I. Ianov. The logical schemes of algorithms. Prolems of Cyernetics, 1:82 140, Klaus Indermark. On a class of schematic languages. In R. Aguilar, editor, Formal Languages and Programming, Proceedings of a Seminar Organized y UAM-IBM Scientific Center, pages 1 13, S. C. Kleene. General recursive functions of natural numers. Mathematische Annalen, 112: , D. C. Luckham, D. M. R. Park, and M. S. Paterson. On formalised computer programs. Journal of Computer and System Sciences, 4(3): , Michael S. Paterson and Carl E. Hewitt. Comparative schematology. Technical Report AI memo 201, MIT AI La, Pulications Office, 545 Technology Sq. Camridge, MA 02139, Joseph D. Rutledge. On Ianov s program schemata. Journal of the ACM, 11(1):1 9, Arto Salomaa. Jewels of formal language theory. Computer Science Press, 1981.

Reversal of regular languages and state complexity

Reversal of regular languages and state complexity Reversal of regular languages and state complexity Juraj Šeej Institute of Computer Science, Faculty of Science, P. J. Šafárik University Jesenná 5, 04001 Košice, Slovakia juraj.seej@gmail.com Astract.

More information

SUFFIX TREE. SYNONYMS Compact suffix trie

SUFFIX TREE. SYNONYMS Compact suffix trie SUFFIX TREE Maxime Crochemore King s College London and Université Paris-Est, http://www.dcs.kcl.ac.uk/staff/mac/ Thierry Lecroq Université de Rouen, http://monge.univ-mlv.fr/~lecroq SYNONYMS Compact suffix

More information

Plan for Today and Beginning Next week (Lexical Analysis)

Plan for Today and Beginning Next week (Lexical Analysis) Plan for Today and Beginning Next week (Lexical Analysis) Regular Expressions Finite State Machines DFAs: Deterministic Finite Automata Complications NFAs: Non Deterministic Finite State Automata From

More information

This is a repository copy of Attributed Graph Transformation via Rule Schemata : Church-Rosser Theorem.

This is a repository copy of Attributed Graph Transformation via Rule Schemata : Church-Rosser Theorem. This is a repository copy of Attriuted Graph Transformation via Rule Schemata : Church-Rosser Theorem. White Rose Research Online URL for this paper: http://eprints.whiterose.ac.uk/9/ Version: Accepted

More information

Pseudo-automata for generalized regular expressions

Pseudo-automata for generalized regular expressions Pseudo-automata for generalized regular expressions B. F. Melnikov A. A. Melnikova Astract In this paper we introduce a new formalism which is intended for representing a special extensions of finite automata.

More information

Upper Bounds for Stern s Diatomic Sequence and Related Sequences

Upper Bounds for Stern s Diatomic Sequence and Related Sequences Upper Bounds for Stern s Diatomic Sequence and Related Sequences Colin Defant Department of Mathematics University of Florida, U.S.A. cdefant@ufl.edu Sumitted: Jun 18, 01; Accepted: Oct, 016; Pulished:

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 September 2, 2004 These supplementary notes review the notion of an inductive definition and

More information

On the Accepting Power of 2-Tape Büchi Automata

On the Accepting Power of 2-Tape Büchi Automata On the Accepting Power of 2-Tape Büchi Automata Equipe de Logique Mathématique Université Paris 7 STACS 2006 Acceptance of infinite words In the sixties, Acceptance of infinite words by finite automata

More information

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor

More information

#A50 INTEGERS 14 (2014) ON RATS SEQUENCES IN GENERAL BASES

#A50 INTEGERS 14 (2014) ON RATS SEQUENCES IN GENERAL BASES #A50 INTEGERS 14 (014) ON RATS SEQUENCES IN GENERAL BASES Johann Thiel Dept. of Mathematics, New York City College of Technology, Brooklyn, New York jthiel@citytech.cuny.edu Received: 6/11/13, Revised:

More information

Foundations of Informatics: a Bridging Course

Foundations of Informatics: a Bridging Course Foundations of Informatics: a Bridging Course Week 3: Formal Languages and Semantics Thomas Noll Lehrstuhl für Informatik 2 RWTH Aachen University noll@cs.rwth-aachen.de http://www.b-it-center.de/wob/en/view/class211_id948.html

More information

Halting and Equivalence of Schemes over Recursive Theories

Halting and Equivalence of Schemes over Recursive Theories Halting and Equivalence of Schemes over Recursive Theories Dexter Kozen Computer Science Department, Cornell University, Ithaca, New York 14853-7501, USA Abstract Let Σ be a fixed first-order signature.

More information

Hierarchy among Automata on Linear Orderings

Hierarchy among Automata on Linear Orderings Hierarchy among Automata on Linear Orderings Véronique Bruyère Institut d Informatique Université de Mons-Hainaut Olivier Carton LIAFA Université Paris 7 Abstract In a preceding paper, automata and rational

More information

The complexity of unary tiling recognizable picture languages: nondeterministic and unambiguous cases

The complexity of unary tiling recognizable picture languages: nondeterministic and unambiguous cases Fundamenta Informaticae X (2) 1 20 1 IOS Press The complexity of unary tiling recognizale picture languages: nondeterministic and unamiguous cases Alerto Bertoni Massimiliano Goldwurm Violetta Lonati Dipartimento

More information

Program Analysis. Lecture 5. Rayna Dimitrova WS 2016/2017

Program Analysis. Lecture 5. Rayna Dimitrova WS 2016/2017 Program Analysis Lecture 5 Rayna Dimitrova WS 2016/2017 2/21 Recap: Constant propagation analysis Goal: For each program point, determine whether a variale has a constant value whenever an execution reaches

More information

CS 4120 Lecture 3 Automating lexical analysis 29 August 2011 Lecturer: Andrew Myers. 1 DFAs

CS 4120 Lecture 3 Automating lexical analysis 29 August 2011 Lecturer: Andrew Myers. 1 DFAs CS 42 Lecture 3 Automating lexical analysis 29 August 2 Lecturer: Andrew Myers A lexer generator converts a lexical specification consisting of a list of regular expressions and corresponding actions into

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 2 Parity Games, Tree Automata, and S2S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong S2S 14-19 June

More information

Tree Automata and Rewriting

Tree Automata and Rewriting and Rewriting Ralf Treinen Université Paris Diderot UFR Informatique Laboratoire Preuves, Programmes et Systèmes treinen@pps.jussieu.fr July 23, 2010 What are? Definition Tree Automaton A tree automaton

More information

Introduction to weighted automata theory

Introduction to weighted automata theory Introduction to weighted automata theory Lectures given at the 19th Estonian Winter School in Computer Science Jacques Sakarovitch CNRS / Telecom ParisTech Based on Chapter III Chapter 4 The presentation

More information

What Is a Language? Grammars, Languages, and Machines. Strings: the Building Blocks of Languages

What Is a Language? Grammars, Languages, and Machines. Strings: the Building Blocks of Languages Do Homework 2. What Is a Language? Grammars, Languages, and Machines L Language Grammar Accepts Machine Strings: the Building Blocks of Languages An alphabet is a finite set of symbols: English alphabet:

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

BOUNDEDNESS IN LANGUAGES OF INFINITE WORDS

BOUNDEDNESS IN LANGUAGES OF INFINITE WORDS Logical Methods in Computer Science Vol. 13(4:3)2017, pp. 1 54 https://lmcs.episciences.org/ Submitted Jun. 20, 2007 Published Oct. 26, 2017 BOUNDEDNESS IN LANGUAGES OF INFINITE WORDS Warsaw University

More information

Ludwig Staiger Martin-Luther-Universität Halle-Wittenberg Hideki Yamasaki Hitotsubashi University

Ludwig Staiger Martin-Luther-Universität Halle-Wittenberg Hideki Yamasaki Hitotsubashi University CDMTCS Research Report Series A Simple Example of an ω-language Topologically Inequivalent to a Regular One Ludwig Staiger Martin-Luther-Universität Halle-Wittenerg Hideki Yamasaki Hitotsuashi University

More information

arxiv: v2 [cs.fl] 21 Mar 2014

arxiv: v2 [cs.fl] 21 Mar 2014 arxiv:143.581v [cs.fl] 1 Mar 14 Enforcing Operational Properties including Blockfreeness for Deterministic Pushdown Automata S. Schneider and U. Nestmann Technische Universität Berlin Astract: We present

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Branching Bisimilarity with Explicit Divergence

Branching Bisimilarity with Explicit Divergence Branching Bisimilarity with Explicit Divergence Ro van Glaeek National ICT Australia, Sydney, Australia School of Computer Science and Engineering, University of New South Wales, Sydney, Australia Bas

More information

arxiv: v1 [cs.fl] 4 Feb 2013

arxiv: v1 [cs.fl] 4 Feb 2013 Incomplete Transition Complexity of Basic Operations on Finite Languages Eva Maia, Nelma Moreira, Rogério Reis arxiv:1302.0750v1 [cs.fl] 4 Fe 2013 CMUP & DCC, Faculdade de Ciências da Universidade do Porto

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS

ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS Bulletin of the Section of Logic Volume 18/2 (1989), pp. 57 61 reedition 2006 [original edition, pp. 57 62] A. L. Rastsvetaev ON MONADIC LOGIC OF RECURSIVE PROGRAMS WITH PARAMETERS 1. Introduction The

More information

Decidability: Church-Turing Thesis

Decidability: Church-Turing Thesis Decidability: Church-Turing Thesis While there are a countably infinite number of languages that are described by TMs over some alphabet Σ, there are an uncountably infinite number that are not Are there

More information

Let N > 0, let A, B, and C be constants, and let f and g be any functions. Then: S2: separate summed terms. S7: sum of k2^(k-1)

Let N > 0, let A, B, and C be constants, and let f and g be any functions. Then: S2: separate summed terms. S7: sum of k2^(k-1) Summation Formulas Let > 0, let A, B, and C e constants, and let f and g e any functions. Then: k Cf ( k) C k S: factor out constant f ( k) k ( f ( k) ± g( k)) k S: separate summed terms f ( k) ± k g(

More information

Lecture Notes on Inductive Definitions

Lecture Notes on Inductive Definitions Lecture Notes on Inductive Definitions 15-312: Foundations of Programming Languages Frank Pfenning Lecture 2 August 28, 2003 These supplementary notes review the notion of an inductive definition and give

More information

Π( ) Π( ) Π( ) A ε. b b. (d) (c) (a) (b)

Π( ) Π( ) Π( ) A ε. b b. (d) (c) (a) (b) Top-Down Parsing of Conjunctive Languages Alexander Okhotin (okhotin@aha.ru) Faculty of Computational Mathematics and Cyernetics, Moscow State University Astract. This paper generalizes the notion of a

More information

Attributed Graph Transformation via Rule Schemata: Church-Rosser Theorem

Attributed Graph Transformation via Rule Schemata: Church-Rosser Theorem Attriuted Graph Transformation via Rule Schemata: Church-Rosser Theorem Ivaylo Hristakiev and Detlef Plump (B) University of York, York, UK detlef.plump@york.ac.uk Astract. We present an approach to attriuted

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 LIF, Marseille, Avril 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite alphabet

More information

Depth versus Breadth in Convolutional Polar Codes

Depth versus Breadth in Convolutional Polar Codes Depth versus Breadth in Convolutional Polar Codes Maxime Tremlay, Benjamin Bourassa and David Poulin,2 Département de physique & Institut quantique, Université de Sherrooke, Sherrooke, Quéec, Canada JK

More information

Acceptance of!-languages by Communicating Deterministic Turing Machines

Acceptance of!-languages by Communicating Deterministic Turing Machines Acceptance of!-languages by Communicating Deterministic Turing Machines Rudolf Freund Institut für Computersprachen, Technische Universität Wien, Karlsplatz 13 A-1040 Wien, Austria Ludwig Staiger y Institut

More information

On Recognizable Languages of Infinite Pictures

On Recognizable Languages of Infinite Pictures On Recognizable Languages of Infinite Pictures Equipe de Logique Mathématique CNRS and Université Paris 7 JAF 28, Fontainebleau, Juin 2009 Pictures Pictures are two-dimensional words. Let Σ be a finite

More information

What You Must Remember When Processing Data Words

What You Must Remember When Processing Data Words What You Must Remember When Processing Data Words Michael Benedikt, Clemens Ley, and Gabriele Puppis Oxford University Computing Laboratory, Park Rd, Oxford OX13QD UK Abstract. We provide a Myhill-Nerode-like

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

Tree Adjoining Grammars

Tree Adjoining Grammars Tree Adjoining Grammars TAG: Parsing and formal properties Laura Kallmeyer & Benjamin Burkhardt HHU Düsseldorf WS 2017/2018 1 / 36 Outline 1 Parsing as deduction 2 CYK for TAG 3 Closure properties of TALs

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Transformation Between Regular Expressions and ω-automata

Transformation Between Regular Expressions and ω-automata Transformation Between Regular Expressions and ω-automata Christof Löding 1 and Andreas Tollkötter 2 1 RWTH Aachen, Lehrstuhl für Informatik 7, 52056 Aachen, Germany loeding@informatik.rwth-aachen.de 2

More information

Semantics and Verification of Software

Semantics and Verification of Software Semantics and Verification of Software Thomas Noll Software Modeling and Verification Group RWTH Aachen University http://moves.rwth-aachen.de/teaching/ss-15/sv-sw/ The Denotational Approach Denotational

More information

Introduction to Turing Machines

Introduction to Turing Machines Introduction to Turing Machines Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 12 November 2015 Outline 1 Turing Machines 2 Formal definitions 3 Computability

More information

Languages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet:

Languages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet: Languages 1 Languages A language is a set of strings String: A sequence of letters Examples: cat, dog, house, Defined over an alphaet: a,, c,, z 2 Alphaets and Strings We will use small alphaets: Strings

More information

Logarithms. For example:

Logarithms. For example: Math Review Summation Formulas Let >, let A, B, and C e constants, and let f and g e any functions. Then: f C Cf ) ) S: factor out constant ± ± g f g f ) ) )) ) S: separate summed terms C C ) 6 ) ) Computer

More information

Minimizing a convex separable exponential function subject to linear equality constraint and bounded variables

Minimizing a convex separable exponential function subject to linear equality constraint and bounded variables Minimizing a convex separale exponential function suect to linear equality constraint and ounded variales Stefan M. Stefanov Department of Mathematics Neofit Rilski South-Western University 2700 Blagoevgrad

More information

SVETLANA KATOK AND ILIE UGARCOVICI (Communicated by Jens Marklof)

SVETLANA KATOK AND ILIE UGARCOVICI (Communicated by Jens Marklof) JOURNAL OF MODERN DYNAMICS VOLUME 4, NO. 4, 010, 637 691 doi: 10.3934/jmd.010.4.637 STRUCTURE OF ATTRACTORS FOR (a, )-CONTINUED FRACTION TRANSFORMATIONS SVETLANA KATOK AND ILIE UGARCOVICI (Communicated

More information

Languages, logics and automata

Languages, logics and automata Languages, logics and automata Anca Muscholl LaBRI, Bordeaux, France EWM summer school, Leiden 2011 1 / 89 Before all that.. Sonia Kowalewskaya Emmy Noether Julia Robinson All this attention has been gratifying

More information

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It

More information

Theory of Computing Tamás Herendi

Theory of Computing Tamás Herendi Theory of Computing Tamás Herendi Theory of Computing Tamás Herendi Publication date 2014 Table of Contents 1 Preface 1 2 Formal languages 2 3 Order of growth rate 9 4 Turing machines 16 1 The definition

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

Finite Automata and Regular Languages (part II)

Finite Automata and Regular Languages (part II) Finite Automata and Regular Languages (part II) Prof. Dan A. Simovici UMB 1 / 25 Outline 1 Nondeterministic Automata 2 / 25 Definition A nondeterministic finite automaton (ndfa) is a quintuple M = (A,

More information

Alexandr Kazda 1 Department of Algebra, Charles University, Prague, Czech Republic

Alexandr Kazda 1 Department of Algebra, Charles University, Prague, Czech Republic #A3 INTEGERS 9 (009), 6-79 CONVERGENCE IN MÖBIUS NUMBER SYSTEMS Alexandr Kazda Department of Algera, Charles University, Prague, Czech Repulic alexak@atrey.karlin.mff.cuni.cz Received: 0/30/08, Accepted:

More information

A short proof that O 2 is an MCFL

A short proof that O 2 is an MCFL A short proof that O 2 is an MCFL Mark-Jan Nederhof School of Computer Science University of St Andrews, UK Astract We present a new proof that O 2 is a multiple context-free language. It contrasts with

More information

X-machines - a computational model framework.

X-machines - a computational model framework. Chapter 2. X-machines - a computational model framework. This chapter has three aims: To examine the main existing computational models and assess their computational power. To present the X-machines as

More information

Lecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata

Lecture 23 : Nondeterministic Finite Automata DRAFT Connection between Regular Expressions and Finite Automata CS/Math 24: Introduction to Discrete Mathematics 4/2/2 Lecture 23 : Nondeterministic Finite Automata Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we designed finite state automata

More information

Distributed Timed Automata with Independently Evolving Clocks

Distributed Timed Automata with Independently Evolving Clocks Distriuted Timed Automata with Independently Evolving Clocks S. Akshay,3, Benedikt Bollig, Paul Gastin, Madhavan Mukund 2, and K. Narayan Kumar 2 LSV, ENS Cachan, CNRS, France {akshay,ollig,gastin}@lsv.ens-cachan.fr

More information

Schema Mappings for Data Graphs

Schema Mappings for Data Graphs Schema Mappings for Data Graphs Nadime Francis 1 Leonid Likin 2 1 Université Paris-Est Marne-la-Vallée 2 University of Edinurgh BDA 2017 Nancy, Novemer, 16th Results originally pulished in PODS 2017 1

More information

1.3 Regular Expressions

1.3 Regular Expressions 51 1.3 Regular Expressions These have an important role in descriing patterns in searching for strings in many applications (e.g. awk, grep, Perl,...) All regular expressions of alphaet are 1.Øand are

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

2. Syntactic Congruences and Monoids

2. Syntactic Congruences and Monoids IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 3: Algebra and Languages David Mix Barrington and Alexis Maciel July 19, 2000 1.

More information

Theory of Computation Lecture Notes. Problems and Algorithms. Class Information

Theory of Computation Lecture Notes. Problems and Algorithms. Class Information Theory of Computation Lecture Notes Prof. Yuh-Dauh Lyuu Dept. Computer Science & Information Engineering and Department of Finance National Taiwan University Problems and Algorithms c 2004 Prof. Yuh-Dauh

More information

THE BALANCED DECOMPOSITION NUMBER AND VERTEX CONNECTIVITY

THE BALANCED DECOMPOSITION NUMBER AND VERTEX CONNECTIVITY THE BALANCED DECOMPOSITION NUMBER AND VERTEX CONNECTIVITY SHINYA FUJITA AND HENRY LIU Astract The alanced decomposition numer f(g) of a graph G was introduced y Fujita and Nakamigawa [Discr Appl Math,

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic and Theory of Computing Fuhua (Frank) Cheng Department of Computer Science University of Kentucky 1 Tale of Contents: Week 1: Preliminaries (set alger relations, functions) (read Chapters

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

Vertical Implementation

Vertical Implementation Information and Computation 70, 95 33 (00) doi:0.006/inco.00.967, availale online at http://www.idealirary.com on Vertical Implementation Arend Rensink Faculty of Informatics, University of Twente, Postus

More information

Introduction to Languages and Computation

Introduction to Languages and Computation Introduction to Languages and Computation George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Languages and Computation July 2014

More information

A Hierarchy for Accellera s Property Specification Language

A Hierarchy for Accellera s Property Specification Language A Hierarchy for Accellera s Property Specification Language Thomas Türk May 1st, 2005 Diploma Thesis University of Kaiserslautern Supervisor: Prof. Dr. Klaus Schneider Vorliegende Diplomarbeit wurde von

More information

Algebras with finite descriptions

Algebras with finite descriptions Algebras with finite descriptions André Nies The University of Auckland July 19, 2005 Part 1: FA-presentability A countable structure in a finite signature is finite-automaton presentable (or automatic)

More information

Partially Ordered Two-way Büchi Automata

Partially Ordered Two-way Büchi Automata Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially

More information

(a) Definition of TMs. First Problem of URMs

(a) Definition of TMs. First Problem of URMs Sec. 4: Turing Machines First Problem of URMs (a) Definition of the Turing Machine. (b) URM computable functions are Turing computable. (c) Undecidability of the Turing Halting Problem That incrementing

More information

Lecture 6 January 15, 2014

Lecture 6 January 15, 2014 Advanced Graph Algorithms Jan-Apr 2014 Lecture 6 January 15, 2014 Lecturer: Saket Sourah Scrie: Prafullkumar P Tale 1 Overview In the last lecture we defined simple tree decomposition and stated that for

More information

On the Independence of the Formal System L *

On the Independence of the Formal System L * 6 International Journal of Fuzzy Systems, Vol. 4, No., June On the Independence of the Formal System L * Daowu Pei Astract The formal system L * of fuzzy propositional logic has een successfully applied

More information

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. D. Kirsten 1 G. Richomme 2. TUD/FI99/03 - April 1999

TECHNISCHE UNIVERSITÄT DRESDEN. Fakultät Informatik. Technische Berichte Technical Reports. D. Kirsten 1 G. Richomme 2. TUD/FI99/03 - April 1999 TECHNISCHE UNIVERSITÄT DRESDEN Fakultät Informatik Technische Berichte Technical Reports ISSN 1430-211X TUD/FI99/03 - April 1999 D. Kirsten 1 G. Richomme 2 1 Institut für Softwaretechnik I, Grundlagen

More information

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

More information

Exploring Lucas s Theorem. Abstract: Lucas s Theorem is used to express the remainder of the binomial coefficient of any two

Exploring Lucas s Theorem. Abstract: Lucas s Theorem is used to express the remainder of the binomial coefficient of any two Delia Ierugan Exploring Lucas s Theorem Astract: Lucas s Theorem is used to express the remainder of the inomial coefficient of any two integers m and n when divided y any prime integer p. The remainder

More information

i times p(p(... (p( n))...) = n ki.

i times p(p(... (p( n))...) = n ki. Chapter 7 NP Completeness Exercise 7.1 Show that an algorithm that makes at most a constant number of calls to polynomial-time subroutines runs in polynomial time, but that a polynomial number of calls

More information

Finite Automata and Languages

Finite Automata and Languages CS62, IIT BOMBAY Finite Automata and Languages Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS62: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2

More information

The complexity of recursive constraint satisfaction problems.

The complexity of recursive constraint satisfaction problems. The complexity of recursive constraint satisfaction problems. Victor W. Marek Department of Computer Science University of Kentucky Lexington, KY 40506, USA marek@cs.uky.edu Jeffrey B. Remmel Department

More information

The variance for partial match retrievals in k-dimensional bucket digital trees

The variance for partial match retrievals in k-dimensional bucket digital trees The variance for partial match retrievals in k-dimensional ucket digital trees Michael FUCHS Department of Applied Mathematics National Chiao Tung University January 12, 21 Astract The variance of partial

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation Page 1 of 31 CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 3: First-Order Theories Page 2 of 31 First-Order Theories I First-order theory T consists of Signature Σ T - set of constant,

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 12: Turing Machines Turing Machines I After having dealt with partial recursive functions,

More information

Handbook of Logic and Proof Techniques for Computer Science

Handbook of Logic and Proof Techniques for Computer Science Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives

More information

Classical Program Logics: Hoare Logic, Weakest Liberal Preconditions

Classical Program Logics: Hoare Logic, Weakest Liberal Preconditions Chapter 1 Classical Program Logics: Hoare Logic, Weakest Liberal Preconditions 1.1 The IMP Language IMP is a programming language with an extensible syntax that was developed in the late 1960s. We will

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Optimal Routing in Chord

Optimal Routing in Chord Optimal Routing in Chord Prasanna Ganesan Gurmeet Singh Manku Astract We propose optimal routing algorithms for Chord [1], a popular topology for routing in peer-to-peer networks. Chord is an undirected

More information

MA/CSSE 474 Theory of Computation

MA/CSSE 474 Theory of Computation MA/CSSE 474 Theory of Computation CFL Hierarchy CFL Decision Problems Your Questions? Previous class days' material Reading Assignments HW 12 or 13 problems Anything else I have included some slides online

More information

Summation Formulas. Math Review. Let N > 0, let A, B, and C be constants, and let f and g be any functions. Then: S1: factor out constant

Summation Formulas. Math Review. Let N > 0, let A, B, and C be constants, and let f and g be any functions. Then: S1: factor out constant Computer Science Dept Va Tech August 005 005 McQuain WD Summation Formulas Let > 0, let A, B, and C e constants, and let f and g e any functions. Then: f C Cf ) ) S: factor out constant g f g f ) ) ))

More information

Theory of computation: initial remarks (Chapter 11)

Theory of computation: initial remarks (Chapter 11) Theory of computation: initial remarks (Chapter 11) For many purposes, computation is elegantly modeled with simple mathematical objects: Turing machines, finite automata, pushdown automata, and such.

More information

Decentralized Control of Discrete Event Systems with Bounded or Unbounded Delay Communication

Decentralized Control of Discrete Event Systems with Bounded or Unbounded Delay Communication Decentralized Control of Discrete Event Systems with Bounded or Unbounded Delay Communication Stavros Tripakis Abstract We introduce problems of decentralized control with communication, where we explicitly

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are

More information

TWO TO ONE IMAGES AND PFA

TWO TO ONE IMAGES AND PFA TWO TO ONE IMAGES AND PFA ALAN DOW Astract. We prove that all maps on N that are exactly two to one are trivial if PFA is assumed. 1. Introduction A map f : X K is precisely two to one if for each k K,

More information

Efficient minimization of deterministic weak ω-automata

Efficient minimization of deterministic weak ω-automata Information Processing Letters 79 (2001) 105 109 Efficient minimization of deterministic weak ω-automata Christof Löding Lehrstuhl Informatik VII, RWTH Aachen, 52056 Aachen, Germany Received 26 April 2000;

More information

Regular Languages. Problem Characterize those Languages recognized by Finite Automata.

Regular Languages. Problem Characterize those Languages recognized by Finite Automata. Regular Expressions Regular Languages Fundamental Question -- Cardinality Alphabet = Σ is finite Strings = Σ is countable Languages = P(Σ ) is uncountable # Finite Automata is countable -- Q Σ +1 transition

More information

Course Runtime Verification

Course Runtime Verification Course Martin Leucker (ISP) Volker Stolz (Høgskolen i Bergen, NO) INF5140 / V17 Chapters of the Course Chapter 1 Recall in More Depth Chapter 2 Specification Languages on Words Chapter 3 LTL on Finite

More information

Graph Reachability and Pebble Automata over Infinite Alphabets

Graph Reachability and Pebble Automata over Infinite Alphabets Graph Reachability and Pebble Automata over Infinite Alphabets Tony Tan Department of Computer Science Technion Israel Institute of Technology Haifa 32000, Israel Email: tantony@cs.technion.ac.il Abstract

More information