Decision Methods for Concurrent Kleene Algebra with Tests : Based on Derivative
|
|
- August Cody Newton
- 6 years ago
- Views:
Transcription
1 Decision Methods for Concurrent Kleene Algebra with Tests : Based on Derivative Yoshiki Nakamura Tokyo Instutute of Technology, Oookayama, Meguroku, Japan, nakamura.y.ay@m.titech.ac.jp Abstract. Concurrent Kleene Algebra with Tests (CKAT) were introduced by Peter Jipsen[Jip14]. We give derivatives for CKAT to decide word problems, for example emptiness, equivalence, containment problems. These derivative methods are expanded from derivative methods for Kleene Algebra and Kleene Algebra with Tests[Brz64][Koz08][ABM12]. Additionally, we show that the equivalence problem of CKAT is in EXPSPACE. Keywords: concurrent kleene algebras with tests, series-parallel strings, Brzozowski derivative, computational complexity 1 Introduction In this paper, we assume [Jip14, theorem 1] and we use CKAT terms as expressions of guarded series-parallel language. Let Σ be a set of basic program symbols p 1, p 2,... and T a set of basic boolean test symbols t 1, t 2,, where we assume that Σ T =. Each α 1, α 2,... denotes a subset of T. Boolean term b and CKAT term p over T and Σ are defined by the following grammar, respectively. b := 0 1 t T b 1 + b 2 b 1 b 2 b 1 p := b p Σ p 1 + p 2 p 1 p 2 p 1 p 1 p 2 The guarded series-parallel strings set GS Σ,T over Σ and T is a smallest set such that follows α GS Σ,T for any α T α 1 pα 2 GS Σ,T for any α 1, α 2 T and any basic program p Σ if w 1 α, αw 2 GS Σ,T, then w 1 αw 2 GS Σ,T. if α 1 w 1 α 2, α 1 w 2 α 2 GS Σ,T, then α 1 { w 1, w 2 }α 2 GS Σ,T. Definition 1 (guarded series-parallel language). Let and be binary operators over GS Σ,T, respectably. { They are defined as follows. w w 1 w 2 = 1αw 2 (w 1 = w 1α and w 2 = αw 2) undef ined (o.w.) In particular, if w 1 = w 2 = α, then w 1 w 2 = α.
2 2 Y. Nakamura α 1 { w 1, w 2 }α 2 (w 1 = α 1 w 1α 2 and w 2 = α 1 w 2α 2 ) w 1 w 2 = α (w 1 = w 2 = α) undef ined (o.w.) L is a map from CKAT terms over Σ and T to this concrete model by L(0) =, L(1) = 2 T L(t) = {α T t α} for t T L(b) = 2 T \ L(b) L(p) = {α 1 pα 2 α 1, α 2 T } for p Σ L(p 1 + p 2 ) = L(p 1 ) L(p 2 ) L(p 1 p 2 ) = {w 1 w 2 w 1 G(p 1 ) and w 2 L(p 2 ) and w 1 w 2 is defined } L(p ) = {α 0 w 1 w n α 0 T and w 1,..., w n L(p) and α 0 w 1 w n is defined } n<ω L(p 1 p 2 ) = {w 1 w 2 w 1 L(p 1 ) and w 2 L(p 2 ) and w 1 w 2 is defined } We expand L to L(P ) = p P L(p), where P is a set of CKAT terms. Furthermore, let L α (p) = {αw αw L(p)}. In guarded series-parallel strings, α 1 { w 1, w 2 }α 2 has commutative(i.e. α 1 { w 1, w 2 }α 2 = α 1 { w 2, w 1 }α 2 ). We define p 1 = p 2 for two CKAT terms p 1 and p 2 as L(p 1 ) = L(p 2 ) (by means of [Jip14, Theorem 1]). 2 The Brzozowski derivative for CKAT Now, we give the naive derivative for CKAT. Derivative has applications to many language theoretic problems (e.g. membership problem, emptiness problem, equivalence problem, and so on). Definition 2 (Naive Derivative). We define E α and D w. They are maps from a CKAT term to a set of CKAT terms, respectively. E α is inductively defined as follows. We expand E α and D w to E α (P ) = p P E α(p) and D w (P ) = p P D w(p), where P is a set of CKAT terms, respectively. E α (0) = E α (p) = E α (1) = { E α (p 1) = {1} {1} (t α) E α (t) = (o.w.) E α (b) = {1} \ E α (b) E α (p 1 + p 2 ) = E α (p 1 ) E α (p 2 ) E α (p 1 p 2 ) = E α (p 1 p 2 ) = E α (p 1 )E α (p 2 ) D w is inductively defined as follows. For w = q { w 1, w 2 } and any series-parallel string w, D αwα w α (p) = D α w α (D αwα (p)) D αwα (p 1 + p 2 ) = D αwα (p 1 ) D αwα (p 2 ) D αwα (p 1 p 2 ) = D αwα (p 1 ){p 2 } E α (p 1 )D αwα (p 2 )
3 CKAT is in EXPSPACE 3 D αwα (p 1) = D αwα (p 1 ){p 1} D αwα (b) = for any boolean term b { {1} (p = q) D αqα (p) = (o.w.) D αqα (p 1 p 2 ) = D α{ w1,w 2 }α (p) = D α{ w1,w 2 }α (p 1 p 2 ) = E α ((D (p αw1α 1) D (p αw2α 2)) (D (p αw1α 2) D αw2 α (p 1))) The left-quotient of L GS Σ,T with regard to w GS Σ,T is the set w 1 L = {w w w L}. Lemma 1. For any series-parallel string αwα, 1. 1 E α (p) α L α (p) 2. (αwα ) 1 L α (p) = L α (D αwα (p)) Proof (Sketch). 1. is proved by induction on the size of p. 2. is proved by double induction on the size of w and the size of p. We can decide whether αwα L(p) to check 1 E α (D αwα (p)) by Lemma 1. We now define efficient derivative. This derivative is another definition of derivative for CKAT. This derivative is useful for giving more efficient algorithm than naive derivative in computational complexity. (In naive derivative, we should memorize w 1 and w 2 to get D α{ w1,w 2 }α (p). In particular, the size of w 1 and w 2 can be double exponential size of input size in equivalence problem.) We expand CKAT terms to express efficient derivative. We say these terms intermediate CKAT terms. Intermediate CKAT term is defined as following. Definition 3 (intermediate CKAT term). Intermediate CKAT term is defined by the following grammar. q := b p Σ q 1 + q 2 q 1 q 2 q 1 q 1 q 2 D x (q 1 ) We call x a derivative variable of D x (q 1 ). The efficient derivative d pr (q) is defined in Definition 4, where q is an intermediate CKAT term, pr is a sequence of assignments formed x += αp or x += αt (The sequence of assignments pr is formed x 1 += term 1 ;... ; x m += term m.) and T is formed by the following grammar. T := { x l T l, x r T r } { x l T l, p r x r } { p l x l, x r T r } { p l x l, p r x r }. Intuitively, d x+=αw (... D x (q)... ) means (... D x ( D αw (join α (q)))... ). Definition 4. The efficient derivative d pr (q) is inductively defined as follows, where we assume that any derivative variable occurred in T are different. To define d pr (q), we also define D αw and join α. We expand d pr to d pr (Q) = q Q d pr(q), where Q is a set of intermediate CKAT terms. We also expand join α to join α (Q) = q Q join α(q).
4 4 Y. Nakamura d x+=αw;pr (q) = d pr (d x+=αw (q)) d x+=αw (b) = {b} d x+=αw (p) = {p} d x+=αw (q 1 + q 2 ) = d x+=αw (q 1 ) d x+=αw (q 2 ) d x+=αw (q 1 q 2 ) = d x+=αw (q 1 )d x+=αw (q 2 ) d x+=αw (q1) = d x+=αw (q 1 ) (= {q q d x:=αw (q 1 )}) d x+=αw (q 1 q 2 ) = d x+=αw (q 1 ) d x+=αw (q 2 ) (= {q 1 q 2 q 1 d x+=αw (q 1 ), q 2 d x+=αw (q 2 )}) d x+=αw (D y (q 1 )) = D y (d x+=αw (q 1 )) d x+=αw (D x (q 1 )) = D x ( D αw (join α (q 1 ))) D αp (q) = D αp (q) D αt (b) = D αt (p) = D αt (q 1 + q 2 ) = D αt (q 1 ) D αt (q 2 ) D αt (q 1 q 2 ) = D αt (q 1 ){q 2 } E α (q 1 ) D αt (q 2 ) D αt (q1) = D αt (q 1 ){q1} (D xl ( D αpl (q 1 )) D xr ( D αpr (q 2 ))) (D xr ( D αpr (q 1 )) D xl ( D αpl (q 2 ))) (T = { p l x l, p r x r }) (D xl ( D αtl (q 1 )) D xr ( D αpr (q 2 ))) D (D xr ( αt (q 1 q 2 ) = D αpr (q 1 )) D xl ( D αtl (q 2 ))) (T = { T l x l, p r x r }) (D xl ( D αpl (q 1 )) D xr ( D αtr (q 2 ))) (D xr ( D αtr (q 1 )) D xl ( D αpl (q 2 ))) (T = { p l x l, T r x r }) (D xl ( D αtl (q 1 )) D xr ( D αtr (q 2 ))) (D xr ( D αtr (q 1 )) D xl ( D αtl (q 2 ))) (T = { T l x l, T r x r }) (b) = {b}, join α (p) = {p} (q 1 + q 2 ) = join α (q 1 ) join α (q 2 ), join α (q 1 q 2 ) = join α (q 1 )join α (q 2 ) (q 1 q 2 ) = join α (q 1 ) join α (q 2 ) (q1) = join α (q 1 ) (D y (q)) = E α (join α (q)) Efficient derivative is essentially equal to the derivative of Definition 1. Let sp x (pr) be the string corresponded to x of pr. (For example, sp x0 (x 0 += α{p 1 x 1, p 2 x 2 }; x 1 += α p 3 ; x 0 += α p 4 ) = α{p 1 α p 3, p 2 }α p 4. sp x1 (x 0 += α{p 1 x 1, p 2 x 2 }; x 1 += α p 3 ; x 0 += α p 4 ) = αp 1 α p 3 ) Lemma 2. join α (d pr (D x (p))) = E α (D spx (pr)α (p)) By Lemma 1 and Lemma 2, sp x (pr)α L(p) 1 join α (d pr (D x (p))). Therefore, we can use effective derivative instead of naive derivative. Next, we define the size of a intermediate CKAT term q, denoted by q as follows. 0 = 1 = t = p = 1 b = 1 + b q 1 = D x (q 1 ) = 1 + q 1
5 CKAT is in EXPSPACE 5 q 1 + q 2 = q 1 q 2 = q 1 q 2 = 1 + q 1 + q 2 Definition 5 (Closure). Cl X is a map from a intermediate CKAT term to a set of intermediate CKAT terms, where X is a set of intersection variables. Cl X is inductively defined as follows. Cl X (a) = {a} for a = 0 1 t Cl X (b) = {b} Cl X (b) for any boolean term b Cl X (p) = {p, 1} Cl X (q 1 + q 2 ) = {q 1 + q 2 } Cl X (q 1 ) Cl X (q 2 ) Cl X (q 1 q 2 ) = {q 1 q 2 } Cl X (q 1 ){q 2 } Cl X (q 2 ) Cl X (q 1) = {q 1} Cl X (q 1 ){q 1} Cl X (q 1 q 2 ) = {q 1 q 2 } {D x1 (q 1) D x2 (q 2) q 1 Cl X (q 1 ), q 2 Cl X (q 2 ), x 1, x 2 X} Cl X (D x (q 1 )) = {D x (q 1 )} D x (Cl X (q 1 )) We expand Cl X to Cl X (Q) = q Q Cl X(q), where Q is a set of intermediate CKAT terms. Cl X is a closed operator. In other words, Cl X satisfies (1) Q Cl X (Q), (2) Q 1 Q 2 Cl X (Q 1 ) Cl X (Q 2 ) and (3) Cl X (Cl X (Q)) = Cl X (Q). We also define the intersection width iw(q) over intermediate CKAT terms and iw(w) over GI Σ,T as follows. iw(b) = iw(p) = 1 for any boolean term b and any basic program p Σ iw(q 1 + q 2 ) = iw(q 1 q 2 ) = max(iw(q 1 ), iw(q 2 )) iw(q 1) = iw(d x (q 1 )) = iw(q 1 ) iw(q 1 q 2 ) = 1 + iw(q 1 ) + iw(q 2 ) iw(α) = 1 for any α T iw(α 1 pα 2 ) = 1 iw(w 1 αw 2 ) = max(iw(w 1 α), iw(αw 2 )) iw(α 1 { w 1, w 2 }α 2 ) = 1 + iw(w 1 ) + iw(w 2 ) Lemma 3 (closure is bounded). For any intermediate CKAT term q and any sequence of program pr and any set of derivative variables X, where X contains any derivative variables in pr, Cl X (q) 2 X 2 iw(q) q iw(q) Proof (Sketch). This is proved by induction on the structure of q. We only consider the case of q = q 1 q 2. Cl X (q 1 q 2 ) 1 + X Cl X (q 1 ) X Cl X (q 2 ) 1 + X 2 2 q 1 iw(q 1) X 2 iw(q 1) 2 q 2 iw(q 2) X 2 iw(q 2) = X 2 iw(q 1 q 2 ) q 1 iw(q 1) q 2 iw(q 2) 2 X 2 iw(q1 q2) ( q 1 + q 2 ) iw(q1)+iw(q2) 2 X 2 iw(q 1 q 2 ) q 1 q 2 iw(q 1 q 2 ) Lemma 4 (derivative is closed). For any intermediate CKAT term q and any sequence of program pr and any set of derivative variables X, where X contains any derivative variables in pr, d pr (q) Cl X (q) Proof (Sketch). This is proved by double induction on the size of pr and the size of q.
6 6 Y. Nakamura 3 CKAT equational theory is in EXPSPACE By Lemma 1 and Lemma 2, L(p 1 ) = L(p 2 ) iff join α (d pr (D x (p 1 ))) = join α (d pr (D x (p 2 ))) for any pr and any α. Thus we find some pr such that join α (d pr (D x (p 1 ))) join α (d pr (D x (p 2 ))) to decide p 1 p 2. We must consider all the patterns of pr at first glance. But, we need not to check if pr is too long. We are enough to check the cases of iw(sp(pr)) max(iw(p 1 ), iw(p 2 ))( l) by the following Lemma 5. Lemma 5. If iw(sp(pr)) > iw(q), d pr (q) =. By Lemma 5, we are enough to check the case of iw(sp(pr)) max(iw(p 1 ), iw(p 2 )) l. By iw(sp(pr)) l, We are enough to prepare (l 1) derivative variables. By Lemma 3, Cl X (q) 2 q iw(q) X 2 iw(q) 2 l l (1 + 3 (l 1)) 2 l. Therefore, Cl X (D x (p 1 )) = O(2 p(l) ) and Cl X (D x (p 2 )) = O(2 p(l) ), where p(l) is a polynomial function of l. We can give a nondeterministic algorithm. We nondeterministically select the syntax of pr. (pr is x += αp or x += αt.) If there exists a sequent of assignments pr and α such that join α (d pr (D x (p 1 ))) join α (d pr (D x (p 2 ))), p 1 p 2. Otherwise, p 1 = p 2. (See Algorithm 1 if you know more details.) It holds the Theorem 1 by this algorithm. Theorem 1. CKAT equivalence problem is in EXPSPACE. Corollary 1. if iw(p) is a fixed parameter, then CKAT equivalence problem is PSPACEcomplete. Note that PSPACE-hardness is derived by [Hun73]. 4 Concluding Remarks We have given the derivative for CKAT and shown that CKAT equational theory is in EXPSPACE. We finish with the following some of our future works. Is this equivalence problem EXPSPACE-complete? (We expect that this claim is T rue.) If we allow ϵ (for example, α{ p, ϵ }α), can we give efficient derivative? (It become a little difficult because we have to memorize α in the case of x += α{ p 1 x 1, ϵ }. We should give another derivative to show the result like Corollary 1.) A Pseudo Code
7 REFERENCES 7 Algorithm 1 Decide p 1 = p 2, given two CKAT terms p 1 and p 2 Ensure: Whether p 1 p 2 or not?(true or False) step 0, P 1 {D x0 (p 1)}, P 2 {D x0 (p 2)} while step 2 Cl X (D x0 (p 1 )) 2 Cl X (D x0 (p 2 )) do Let α be a subset of T, which is picked up nondeterministically. if join α (P 1 ) join α (P 2 ) then return T rue end if Let pr be x += αp or x += αt, which is picked up nondeterministically, where iw(pr) max(iw(p 1 ), iw(p 2 )). step step + 1, P 1 d pr(p 1), P 2 d pr(p 2) end while return F alse References [ABM12] [Brz64] [Hun73] [Jip14] [Koz08] Ricardo Almeida, Sabine Broda, and Nelma Moreira. Deciding KAT and Hoare Logic with Derivatives. In: Proceedings Third International Symposium on Games, Automata, Logics and Formal Verification, GandALF 2012, Napoli, Italy, September 6-8, , pp Janusz A Brzozowski. Derivatives of regular expressions. In: Journal of the ACM (JACM) 11.4 (1964), pp Harry B Hunt III. On the time and tape complexity of languages I. In: Proceedings of the fifth annual ACM symposium on Theory of computing. ACM. 1973, pp Peter Jipsen. Concurrent Kleene algebra with tests. In: Relational and Algebraic Methods in Computer Science. Springer, 2014, pp Dexter Kozen. On the Coalgebraic Theory of Kleene Algebra with Tests. Tech. rep. Computing and Information Science, Cornell University, Mar
Some Results on (Synchronous) Kleene Algebra with Tests
Some Results on (Synchronous) Kleene Algebra with Tests Sabine Broda António Machiavelo Nelma Moreira Rogério Reis Ricardo Almeida Sílvia Cavadas Faculty of Sciences, University of Porto, Portugal 1 Computer
More informationIntroduction to Kleene Algebra Lecture 15 CS786 Spring 2004 March 15 & 29, 2004
Introduction to Kleene Algebra Lecture 15 CS786 Spring 2004 March 15 & 29, 2004 Completeness of KAT In this lecture we show that the equational theories of the Kleene algebras with tests and the star-continuous
More informationOn the Equivalence of Automata for KAT-expressions
On the Equivalence of Automata for KAT-expressions Sabine Broda, António Machiavelo, Nelma Moreira, Rogério Reis sbb@dcc.fc.up.pt,ajmachia@fc.up.pt,{nam,rvr}@dcc.fc.up.pt CMUP & DM-DCC, Faculdade de Ciências
More informationKleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque
Kleene Algebra and Arden s Theorem Anshul Kumar Inzemamul Haque Motivation Regular Expression is a Kleene Algebra. We can use the properties and theorems of Kleene Algebra to simplify regular expressions
More informationHalting 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 informationAn Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras
An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California 1. Residuated Lattices with iteration 2. Background: Semirings and Kleene algebras 3. A Gentzen system
More informationIntroduction 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 informationFinite State Automata
Trento 2005 p. 1/4 Finite State Automata Automata: Theory and Practice Paritosh K. Pandya (TIFR, Mumbai, India) Unversity of Trento 10-24 May 2005 Trento 2005 p. 2/4 Finite Word Langauges Alphabet Σ is
More informationHalting 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 informationIntroduction to Kleene Algebra Lecture 13 CS786 Spring 2004 March 15, 2004
Introduction to Kleene Algebra Lecture 13 CS786 Spring 2004 March 15, 2004 Models of KAT In this lecture we show that the equational theories of KAT, KAT (the star-continuous Kleene algebras with tests),
More informationOgden s Lemma for CFLs
Ogden s Lemma for CFLs Theorem If L is a context-free language, then there exists an integer l such that for any u L with at least l positions marked, u can be written as u = vwxyz such that 1 x and at
More informationProperties of Context-Free Languages. Closure Properties Decision Properties
Properties of Context-Free Languages Closure Properties Decision Properties 1 Closure Properties of CFL s CFL s are closed under union, concatenation, and Kleene closure. Also, under reversal, homomorphisms
More informationTheory of Computation
Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 3: Finite State Automata Motivation In the previous lecture we learned how to formalize
More informationNPDA, CFG equivalence
NPDA, CFG equivalence Theorem A language L is recognized by a NPDA iff L is described by a CFG. Must prove two directions: ( ) L is recognized by a NPDA implies L is described by a CFG. ( ) L is described
More informationDiscrete Mathematics and Logic II. Regular Sets
Discrete Mathematics and Logic II. Regular Sets SFWR ENG 2FA3 Ryszard Janicki Winter 24 Acknowledgments: Material based on Automata and Computability by Dexter C. Kozen (Chapter 4). Ryszard Janicki Discrete
More informationFinal 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 information3515ICT: 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 informationSEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC
Logical Methods in Computer Science Vol. 12(1:5)2016, pp. 1 30 www.lmcs-online.org Submitted Jun. 4, 2014 Published Mar. 9, 2016 SEPARATING REGULAR LANGUAGES WITH FIRST-ORDER LOGIC THOMAS PLACE AND MARC
More informationFinite 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 informationHandbook 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 informationOn 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 informationDESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY
International Journal of Foundations of Computer Science Vol. 16, No. 5 (2005) 975 984 c World Scientific Publishing Company DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY HING LEUNG Department
More informationPSPACE-completeness of LTL/CTL model checking
PSPACE-completeness of LTL/CTL model checking Peter Lohmann April 10, 2007 Abstract This paper will give a proof for the PSPACE-completeness of LTLsatisfiability and for the PSPACE-completeness of the
More informationIntroduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004
Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004 KAT and Hoare Logic In this lecture and the next we show that KAT subsumes propositional Hoare logic (PHL). Thus the specialized
More informationMTAT Complexity Theory October 13th-14th, Lecture 6
MTAT.07.004 Complexity Theory October 13th-14th, 2011 Lecturer: Peeter Laud Lecture 6 Scribe(s): Riivo Talviste 1 Logarithmic memory Turing machines working in logarithmic space become interesting when
More informationExam Computability and Complexity
Total number of points:... Number of extra sheets of paper:... Exam Computability and Complexity by Jiri Srba, January 2009 Student s full name CPR number Study number Before you start, fill in the three
More informationDeciding Synchronous Kleene Algebra with Derivatives
Deciding Synchronous Kleene Algebra with Derivatives Sabine Broda, Sílvia Cavadas, Miguel Ferreira, and Nelma Moreira CMUP & DCC, Faculdade de Ciências da Universidade do Porto Rua do Campo Alegre, 4169-007
More informationTheory of Computation (IX) Yijia Chen Fudan University
Theory of Computation (IX) Yijia Chen Fudan University Review The Definition of Algorithm Polynomials and their roots A polynomial is a sum of terms, where each term is a product of certain variables and
More informationOn Modal Logics of Partial Recursive Functions
arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract
More informationDecision Problems for Additive Regular Functions
Decision Problems for Additive Regular Functions Rajeev Alur and Mukund Raghothaman University of Pennsylvania {alur, rmukund}@cis.upenn.edu Abstract. Additive Cost Register Automata (ACRA) map strings
More informationPartial model checking via abstract interpretation
Partial model checking via abstract interpretation N. De Francesco, G. Lettieri, L. Martini, G. Vaglini Università di Pisa, Dipartimento di Ingegneria dell Informazione, sez. Informatica, Via Diotisalvi
More informationComputability Theory. CS215, Lecture 6,
Computability Theory CS215, Lecture 6, 2000 1 The Birth of Turing Machines At the end of the 19th century, Gottlob Frege conjectured that mathematics could be built from fundamental logic In 1900 David
More informationTheory 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 informationP is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.
Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time
More informationTemporal logics and explicit-state model checking. Pierre Wolper Université de Liège
Temporal logics and explicit-state model checking Pierre Wolper Université de Liège 1 Topics to be covered Introducing explicit-state model checking Finite automata on infinite words Temporal Logics and
More informationFinite Automata and Regular languages
Finite Automata and Regular languages Huan Long Shanghai Jiao Tong University Acknowledgements Part of the slides comes from a similar course in Fudan University given by Prof. Yijia Chen. http://basics.sjtu.edu.cn/
More informationT (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,
Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the
More informationOutline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018
Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 3. Logarithmic Space Reinhard Pichler Institute of Logic and Computation DBAI Group TU Wien 3. Logarithmic Space 3.1 Computational
More informationTheoretical Foundations of the UML
Theoretical Foundations of the UML Lecture 17+18: A Logic for MSCs Joost-Pieter Katoen Lehrstuhl für Informatik 2 Software Modeling and Verification Group moves.rwth-aachen.de/teaching/ws-1718/fuml/ 5.
More informationProbabilistic Bisimilarity as Testing Equivalence
Probabilistic Bisimilarity as Testing Equivalence Yuxin Deng a,, Yuan Feng b a Shanghai Key Laboratory of Trustworthy Computing, MOE International Joint Lab of Trustworthy Software, and International Research
More informationCS 455/555: Finite automata
CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently
More informationClosure 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 informationNP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar..
.. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar.. Complexity Class P NP-Complete Problems Abstract Problems. An abstract problem Q is a binary relation on sets I of input instances
More informationVisibly Linear Dynamic Logic
Visibly Linear Dynamic Logic Joint work with Alexander Weinert (Saarland University) Martin Zimmermann Saarland University September 8th, 2016 Highlights Conference, Brussels, Belgium Martin Zimmermann
More informationThe Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.
The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u
More informationWhat 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 informationHarvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs
Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harry Lewis October 8, 2013 Reading: Sipser, pp. 119-128. Pushdown Automata (review) Pushdown Automata = Finite automaton
More informationComplexity Theory. Knowledge Representation and Reasoning. November 2, 2005
Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms
More informationLecture 24: Randomized Complexity, Course Summary
6.045 Lecture 24: Randomized Complexity, Course Summary 1 1/4 1/16 1/4 1/4 1/32 1/16 1/32 Probabilistic TMs 1/16 A probabilistic TM M is a nondeterministic TM where: Each nondeterministic step is called
More informationSpace Complexity. The space complexity of a program is how much memory it uses.
Space Complexity The space complexity of a program is how much memory it uses. Measuring Space When we compute the space used by a TM, we do not count the input (think of input as readonly). We say that
More informationCOL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II , Max 80, Time 2 hr. Name Entry No. Group
COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II 2015-16, Max 80, Time 2 hr Name Entry No. Group Note (i) Write your answers neatly and precisely in the space provided with
More informationThis lecture covers Chapter 7 of HMU: Properties of CFLs
This lecture covers Chapter 7 of HMU: Properties of CFLs Chomsky Normal Form Pumping Lemma for CFs Closure Properties of CFLs Decision Properties of CFLs Additional Reading: Chapter 7 of HMU. Chomsky Normal
More informationThe efficiency of identifying timed automata and the power of clocks
The efficiency of identifying timed automata and the power of clocks Sicco Verwer a,b,1,, Mathijs de Weerdt b, Cees Witteveen b a Eindhoven University of Technology, Department of Mathematics and Computer
More informationNP-completeness. Chapter 34. Sergey Bereg
NP-completeness Chapter 34 Sergey Bereg Oct 2017 Examples Some problems admit polynomial time algorithms, i.e. O(n k ) running time where n is the input size. We will study a class of NP-complete problems
More informationChapter 15 On the Coalgebraic Theory of Kleene Algebra with Tests
Chapter 15 On the Coalgebraic Theory of Kleene Algebra with Tests Dexter Kozen In honor of Rohit Parikh Abstract We develop a coalgebraic theory of Kleene algebra with tests (KAT)along the lines of Rutten
More informationKleene Algebra with Equations
Kleene Algebra with Equations Dexter Kozen and Konstantinos Mamouras Computer Science Department, Cornell University, Ithaca, NY 14853-7501, USA {kozen,mamouras}@cs.cornell.edu Abstract. We identify sufficient
More informationHKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed
HKN CS/ECE 374 Midterm 1 Review Nathan Bleier and Mahir Morshed For the most part, all about strings! String induction (to some extent) Regular languages Regular expressions (regexps) Deterministic finite
More informationConstructions on Finite Automata
Constructions on Finite Automata Informatics 2A: Lecture 4 Alex Simpson School of Informatics University of Edinburgh als@inf.ed.ac.uk 23rd September, 2014 1 / 29 1 Closure properties of regular languages
More informationA Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice
A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice Luis Pino*, Filippo Bonchi** and Frank Valencia* (Presented by: Jorge A. Pe rez) *E quipe Come te, LIX, Laboratoire
More informationA Note on the Reduction of Two-Way Automata to One-Way Automata
A Note on the Reduction of Two-Way Automata to One-Way Automata Moshe Y. Vardi IBM Almaden Research Center Abstract We describe a new elementary reduction of two-way automata to one-way automata. The reduction
More informationCS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP
CS 301 - Lecture 29 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of
More informationComputability and Complexity
Computability and Complexity Non-determinism, Regular Expressions CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard
More informationLecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).
CS 221: Computational Complexity Prof. Salil Vadhan Lecture Notes 4 February 3, 2010 Scribe: Jonathan Pines 1 Agenda P-/NP- Completeness NP-intermediate problems NP vs. co-np L, NL 2 Recap Last time, we
More informationCompleteness and Incompleteness in nominal Kleene algebra
1/35 Completeness and Incompleteness in nominal Kleene algebra Dexter Kozen, Konstantinos Mamouras, Alexandra Silva Cornell University, University College London & HasLab INESC TEC September 28th, 2015
More informationLecture 19: Interactive Proofs and the PCP Theorem
Lecture 19: Interactive Proofs and the PCP Theorem Valentine Kabanets November 29, 2016 1 Interactive Proofs In this model, we have an all-powerful Prover (with unlimited computational prover) and a polytime
More informationThe space complexity of a standard Turing machine. The space complexity of a nondeterministic Turing machine
298 8. Space Complexity The space complexity of a standard Turing machine M = (Q,,,, q 0, accept, reject) on input w is space M (w) = max{ uav : q 0 w M u q av, q Q, u, a, v * } The space complexity of
More informationarxiv: v3 [cs.fl] 2 Jul 2018
COMPLEXITY OF PREIMAGE PROBLEMS FOR DETERMINISTIC FINITE AUTOMATA MIKHAIL V. BERLINKOV arxiv:1704.08233v3 [cs.fl] 2 Jul 2018 Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg,
More informationc 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August
SIAM J COMPUT c 1998 Society for Industrial and Applied Mathematics Vol 27, No 4, pp 173 182, August 1998 8 SEPARATING EXPONENTIALLY AMBIGUOUS FINITE AUTOMATA FROM POLYNOMIALLY AMBIGUOUS FINITE AUTOMATA
More informationRegular Expressions and Language Properties
Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),
More informationAutomata on Guarded Strings and Applications
Automata on Guarded Strings and Applications Dexter Kozen Cornell University February 7, 2003 Abstract Guarded strings are like ordinary strings over a finite alphabet P, except that atoms of the free
More informationBBM402-Lecture 11: The Class NP
BBM402-Lecture 11: The Class NP Lecturer: Lale Özkahya Resources for the presentation: http://ocw.mit.edu/courses/electrical-engineering-andcomputer-science/6-045j-automata-computability-andcomplexity-spring-2011/syllabus/
More informationParameterized Regular Expressions and Their Languages
Parameterized Regular Expressions and Their Languages Pablo Barceló a, Juan Reutter b, Leonid Libkin b a Department of Computer Science, University of Chile b School of Informatics, University of Edinburgh
More information6.8 The Post Correspondence Problem
6.8. THE POST CORRESPONDENCE PROBLEM 423 6.8 The Post Correspondence Problem The Post correspondence problem (due to Emil Post) is another undecidable problem that turns out to be a very helpful tool for
More informationDerivatives and Partial Derivatives for Regular Shuffle Expressions
Derivatives and Partial Derivatives for Regular Shuffle Expressions Martin Sulzmann a, Peter Thiemann b a Faculty of Computer Science and Business Information Systems, Karlsruhe University of Applied Sciences
More informationRealization of Coinductive Types
MFPS 2011 Realization of Coinductive Types Dexter Kozen 1,2 Department of Computer Science Cornell University Ithaca, New York 14853 7501, USA Abstract We give an explicit combinatorial construction of
More informationTecniche di Verifica. Introduction to Propositional Logic
Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called
More informationInterval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture
Interval Temporal Logics over Strongly Discrete Linear Orders: the Complete Picture D.Bresolin, D. Della Monica, A. Montanari, P. Sala, G. Sciavicco ICE-TCS, School of Computer Science, Reykjavik University,
More informationWhat is this course about?
What is this course about? Examining the power of an abstract machine What can this box of tricks do? What is this course about? Examining the power of an abstract machine Domains of discourse: automata
More informationPropositional Logic: Models and Proofs
Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505
More informationUnary Automatic Graphs: An Algorithmic Perspective 1
Unary Automatic Graphs: An Algorithmic Perspective 1 This paper studies infinite graphs produced from a natural unfolding operation applied to finite graphs. Graphs produced via such operations are of
More informationSYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES
Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,
More informationPrinciples of Knowledge Representation and Reasoning
Principles of Knowledge Representation and Reasoning Complexity Theory Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg April 29, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)
More informationDavid McAllester* MIT Artificial Intelligence Laboratory 545 Technology Square Cambridge Mass
From: AAAI-91 Proceedings. Copyright 1991, AAAI (www.aaai.org). All rights reserved. Observations on Co David McAllester* MIT Artificial Intelligence Laboratory 545 Technology Square Cambridge Mass. 02139
More informationCSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4
CSE 20 Lecture 4: Introduction to Boolean algebra Reminder First quiz will be on Friday (17th January) in class. It is a paper quiz. Syllabus is all that has been done till Wednesday. If you want you may
More informationLecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.
Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of
More informationSparse analysis Lecture II: Hardness results for sparse approximation problems
Sparse analysis Lecture II: Hardness results for sparse approximation problems Anna C. Gilbert Department of Mathematics University of Michigan Sparse Problems Exact. Given a vector x R d and a complete
More informationTHEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET
THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages
More informationAlternating-Time Temporal Logic
Alternating-Time Temporal Logic R.Alur, T.Henzinger, O.Kupferman Rafael H. Bordini School of Informatics PUCRS R.Bordini@pucrs.br Logic Club 5th of September, 2013 ATL All the material in this presentation
More informationA Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine
A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine Samuel C. Hsieh Computer Science Department, Ball State University July 3, 2014 Abstract We establish a lower
More informationIntroduction to Automata
Introduction to Automata Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr 1 /
More informationContext Free Language Properties
Context Free Language Properties Knowing that the context free languages are exactly those sets accepted by nondeterministic pushdown automata provides us a bit of information about them. We know that
More informationFinite Automata and Regular Languages
Finite Automata and Regular Languages Topics to be covered in Chapters 1-4 include: deterministic vs. nondeterministic FA, regular expressions, one-way vs. two-way FA, minimization, pumping lemma for regular
More informationMatching Trace Patterns With Regular Policies
Matching Trace Patterns With Regular Policies Franz Baader 1, Andreas Bauer 2, and Alwen Tiu 2 1 TU Dresden, Germany, baader@inf.tu-dresden.de 2 The Australian National University, {baueran, alwen.tiu}@rsise.anu.edu.au
More informationCoalgebra, lecture 10: Algebra and Coalgebra for Regular Expressions
Coalgebra, lecture 10: Algebra and Coalgebra for Regular Expressions Jurriaan Rot November 19, 2018 By now we ve been talking a lot about coalgebras and coinduction, as well as algebras and induction.
More informationComputability and Complexity
Computability and Complexity Push-Down Automata CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard Janicki Computability
More informationExercises 1 - Solutions
Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note
More informationLength-Increasing Reductions for PSPACE-Completeness
Length-Increasing Reductions for PSPACE-Completeness John M. Hitchcock 1 and A. Pavan 2 1 Department of Computer Science, University of Wyoming. jhitchco@cs.uwyo.edu 2 Department of Computer Science, Iowa
More informationMATHEMATICAL ENGINEERING TECHNICAL REPORTS. Deductive Inference for the Interiors and Exteriors of Horn Theories
MATHEMATICAL ENGINEERING TECHNICAL REPORTS Deductive Inference for the Interiors and Exteriors of Horn Theories Kazuhisa MAKINO and Hirotaka ONO METR 2007 06 February 2007 DEPARTMENT OF MATHEMATICAL INFORMATICS
More informationLogarithmic space. Evgenij Thorstensen V18. Evgenij Thorstensen Logarithmic space V18 1 / 18
Logarithmic space Evgenij Thorstensen V18 Evgenij Thorstensen Logarithmic space V18 1 / 18 Journey below Unlike for time, it makes sense to talk about sublinear space. This models computations on input
More informationPushdown Automata. We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata.
Pushdown Automata We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata. Next we consider a more powerful computation model, called a
More information