Efficient Construction of Semilinear Representations of Languages Accepted by Unary NFA
|
|
- Junior Walker
- 5 years ago
- Views:
Transcription
1 Efficient Construction of Semilinear Representations of Languages Accepte by Unary NFA Zeněk Sawa Center for Applie Cybernetics, Department of Computer Science Technical University of Ostrava 17. listopau 15, Ostrava-Poruba, , Czech republic Abstract. Chrobak (1986) prove that a language accepte by a given noneterministic finite automaton with one-letter alphabet, i.e., a unary NFA, with n states can be represente as the union of O(n 2 ) arithmetic progressions, an Martinez (2002) has shown how to compute these progressions in polynomial time. To (2009) has pointe out recently that Chrobak s construction an Martinez s algorithm, which is base on it, contain a subtle error an has shown how they can be correcte. In this paper, anewsimpler anmore efficientalgorithm for thesame problem is presente. The running time of the presente algorithm is O(n 2 (n+m)), where n is the number of states an m the number of transitions of a given unary NFA. 1 Introuction It is well known that Parikh images of regular (an even contet-free) languages are semilinear sets [7, 4]. In unary languages, i.e., languages over a one-letter alphabet, wors can be ientifie with their lengths (i.e., a n can be ientifie with n), so the Parikh image of a unary language is just the set of lengths of wors of the language, an it can be ientifie with the language itself. It can be easily shown that each regular unary language can be represente as the union of a finite number of arithmetic progressions of the form {c+i i N} where c an are constants specifying the offset an the perio of a progression. A unary noneterministic finite automaton (a unary NFA) is an NFA with a one-letter alphabet. Given a unary NFA A, a set of arithmetic progressions representing the language accepte by A can be compute by eterminization of A; however, this straightforwar approach can prouce an eponential number of progressions. Chrobak [1] has shown that this eponential blowup is avoiable an that a language accepte by a unary NFA with n states can be represente as the union of O(n 2 ) progressions of the form {c+i i N} where c < p(n) for some p(n) O(n 2 ) an 0 n. The computational compleity of the Supporte by the Czech Ministry of Eucation, Grant No. 1M0567.
2 2 construction of these progressions was not analyze in [1], but it can be easily seen that a naive straightforwar implementation woul require eponential time. Later, Martinez [5, 6] has shown how the construction escribe in [1] can be realize in polynomial time. The eact compleity of Martinez s algorithm is O(kn 4 ) where n is the number of states of the automaton an k the number of strongly connecte components of its graph. The result was recently use for eample in [3,2] to obtain more efficient algorithms for some problems in automata theory an the verification of one-counter processes. In [8], To pointe out that Chrobak s construction an Martinez s algorithm (whose correctness relies on correctness of Chrobak s construction) contain a subtle error, an he has shown moifications that correct this error. In this paper, we give a simpler an more efficient algorithm for the same problem, i.e., for computing of a corresponing set of arithmetic progressions for a given unary NFA. The time compleity of the algorithm is O(n 2 (n+m)) an its space compleity O(n 2 ), where n is the number of states an m number of transitions of the unary NFA. Section 2 gives basic efinitions an formulates the main result, Section 3 escribes the algorithm an proofs of its correctness, an Section 4 contains a escription of an efficient implementation of the algorithm an an analysis of its compleity. 2 Definitions an Main Result The set of natural numbers {0,1,2,...} is enote by N. For i,j N such that i j, [i,j] enotes the set {i,i+1,...,j}, an [i,j) enotes the (possibly empty) set {i,i+1,...,j 1}. Given c, N, an arithmetic progression is the set {c+ i i N}, enote c+n, where c is calle the offset an the perio of the progression. The following efinitions are stanar (see e.g. [4]), ecept that they are specialize to the case where a one-letter alphabet is use. In such an alphabet, wors can be ientifie with their lengths. A unary noneterministic finite automaton (a unary NFA) is a tuple A = (Q,δ,I,F) where Q is a finite set of states, δ Q Q is a transition relation, an I,F Q are sets of initial an final states respectively. A path of length k from q to q, where q,q Q, is a sequence of states q 0,q 1,...,q k from Q where q = q 0, q k = q k, an (q i 1,q i ) δ for each i [1,k]. We use q q to enote that there eists a path of length k from q to q. A wor N is accepte by A if q 0 q f for some q 0 I an q f F. The language L(A) accepte by a unary NFA A is the set of all wors accepte by A. We consier the following problem: Problem: UNFA-Arith-Progressions Input: A unary NFA A. Output: A set {(c 1, 1 ), (c 2, 2 ),..., (c k, k )} of pairs of natural numbers such that L(A) = k i=1 (c i + i N).
3 3 The main result presente in this paper is: Theorem 1. There is an algorithm solving UNFA-Arith-Progressions with time compleity O(n 2 (n+m)) an space compleity O(n 2 ) where n is the number of states an m the number of transitions of a given unary NFA. The algorithm constructs O(n 2 ) pairs of numbers an each constructe pair (c i, i ) satisfies c i < 2n 2 +n an i n. 3 L(A) as Union of Arithmetic Progressions In this section, we escribe the algorithm for UNFA-Arith-Progressions an prove its correctness. In the rest of the section, we assume a fie unary NFA A = (Q,δ,I,F) with Q = n. 3.1 The algorithm The algorithm works as follows. It computes the resulting set R of pairs of numbers that represent arithmetic progressions as the union of the following sets R 1 an R 2 where: R 1 is the set of all of pairs (,0) where L(A) an [0,2n 2 +n), an R 2 is the set of all of pairs (c,) where [1,n], c [2n 2,2n 2 ), an n where for some q 0 I, q Q, an q f F we have q 0 q, q q, an q c n q f (note that c n). To compute R 1, it is sufficient to test for each [0,2n 2 +n)if L(A), an to compute R 2, it is sufficient to test for each of O(n 2 ) pairs (c,), where [1,n] an c [2n 2,2n 2 ), if the require conitions are satisfie. All these tests can be easily one in polynomial time an we can also see that R O(n 2 ). An efficient implementation of the algorithm, which avois some recomputations by precomputing certain sets of states, is escribe in Section 4 together with a more etaile analysis of its compleity. The correctness of the algorithm is ensure by the following crucial lemma an its corollary; the proof of the lemma is postpone to the net subsection. Lemma 2. Let 2n 2 +n. If L(A) then c+n for some (c,) R 2. Corollary 3. Let N. Then L(A) iff c+n for some (c,) R. Proof. ( ) Assume L(A). Either < 2n 2 + n an then (,0) R 1 an (+0N) = {}, or 2n 2 +n an then c+n for some (c,) R 2 by Lemma 2. ( ) It can be easily checke that c + N L(A) for each (c,) R. For (c,) R 1 this follows from the efinition, an for (c,) R 2 from the observation that if q 0 q, q q, an q c n q f for some q 0 I, q Q, an q f F n (where c n), then A accepts each wor from c+n.
4 4 3.2 Proof of Lemma 2 The rest of this section is evote to the proof of Lemma 2, which is one by the following sequence of simple propositions. The basic iea of the proof is that there eists a polynomial p(n) O(n 2 ) such that if q 1 q 2 for some q 1,q 2 Q an p(n) then there is a path α of length from q 1 to q 2 of the following form: α goes from q 1 to some state q by c 1 steps, then goes through a cycle of length [1,n] several times, an then goes from q to q 2 by c 2 steps. Obviously = c 1 +k +c 2 for some k N, an it will be also ensure that c 1 +c 2 < p(n). Every path α of length from q 1 to q 2 can be transforme into the escribe form by the following construction: we can ecompose α into elementary cycles, i.e., cycles where no state is repeate, an a simple path, i.e., a path where no state is repeate, from q 1 to q 2. We can o this by repeately removing elementary cycles from α. Using this ecomposition, we can construct a path of the require form by selecting one elementary cycle of some length, say, an by repeately cutting-out some subsets of the remaining elementary cycles, such that the sums of lengths of cycles in these subsets are multiples of, which means that they can be replace with iterations of the selecte cycle of length. However, when we cut-out cycles, we must be careful, because by cuttingout some cycles, some other cycles can become unreachable. An error of this kin was mae by Chrobak in [1] as pointe out by To in [8]. To ensure that none of the cycles becomes unreachable, we ivie elementary cycles into two categories removable an unremovable. Only removable cycles will be cut-out, an it will be ensure that it is safe to remove any subset of removable cycles. We say a sequence β 0,β 1,...,β r, where β 0 is a simple path from q 1 to q 2 an where β 1,β 2,...,β r are elementary cycles, is goo if for each i [1,r] there is some j [0,i), such that β i an β j share at least one state q. Note that from such goo sequence we can construct a path from q 1 to q 2, whose length is the sum of lengths of all β i, by starting with β 0 an repeately pasting-in β 1,β 2,...,β r (in this orer). Each cycle β i can be paste-in since it shares some state q with some β j where j < i (β i can be paste in by splitting it in q). Note that a ecomposition β 0,β 1,...,β r of an original path α, where β 0 is a simple path from q 1 to q 2 an where β 1,β 2,...,β r are elementary cycles in the reverse orer, in which they were remove from α (i.e., β r was remove first an β 1 last), is goo. We say a cycle β i, where i [1,r], is removable if for each state q of β i there is some j [0,i) such that β j contains q. Cycle β i that is not removable is unremovable. It can be easily checke that a sequence obtaine from β 0,β 1,...,β r by removing some arbitrary subset of removable cycles is also goo. The following proposition is the main tool that allows us to fin a subset of removable cycles such that the sum of lengths of cycles in this subset is a multiple of.
5 5 Proposition 4. Let 1. Every sequence 1, 2,..., r of natural numbers, where r, contains a non-empty subsequence i, i+1,..., j (where 1 i j r) such that ( i + i j ) 0 (mo ). Proof. Consierasequences 0,s 1,...,s r wheres i = i fori [0,r]. Thereareatmostifferentvaluesofs i moulo.sincer,bythepigeonhole principle we have s i s j (mo ) for some i,j such that 0 i < j r. The nonempty sequence i+1, i+2,..., j has the require property ( i+1 + i j ) 0 (mo ), since s j s i 0 (mo ). y Proposition 5. Let q 1,q 2 Q, N, an [1,n]. If q 1 q 2 then q 1 q 2 for some y [0,2n 2 n) such that y an y (mo ). Proof. Let us assume q 1 q 2 an let y N be the smallest number such that y y (mo ) an q 1 q 2 (such y eists, since y = satisfies these properties). Let β 0,β 1,...,β r be a goo ecomposition of a path of length y from q 1 to q 2 (β 0 is a simple path from q 1 to q 2 an β i for i [1,r] are elementary cycles). Let us assume that there are at least removable cycles in this ecomposition. Then, by Proposition 4, there is a nonempty subset of these removable cycles such that the sum of lengths of the cycles in this subset is a multiple of. By removing the cycles in this subset we obtain a goo sequence, from which we can construct a path from q 1 to q 2 of length y < y where y y (mo ). y So q 1 q 2 an y (mo ), which is a contraiction, since we have assume that y is the smallest such number. This implies that in the sequence β 0,β 1,...,β r there are at most 1 removable cycles. A cycle β i is unremovable iff it contains a state q that oes not belong to any β j with j < i, which implies that there are at most n 1 unremovable cycles (note that there is at least one state in β 0 ). The length of β 0 is at most n 1 an a length of each elementary cycle is at most n, which implies since n. y (n 1)+(n 1+ 1) n < 2n 2 n, Corollary 6. Let q 1 q 2 for some q 1,q 2 Q an N. If n then there eist q Q, c 1 [0,n), [1,n], an c 2 [0,2n 2 c n) such that q 1 1 q, q q, q c2 q 2, an (c 1 +c 2 )+N. Proof. By the pigeonhole principle, some q Q must be visite twice in the first n steps of a path from q 1 to q 2 of length n, an so for some c 1 [0,n), c 1 [1,n], an c 2 N we have q 1 q, q q, q c 2 q 2, an = c 1 ++c 2. By Proposition 5, there is some c 2 [0,2n 2 n) satisfying c 2 c 2, q c2 q 2, an c 2 c 2 (mo ). So c 2 = c 2 +k for some k N, an = c 1 ++c 2 = (c 1 +c 2 )+(k +1), which means that (c 1 +c 2 )+N. Proposition 7. Let q 1 q 2 for some q 1,q 2 Q an N. If 2n 2 +n then there eist q Q, c [0,2n 2 n n), an [1,n], such that q 1 q, c q q, q q 2, an (n+c)+n.
6 6 Proof. Assume q 1 q 2 where 2n 2 + n. By Corollary 6, there are some q Q, c 1 [0,n), [1,n], c 2 [0,2n 2 c n), an k N such that q 1 1 q, q, q c 2 q2, an = (c 1 +c 2 )+k. Let α be a path of length from q 1 to q 2 that goes from q 1 to q by c 1 steps, then goes k times through a cycle β of length, an then goes from q to q 2 by c 2 steps, an let q be the state reache after the first n steps of α. Note that since (c 1 +c 2 )+k = 2n 2 +n an c 1 +c 2 < 2n 2 (because c 1 < n an c 2 < 2n 2 n), we have k n. Togetherwith n c 1 < n this ensures that the state q is on the cycle β, which implies q 1 q, q q, an q n q 2. By Proposition 5, there is some c [0,2n 2 n) such that c c n, q q 2, an c n (mo ). This means that n+c (mo ), an since c n implies n+c, we have (n+c)+n. q Now we can prove Lemma 2. Proof (of Lemma 2). Assume that 2n 2 + n an L(A), so there are some q 0 I an q f F such that q 0 q f. By Lemma 7, there eist q Q, c [0,2n 2 n c n), an [1,n], such that q 0 q q q, q q f, an (n+c )+N. This means that for each c (n+c )+N, such that c, we have q c n q f an c+n. In particular, there is one such c in the interval [2n 2,2n 2 ), since n+c [n,2n 2 ). 4 Efficient Implementation To avoi recomputations, the algorithm precomputes some sets. For i N we i i efine S i = {q Q q 0 I : q 0 q} an T i = {q Q q f F : q q f }, an for q Q we efine Perios(q) = { [1,n] q q}. In particular, the algorithm precomputes the sets S n, T i for i [2n 2 2n,2n 2 n), an Perios(q) n for q S n. To test for a given q if q 0 q for some q 0 I, the algorithm tests if q S n, to test if q c n q f for some q f F, it tests if q T c n, an to test if q q, it tests if Perios(q). All these sets can be implemente as bit arrays, so operations like aing an element to a set, testing if an element is member of a set, an so on, can be performe in a constant time. It is also obvious that for Q Q, the sets Succ(Q ) = {q Q q Q : (q,q) δ} an Pre(Q ) = {q Q q Q : (q,q ) δ} can be compute in time O(n + m) where m is the number of transitions (i.e., δ = m). Using subroutines for computing Pre an Succ, the precomputation of all necessary sets can be one in time O(n 2 (n+m)). For eample, S n can be precompute by computing sequence S 0,S 1,...,S n where S 0 = I, an S i+1 = Succ(S i ) for i 0, T i can be compute by T 0 = F, an T i+1 = Pre(T i ) for i 0, etc. Also all < 2n 2 + n such that L(A) can be foun in time O(n 2 (n+m)) by computing the sequence S 0,S 1,...,S 2n2 +n 1 an checking if S F for [0,2n 2 +n). There are O(n 2 ) pairs (c,) such that [1,n] an c [2n 2,2n 2 ), an for each of them, at most n states are teste. Since the corresponing tests for
7 7 one triple c,,q can be one in a constant time as escribe above,all triples can be teste in time O(n 3 ). We see that the overall running time of the algorithm is O(n 2 (n+m)). Duringthe computation,onlythevaluesofs n,t i fori [2n 2 n,2n 2 n), an Perios(q) for q S n nee to be store. Obviously, O(n 2 ) bits are sufficient to store these values. Other values are use only temporarily, can be iscare after their use, an o not take more than O(n 2 ) bits, so the overall space compleity of the algorithm is O(n 2 ). References 1. Chrobak, M.: Finite automata an unary languages. Theoretical Computer Science 47(2), (1986) 2. Göller, S., Mayr, R., To, A.W.: On the computational compleity of verifying one-counter processes. In: LICS 09. pp IEEE Computer Society (2009), 3. Gruber, H., Holzer, M.: Computational compleity of NFA minimization for finite an unary languages. In: LATA 08. Lecture Notes in Computer Science, vol. 5196, pp Springer (2008) 4. Kozen, D.C.: Automata an Computability. Springer-Verlag (1997) 5. Martinez, A.: Efficient computation of regular epressions from unary nfas. In: Descriptional Compleity of Formal Systems (DFCS) (2002) 6. Martinez, A.: Topics in Formal Languages: String Enumeration, Unary NFAs an State Compleity. Master s thesis, University of Waterloo (2002) 7. Parikh, R.J.: On contet-free languages. J. ACM 13(4), (1966) 8. To, A.W.: Unary finite automata vs. arithmetic progressions. Information Processing Letterss 109(17), (2009),
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 information3.7 Implicit Differentiation -- A Brief Introduction -- Student Notes
Fin these erivatives of these functions: y.7 Implicit Differentiation -- A Brief Introuction -- Stuent Notes tan y sin tan = sin y e = e = Write the inverses of these functions: y tan y sin How woul we
More informationSummary: Differentiation
Techniques of Differentiation. Inverse Trigonometric functions The basic formulas (available in MF5 are: Summary: Differentiation ( sin ( cos The basic formula can be generalize as follows: Note: ( sin
More informationA. Incorrect! The letter t does not appear in the expression of the given integral
AP Physics C - Problem Drill 1: The Funamental Theorem of Calculus Question No. 1 of 1 Instruction: (1) Rea the problem statement an answer choices carefully () Work the problems on paper as neee (3) Question
More informationSection 7.1: Integration by Parts
Section 7.1: Integration by Parts 1. Introuction to Integration Techniques Unlike ifferentiation where there are a large number of rules which allow you (in principle) to ifferentiate any function, the
More informationTable of Common Derivatives By David Abraham
Prouct an Quotient Rules: Table of Common Derivatives By Davi Abraham [ f ( g( ] = [ f ( ] g( + f ( [ g( ] f ( = g( [ f ( ] g( g( f ( [ g( ] Trigonometric Functions: sin( = cos( cos( = sin( tan( = sec
More informationOn the enumeration of partitions with summands in arithmetic progression
AUSTRALASIAN JOURNAL OF COMBINATORICS Volume 8 (003), Pages 149 159 On the enumeration of partitions with summans in arithmetic progression M. A. Nyblom C. Evans Department of Mathematics an Statistics
More informationParikh s Theorem and Descriptional Complexity
Parikh s Theorem and Descriptional Complexity Giovanna J. Lavado and Giovanni Pighizzini Dipartimento di Informatica e Comunicazione Università degli Studi di Milano SOFSEM 2012 Špindlerův Mlýn, Czech
More informationFinite Automata. Mahesh Viswanathan
Finite Automata Mahesh Viswanathan In this lecture, we will consider different models of finite state machines and study their relative power. These notes assume that the reader is familiar with DFAs,
More informationCS Lecture 28 P, NP, and NP-Completeness. Fall 2008
CS 301 - Lecture 28 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of
More informationLinear First-Order Equations
5 Linear First-Orer Equations Linear first-orer ifferential equations make up another important class of ifferential equations that commonly arise in applications an are relatively easy to solve (in theory)
More informationSYNCHRONOUS SEQUENTIAL CIRCUITS
CHAPTER SYNCHRONOUS SEUENTIAL CIRCUITS Registers an counters, two very common synchronous sequential circuits, are introuce in this chapter. Register is a igital circuit for storing information. Contents
More informationDECOMPOSITION OF POLYNOMIALS AND APPROXIMATE ROOTS
DECOMPOSITION OF POLYNOMIALS AND APPROXIMATE ROOTS ARNAUD BODIN Abstract. We state a kin of Eucliian ivision theorem: given a polynomial P (x) an a ivisor of the egree of P, there exist polynomials h(x),
More informationUnit #6 - Families of Functions, Taylor Polynomials, l Hopital s Rule
Unit # - Families of Functions, Taylor Polynomials, l Hopital s Rule Some problems an solutions selecte or aapte from Hughes-Hallett Calculus. Critical Points. Consier the function f) = 54 +. b) a) Fin
More informationPerfect Matchings in Õ(n1.5 ) Time in Regular Bipartite Graphs
Perfect Matchings in Õ(n1.5 ) Time in Regular Bipartite Graphs Ashish Goel Michael Kapralov Sanjeev Khanna Abstract We consier the well-stuie problem of fining a perfect matching in -regular bipartite
More informationx = c of N if the limit of f (x) = L and the right-handed limit lim f ( x)
Limit We say the limit of f () as approaches c equals L an write, lim L. One-Sie Limits (Left an Right-Hane Limits) Suppose a function f is efine near but not necessarily at We say that f has a left-hane
More informationDiophantine Approximations: Examining the Farey Process and its Method on Producing Best Approximations
Diophantine Approximations: Examining the Farey Process an its Metho on Proucing Best Approximations Kelly Bowen Introuction When a person hears the phrase irrational number, one oes not think of anything
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 informationCMPSCI 250: Introduction to Computation. Lecture #22: From λ-nfa s to NFA s to DFA s David Mix Barrington 22 April 2013
CMPSCI 250: Introduction to Computation Lecture #22: From λ-nfa s to NFA s to DFA s David Mix Barrington 22 April 2013 λ-nfa s to NFA s to DFA s Reviewing the Three Models and Kleene s Theorem The Subset
More informationLecture 6: Calculus. In Song Kim. September 7, 2011
Lecture 6: Calculus In Song Kim September 7, 20 Introuction to Differential Calculus In our previous lecture we came up with several ways to analyze functions. We saw previously that the slope of a linear
More informationIntegration Review. May 11, 2013
Integration Review May 11, 2013 Goals: Review the funamental theorem of calculus. Review u-substitution. Review integration by parts. Do lots of integration eamples. 1 Funamental Theorem of Calculus In
More informationMathematics 116 HWK 25a Solutions 8.6 p610
Mathematics 6 HWK 5a Solutions 8.6 p6 Problem, 8.6, p6 Fin a power series representation for the function f() = etermine the interval of convergence. an Solution. Begin with the geometric series = + +
More informationIterated Point-Line Configurations Grow Doubly-Exponentially
Iterate Point-Line Configurations Grow Doubly-Exponentially Joshua Cooper an Mark Walters July 9, 008 Abstract Begin with a set of four points in the real plane in general position. A to this collection
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 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 informationCalculus and optimization
Calculus an optimization These notes essentially correspon to mathematical appenix 2 in the text. 1 Functions of a single variable Now that we have e ne functions we turn our attention to calculus. A function
More information2. Elements of the Theory of Computation, Lewis and Papadimitrou,
Introduction Finite Automata DFA, regular languages Nondeterminism, NFA, subset construction Regular Epressions Synta, Semantics Relationship to regular languages Properties of regular languages Pumping
More informationExtended transition function of a DFA
Extended transition function of a DFA The next two pages describe the extended transition function of a DFA in a more detailed way than Handout 3.. p./43 Formal approach to accepted strings We define the
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 informationd dx But have you ever seen a derivation of these results? We ll prove the first result below. cos h 1
Lecture 5 Some ifferentiation rules Trigonometric functions (Relevant section from Stewart, Seventh Eition: Section 3.3) You all know that sin = cos cos = sin. () But have you ever seen a erivation of
More information7. Localization. (d 1, m 1 ) (d 2, m 2 ) d 3 D : d 3 d 1 m 2 = d 3 d 2 m 1. (ii) If (d 1, m 1 ) (d 1, m 1 ) and (d 2, m 2 ) (d 2, m 2 ) then
7. Localization To prove Theorem 6.1 it becomes necessary to be able to a enominators to rings (an to moules), even when the rings have zero-ivisors. It is a tool use all the time in commutative algebra,
More informationFinite Automata, Palindromes, Patterns, and Borders
Finite Automata, Palindromes, Patterns, and Borders arxiv:0711.3183v1 [cs.dm] 20 Nov 2007 Terry Anderson, Narad Rampersad, Nicolae Santean, and Jeffrey Shallit School of Computer Science University of
More informationHarvard CS 121 and CSCI E-207 Lecture 6: Regular Languages and Countability
Harvard CS 121 and CSCI E-207 Lecture 6: Regular Languages and Countability Salil Vadhan September 20, 2012 Reading: Sipser, 1.3 and The Diagonalization Method, pages 174 178 (from just before Definition
More informationProof by Mathematical Induction.
Proof by Mathematical Inuction. Mathematicians have very peculiar characteristics. They like proving things or mathematical statements. Two of the most important techniques of mathematical proof are proof
More informationAutomata and Languages
Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets
More information18 EVEN MORE CALCULUS
8 EVEN MORE CALCULUS Chapter 8 Even More Calculus Objectives After stuing this chapter you shoul be able to ifferentiate an integrate basic trigonometric functions; unerstan how to calculate rates of change;
More informationWJEC Core 2 Integration. Section 1: Introduction to integration
WJEC Core Integration Section : Introuction to integration Notes an Eamples These notes contain subsections on: Reversing ifferentiation The rule for integrating n Fining the arbitrary constant Reversing
More informationTheoretical Computer Science
Theoretical Computer Science Zdeněk Sawa Department of Computer Science, FEI, Technical University of Ostrava 17. listopadu 15, Ostrava-Poruba 708 33 Czech republic September 22, 2017 Z. Sawa (TU Ostrava)
More informationWhat s in an Attribute? Consequences for the Least Common Subsumer
What s in an Attribute? Consequences for the Least Common Subsumer Ralf Küsters LuFG Theoretical Computer Science RWTH Aachen Ahornstraße 55 52074 Aachen Germany kuesters@informatik.rwth-aachen.e Alex
More information(a 1 m. a n m = < a 1/N n
Notes on a an log a Mat 9 Fall 2004 Here is an approac to te eponential an logaritmic functions wic avois any use of integral calculus We use witout proof te eistence of certain limits an assume tat certain
More informationCS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,
CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for
More informationarxiv: v1 [cs.fl] 19 Mar 2015
Regular realizability problems and regular languages A. Rubtsov arxiv:1503.05879v1 [cs.fl] 19 Mar 2015 1 Moscow Institute of Physics and Technology 2 National Research University Higher School of Economics
More informationMATH 1010E University Mathematics Lecture Notes (week 8) Martin Li
MATH 1010E University Mathematics Lecture Notes (week 8) Martin Li 1 L Hospital s Rule Another useful application of mean value theorems is L Hospital s Rule. It helps us to evaluate its of indeterminate
More informationFORMAL 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 informationCDS 270 (Fall 09) - Lecture Notes for Assignment 8.
CDS 270 (Fall 09) - Lecture Notes for Assignment 8. ecause this part of the course has no slides or textbook, we will provide lecture supplements that include, hopefully, enough discussion to complete
More informationWitt#5: Around the integrality criterion 9.93 [version 1.1 (21 April 2013), not completed, not proofread]
Witt vectors. Part 1 Michiel Hazewinkel Sienotes by Darij Grinberg Witt#5: Aroun the integrality criterion 9.93 [version 1.1 21 April 2013, not complete, not proofrea In [1, section 9.93, Hazewinkel states
More informationFinite Universes. L is a fixed-length language if it has length n for some
Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of
More information6 General properties of an autonomous system of two first order ODE
6 General properties of an autonomous system of two first orer ODE Here we embark on stuying the autonomous system of two first orer ifferential equations of the form ẋ 1 = f 1 (, x 2 ), ẋ 2 = f 2 (, x
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 informationII. First variation of functionals
II. First variation of functionals The erivative of a function being zero is a necessary conition for the etremum of that function in orinary calculus. Let us now tackle the question of the equivalent
More informationExperiment I Electric Force
Experiment I Electric Force Twenty-five hunre years ago, the Greek philosopher Thales foun that amber, the harene sap from a tree, attracte light objects when rubbe. Only twenty-four hunre years later,
More informationThe canonical controllers and regular interconnection
Systems & Control Letters ( www.elsevier.com/locate/sysconle The canonical controllers an regular interconnection A.A. Julius a,, J.C. Willems b, M.N. Belur c, H.L. Trentelman a Department of Applie Mathematics,
More informationCSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs
CSE : Foundations of Computing Lecture : Finite State Machine Minimization & NFAs State Minimization Many different FSMs (DFAs) for the same problem Take a given FSM and try to reduce its state set by
More informationHilbert functions and Betti numbers of reverse lexicographic ideals in the exterior algebra
Turk J Math 36 (2012), 366 375. c TÜBİTAK oi:10.3906/mat-1102-21 Hilbert functions an Betti numbers of reverse lexicographic ieals in the exterior algebra Marilena Crupi, Carmela Ferró Abstract Let K be
More informationAntiderivatives. Definition (Antiderivative) If F (x) = f (x) we call F an antiderivative of f. Alan H. SteinUniversity of Connecticut
Antierivatives Definition (Antierivative) If F (x) = f (x) we call F an antierivative of f. Antierivatives Definition (Antierivative) If F (x) = f (x) we call F an antierivative of f. Definition (Inefinite
More informationBALA RAVIKUMAR Department of Computer Science, Sonoma State University Rohnert Park, CA 94928, USA
International Journal of Foundations of Computer Science c World Scientific Publishing Company ON THE EXISTENCE OF LOOKAHEAD DELEGATORS FOR NFA BALA RAVIKUMAR Department of Computer Science, Sonoma State
More informationCOM364 Automata Theory Lecture Note 2 - Nondeterminism
COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly
More informationLenny Jones Department of Mathematics, Shippensburg University, Shippensburg, Pennsylvania Daniel White
#A10 INTEGERS 1A (01): John Selfrige Memorial Issue SIERPIŃSKI NUMBERS IN IMAGINARY QUADRATIC FIELDS Lenny Jones Deartment of Mathematics, Shiensburg University, Shiensburg, Pennsylvania lkjone@shi.eu
More informationIntegration by Parts
Integration by Parts 6-3-207 If u an v are functions of, the Prouct Rule says that (uv) = uv +vu Integrate both sies: (uv) = uv = uv + u v + uv = uv vu, vu v u, I ve written u an v as shorthan for u an
More informationPermanent vs. Determinant
Permanent vs. Determinant Frank Ban Introuction A major problem in theoretical computer science is the Permanent vs. Determinant problem. It asks: given an n by n matrix of ineterminates A = (a i,j ) an
More informationPeriods of quadratic twists of elliptic curves
Perios of quaratic twists of elliptic curves Vivek Pal with an appenix by Amo Agashe Abstract In this paper we prove a relation between the perio of an elliptic curve an the perio of its real an imaginary
More information3.2 Differentiability
Section 3 Differentiability 09 3 Differentiability What you will learn about How f (a) Might Fail to Eist Differentiability Implies Local Linearity Numerical Derivatives on a Calculator Differentiability
More informationUNDERSTANDING INTEGRATION
UNDERSTANDING INTEGRATION Dear Reaer The concept of Integration, mathematically speaking, is the "Inverse" of the concept of result, the integration of, woul give us back the function f(). This, in a way,
More informationTwo formulas for the Euler ϕ-function
Two formulas for the Euler ϕ-function Robert Frieman A multiplication formula for ϕ(n) The first formula we want to prove is the following: Theorem 1. If n 1 an n 2 are relatively prime positive integers,
More informationWeek 1: Number Theory - Euler Phi Function, Order and Primitive Roots. 1 Greatest Common Divisor and the Euler Phi Function
2010 IMO Summer Training: Number Theory 1 Week 1: Number Theory - Euler Phi Function, Orer an Primitive Roots 1 Greatest Common Divisor an the Euler Phi Function Consier the following problem. Exercise
More informationThe derivative of a function f(x) is another function, defined in terms of a limiting expression: f(x + δx) f(x)
Y. D. Chong (2016) MH2801: Complex Methos for the Sciences 1. Derivatives The erivative of a function f(x) is another function, efine in terms of a limiting expression: f (x) f (x) lim x δx 0 f(x + δx)
More informationPolynomial Inclusion Functions
Polynomial Inclusion Functions E. e Weert, E. van Kampen, Q. P. Chu, an J. A. Muler Delft University of Technology, Faculty of Aerospace Engineering, Control an Simulation Division E.eWeert@TUDelft.nl
More informationProblem Sheet 2: Eigenvalues and eigenvectors and their use in solving linear ODEs
Problem Sheet 2: Eigenvalues an eigenvectors an their use in solving linear ODEs If you fin any typos/errors in this problem sheet please email jk28@icacuk The material in this problem sheet is not examinable
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 informationSubset construction. We have defined for a DFA L(A) = {x Σ ˆδ(q 0, x) F } and for A NFA. For any NFA A we can build a DFA A D such that L(A) = L(A D )
Search algorithm Clever algorithm even for a single word Example: find abac in abaababac See Knuth-Morris-Pratt and String searching algorithm on wikipedia 2 Subset construction We have defined for a DFA
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 6 CHAPTER 2 FINITE AUTOMATA 2. Nondeterministic Finite Automata NFA 3. Finite Automata and Regular Expressions 4. Languages
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 informationRegular tree languages definable in FO and in FO mod
Regular tree languages efinable in FO an in FO mo Michael Beneikt Luc Segoufin Abstract We consier regular languages of labele trees. We give an effective characterization of the regular languages over
More informationLower Bounds for the Smoothed Number of Pareto optimal Solutions
Lower Bouns for the Smoothe Number of Pareto optimal Solutions Tobias Brunsch an Heiko Röglin Department of Computer Science, University of Bonn, Germany brunsch@cs.uni-bonn.e, heiko@roeglin.org Abstract.
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 informationClasses and conversions
Classes and conversions Regular expressions Syntax: r = ε a r r r + r r Semantics: The language L r of a regular expression r is inductively defined as follows: L =, L ε = {ε}, L a = a L r r = L r L r
More informationSeptember 7, Formal Definition of a Nondeterministic Finite Automaton
Formal Definition of a Nondeterministic Finite Automaton September 7, 2014 A comment first The formal definition of an NFA is similar to that of a DFA. Both have states, an alphabet, transition function,
More informationComputing Exact Confidence Coefficients of Simultaneous Confidence Intervals for Multinomial Proportions and their Functions
Working Paper 2013:5 Department of Statistics Computing Exact Confience Coefficients of Simultaneous Confience Intervals for Multinomial Proportions an their Functions Shaobo Jin Working Paper 2013:5
More informationCalculus of Variations
16.323 Lecture 5 Calculus of Variations Calculus of Variations Most books cover this material well, but Kirk Chapter 4 oes a particularly nice job. x(t) x* x*+ αδx (1) x*- αδx (1) αδx (1) αδx (1) t f t
More informationFinal Exam Study Guide and Practice Problems Solutions
Final Exam Stuy Guie an Practice Problems Solutions Note: These problems are just some of the types of problems that might appear on the exam. However, to fully prepare for the exam, in aition to making
More informationCalculus of Variations
Calculus of Variations Lagrangian formalism is the main tool of theoretical classical mechanics. Calculus of Variations is a part of Mathematics which Lagrangian formalism is base on. In this section,
More informationA Note on Exact Solutions to Linear Differential Equations by the Matrix Exponential
Avances in Applie Mathematics an Mechanics Av. Appl. Math. Mech. Vol. 1 No. 4 pp. 573-580 DOI: 10.4208/aamm.09-m0946 August 2009 A Note on Exact Solutions to Linear Differential Equations by the Matrix
More informationA Sketch of Menshikov s Theorem
A Sketch of Menshikov s Theorem Thomas Bao March 14, 2010 Abstract Let Λ be an infinite, locally finite oriente multi-graph with C Λ finite an strongly connecte, an let p
More informationAn algebraic characterization of unary two-way transducers
An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers
More informationTHE GENUINE OMEGA-REGULAR UNITARY DUAL OF THE METAPLECTIC GROUP
THE GENUINE OMEGA-REGULAR UNITARY DUAL OF THE METAPLECTIC GROUP ALESSANDRA PANTANO, ANNEGRET PAUL, AND SUSANA A. SALAMANCA-RIBA Abstract. We classify all genuine unitary representations of the metaplectic
More informationThe Non-abelian Hodge Correspondence for Non-Compact Curves
1 Section 1 Setup The Non-abelian Hoge Corresponence for Non-Compact Curves Chris Elliott May 8, 2011 1 Setup In this talk I will escribe the non-abelian Hoge theory of a non-compact curve. This was worke
More informationCS 154. Finite Automata, Nondeterminism, Regular Expressions
CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set
More informationSYDE 112, LECTURE 1: Review & Antidifferentiation
SYDE 112, LECTURE 1: Review & Antiifferentiation 1 Course Information For a etaile breakown of the course content an available resources, see the Course Outline. Other relevant information for this section
More informationReversal of Regular Languages and State Complexity
Reversal of Regular Languages and State Complexity Juraj Šebej Institute of Computer Science, Faculty of Science, P. J. Šafárik University, Jesenná 5, 04001 Košice, Slovakia juraj.sebej@gmail.com Abstract.
More informationJournal of Algebra. A class of projectively full ideals in two-dimensional Muhly local domains
Journal of Algebra 32 2009 903 9 Contents lists available at ScienceDirect Journal of Algebra wwwelseviercom/locate/jalgebra A class of projectively full ieals in two-imensional Muhly local omains aymon
More informationSri vidya college of engineering and technology
Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order
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 informationIntro to Theory of Computation
Intro to Theory of Computation 1/19/2016 LECTURE 3 Last time: DFAs and NFAs Operations on languages Today: Nondeterminism Equivalence of NFAs and DFAs Closure properties of regular languages Sofya Raskhodnikova
More informationMath 1271 Solutions for Fall 2005 Final Exam
Math 7 Solutions for Fall 5 Final Eam ) Since the equation + y = e y cannot be rearrange algebraically in orer to write y as an eplicit function of, we must instea ifferentiate this relation implicitly
More informationJUST THE MATHS UNIT NUMBER DIFFERENTIATION 2 (Rates of change) A.J.Hobson
JUST THE MATHS UNIT NUMBER 10.2 DIFFERENTIATION 2 (Rates of change) by A.J.Hobson 10.2.1 Introuction 10.2.2 Average rates of change 10.2.3 Instantaneous rates of change 10.2.4 Derivatives 10.2.5 Exercises
More informationThe Exact Form and General Integrating Factors
7 The Exact Form an General Integrating Factors In the previous chapters, we ve seen how separable an linear ifferential equations can be solve using methos for converting them to forms that can be easily
More informationUnit vectors with non-negative inner products
Unit vectors with non-negative inner proucts Bos, A.; Seiel, J.J. Publishe: 01/01/1980 Document Version Publisher s PDF, also known as Version of Recor (inclues final page, issue an volume numbers) Please
More informationDiscrete Mathematics
Discrete Mathematics 309 (009) 86 869 Contents lists available at ScienceDirect Discrete Mathematics journal homepage: wwwelseviercom/locate/isc Profile vectors in the lattice of subspaces Dániel Gerbner
More informationChapter 1 Overview: Review of Derivatives
Chapter Overview: Review of Derivatives The purpose of this chapter is to review the how of ifferentiation. We will review all the erivative rules learne last year in PreCalculus. In the net several chapters,
More informationchapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS
chapter MORE MATRIX ALGEBRA GOALS In Chapter we studied matrix operations and the algebra of sets and logic. We also made note of the strong resemblance of matrix algebra to elementary algebra. The reader
More information