Computing k-th Lyndon Word and Decoding Lexicographically Minimal de Bruijn Sequence
|
|
- Kristin Ryan
- 5 years ago
- Views:
Transcription
1 Computing k-th Lyndon Word nd Decoding Lexicogrphiclly Miniml de Bruijn Sequence Tomsz Kociumk 1, Jkub Rdoszewski 1, nd Wojciech Rytter 1,2 1 Fculty of Mthemtics, Informtics nd Mechnics, University of Wrsw, Wrsw, Polnd [kociumk,jrd,rytter]@mimuw.edu.pl 2 Fculty of Mthemtics nd Computer Science, Copernicus University, Toruń, Polnd Abstrct. Let Σ be finite ordered lphbet. We present polynomiltime lgorithms for computing the k-th in the lexicogrphic order Lyndon word of given length n over Σ nd counting Lyndon words of length n tht re smller thn given word. We lso use the connections between Lyndon words nd miniml de Bruijn sequences (theorem of Fredricksen nd Miorn) to develop the first polynomil time lgorithm for decoding miniml de Bruijn sequence of ny rnk n (it determines the position of n rbitrry word of length n within the de Bruijn sequence). Our tools mostly rely on combintorics on words nd utomt theory. 1 Introduction We consider finite words over finite ordered lphbet Σ. A Lyndon word over Σ is word tht is strictly smller thn ll its nontrivil cyclic rottions. Lyndon words hve number of combintoril properties (see, e.g., [10]) including the fmous Lyndon fctoriztion theorem which sttes tht every word cn be uniquely written s conctention of lexicogrphiclly non incresing sequence of Lyndon words (due to this theorem Lyndon words re lso clled prime words, see [9]). They re lso relted to necklces of n beds in k colors, tht is, equivlence clsses of k-ry n-tuples under rottion [6, 7]. Lyndon words hve number of pplictions in the field of text lgorithms, see e.g. [1 3, 12]. A de Bruijn sequence of rnk n is cyclic sequence of length Σ n in which every possible word of length n ppers s subword exctly once. De Bruijn sequences re present in vriety of contexts, such s digitl fult testing, pseudorndom number genertion, nd modern public-key cryptogrphic schemes; there re numerous lgorithms for generting such sequences nd their generliztions to other combintoril structures hve been investigted, see [5, 9]. Fredricksen nd Miorn [7] hve shown surprising deep connection between de Bruijn sequences nd Lyndon words: the lexicogrphiclly miniml de Bruijn sequence Supported by Polish budget funds for science in s reserch project under the Dimond Grnt progrm.
2 over Σ is conctention, in lexicogrphic order, of ll Lyndon words over Σ whose length is divisor of n. All Lyndon words of length t most n cn be generted in lexicogrphic order by lgorithm of Fredricksen, Kessler nd Miorn (FKM) [6, 7] (nother lgorithm ws developed by Duvl in [4]). The nlysis from [14] shows tht the FKM lgorithm genertes the subsequent Lyndon words in constnt mortized time. We give the first polynomil time lgorithm for generting Lyndon words of rbitrry rnk in lexicogrphic order. We lso generlize the known simple formul for the number of Lyndon words of length n over Σ (see [9, 10]) by showing polynomil time lgorithm tht computes the number of Lyndon words of length n smller thn given word. For severl de Bruijn sequences decoding lgorithms exist which find the position of n rbitrry word of length n in given de Bruijn sequence in polynomil time [11, 15]. Such lgorithms prove useful in certin types of position sensing pplictions of de Bruijn sequences [15]. We obtin the first decoding lgorithm for the lexicogrphiclly miniml de Bruijn sequence by exploiting its connections with Lyndon words. We lso obtin polynomil-time lgorithm for rndom ccess of symbols in this sequence nd in relted sequence defined in [8]. Note tht the FKM lgorithm cn be used to compute the subsequent symbols of the lexicogrphiclly miniml de Bruijn sequence with O(n 2 ) time dely (or even with worst-cse O(1) time dely [13]), however it does it only in order. We denote by L nd L n the set of ll Lyndon words nd ll Lyndon words of length n, respectively, nd define Lynd(w) = {x L w : x w}. Exmple 1. For Σ = {, b} we hve Lynd(bbb) = 8 since we hve the following Lyndon words of length 6 smller thn bbb (note tht bbb itself is not Lyndon word): b, bb, bb, bbb, bbb, bbb, bbbb, bbbb. Let L (n) = d n L d. By db n we denote the lexicogrphiclly first de Bruijn sequence of rnk n over the given lphbet Σ. It is the conctention of ll Lyndon words in L (n) in lexicogrphic order. Exmple 2. For n = 6 nd binry lphbet we hve the following decomposition of db 6 into Lyndon words: Recently vrint of de Bruijn words ws introduced in [8]. Let db n be the conctention in lexicogrphic order of Lyndon words of length n over Σ. Then db n is cyclic sequence contining ll primitive words of length n. Exmple 3. For n = 6 nd binry lphbet we hve the following decomposition of db 6:
3 Our results. We ssume tht Σ fits in single mchine word. We present n O(n 3 )-time lgorithm for computing Lynd(w) for word w of length n. Using binry serch this lgorithm implies n O(n 4 log Σ )-time lgorithm for computing the k-th Lyndon word of length n (in the lexicogrphic order) for given k. Next we show n O(n 3 )-time decoding lgorithm tht finds the position of n rbitrry w Σ n in db n. We lso obtin O(n 4 log Σ )-time lgorithms computing the k-th symbol of db n nd db n for given k. 2 Preliminries Let Σ be finite ordered lphbet. By Σ nd Σ n we denote the set of ll words over Σ nd the set of ll such words of length n. If w is word then w denotes its length, w[i] its i-th letter (for 1 i w ), w[i, j] its fctor w[i]w[i+1]... w[j] nd w (i) its prefix w[1, i]. Additionlly w k is conctention of k copies of w nd w is n infinite word composed of n infinite number of copies of w. By rot(w, c) let us denote cyclic rottion of w obtined by moving (c mod n) first letters of w to its end (preserving the order of the letters). We sy tht the words w nd rot(w, c) re cycliclly equivlent (sometimes clled conjugtes). By w we denote the lexicogrphiclly miniml cyclic rottion of w. We sy tht w is primitive if w = u k for k Z + implies tht u = w, otherwise w is clled non-primitive. We sy tht λ Σ is Lyndon word if it is primitive nd λ = λ. All cyclic rottions of Lyndon word re different primitive words [10]. The technicl proofs of the following lemms re left for the full version. Lemm 4. Let x, y Σ. Assume x = x nd x y. Then x y. Lemm 5. For given word w Σ n we cn compute in O(n 2 ) time the lexicogrphiclly lrgest word w Σ n such tht w = w w. 3 Combintoril Tools Our bsic gol is to compute Lynd(w), tht is, the number of Lyndon words in Σ n not exceeding w (n = w ). It suffices to compute Lynd(w) for words w such tht w = w. We show how to reduce it to the computtion of the crdinlity of the following set: CS(v) = {x Σ v : x v} for some prefixes v of w. Computtion of CS(v) is lso of independent interest, we pply it in the decoding scheme for miniml de Bruijn sequences. Let us introduce the following uxiliry sets: CS l (v) = {x Σ l : x v } CS l(v) = {x Σ l : x is primitive, x v }. Note tht if x = v then x v is simply equivlent to x v. Thus CS(v) = CS v (v). 3
4 Observtion 6. Lynd(w) = 1 n CS n(w) Proof. Observe tht CS n(w) is the set of ll primitive words of length n tht hve cyclic rottion not exceeding w. Ech Lyndon word of length n not exceeding w corresponds to n such words: ll its cyclic rottions. Observtion 7. CS l (w) = d l CS d(w). Proof. For word x of length l there exists exctly one primitive word y such tht y k = x where k Z +. Thus: CS l (w) = { y Σ d : y is primitive, y l/d } w, d l nd the sum is disjoint. Now y l/d = y implies the requested formul. From Observtion 7, using Möbius inversion formul, we obtin: CS l(w) = µ( l d ) CS d(w). d l Observtion 8. Let w Σ n stisfy w = w. Then CS d (w) = CS(w (d) ). Proof. If d = n the equlity is trivil. Assume d < n. Let y Σ d be word. By Lemm 4, w(d) w, so y w(d) implies y w. On the other hnd, if y w, then y w (d), so y w(d). Applying for y = x we conclude tht x w(d) if nd only if x w, which proves the clim. We conclude with simple formul for Lynd(w) tht combines the results of this section. Lemm 9. Let w Σ n stisfy w = w. Then Lynd(w) = 1 n µ( n d ) CS(w(d) ). d n Exmple 10. Let w = bbbb. We hve w (1) =, w (2) = b, w (3) = b nd CS(w (1) ) = {}, CS(w (2) ) = {, b, b}, CS(w (3) ) = {, b, b, b}, CS(w) = 54, Lynd(w) = 1 6 (µ(1) CS(w) + µ(2) CS(w(3) ) + µ(3) CS(w(2) ) The set Lynd(w) contins the following words: + µ(6) CS(w(1) ) ) = 1 6 ( ) = 8. b, bb, bb, bbb, bbb, bbb, bbbb, bbbb. 4 Automt-Theoretic Tools: Computing CS In this section we design n lgorithm computing CS(w) for word w Σ n. Note tht we my ssume tht w = w, since CS(w) = CS(w ) where w Σ n is the lrgest word such tht w = w w. 4
5 Let Pref (w) = {w (i) s : i [0, n 1], s Σ, s < w[i + 1]} {w}. Consider lnguge L(w) contining words tht hve fctor y Pref (w). Equivlently, x L(w) if there exists fctor of x which is smller thn or equl to w, but is not proper prefix of w. For lnguge L Σ let L = {x : x 2 L}. Fct 11. CS(w) = L(w) Σ n Proof. Consider word x Σ n. If x CS(w) then x w. Tke y = x, which is fctor of x 2. Note tht y w, so some prefix of y belongs to Pref (w). This prefix is fctor of x 2, so x 2 L(w). Consequently, x L(w). On the other hnd, ssume x L(w), so x 2 contins fctor y Pref (w). Let us fix the first occurrence of y in x 2. Observe tht y cn be extended to cyclic rottion x of x. Note tht y Pref (w) implies tht x w, hence x x w nd x CS(w). We construct deterministic finite utomton A recognizing L(w). It hs n + 1 sttes: one for ech proper prefix of w, nd n uxiliry ccepting stte AC. The trnsitions re defined s follows: we set δ(ac, c) = AC for ny c Σ nd w (0) if c > w[i + 1], δ(w (i), c) = w (i+1) if c = w[i + 1] nd i n 1, AC otherwise. (A) strt (B) strt b b b b b b b b Fig. 1: Automt for word w = bbb: (A) ccepts ll words contining w s fctor, (B) ccepts ll words in L(w), i.e. contining fctor y Pref (w). Missing links led to the initil stte. The following fct implies tht L(A) = L(w). Fct 12. Let x Σ nd let q be the stte of A fter reding x. If x L(w) then q = AC. Otherwise q corresponds to the longest prefix of w which is suffix of x. 5
6 Proof. The proof goes by induction on x. If x = 0 the sttement is cler. Consider word x of length x 1. Let x = x c where c Σ. If x L(w) then clerly x L(w). By inductive ssumption fter reding x the utomton is in AC, nd A is constructed so tht it stys in AC once it gets there. Thus the conclusion holds in this cse. From now on we ssume tht x / L(w). Let w (i) be the stte of A fter reding x. If c < w[i + 1], clerly x L(w) (y = w (i) c Pref (w)), nd the utomton proceeds to AC s desired. Similrly, it behves correctly if i = n 1 nd c = w[i + 1]. Consequently we my ssume tht c w[i + 1] nd tht w is not suffix of x. Tke ny j such tht w (j) is suffix of x (possibly empty). Note tht then w (j) is border of w (i). Consequently w (j) w[i+1, n]w (i j) is cyclic rottion of w, so w (j) w[i+1, n]w (i j) w = w = w (j) w[j+1, n], hence c w[i+1] w[j+1]. This implies tht w (j) c could be prefix of w only if c = w[i + 1] = w[j + 1]. In prticulr, A indeed shifts to the longest prefix of w being suffix of x. Now we only need to prove tht x / L(w). For proof by contrdiction, choose fctor y of x such tht y Pref (w) nd y is miniml. Note tht y is suffix of x (since x / L(w)). We hve y = w (j) c for some j n 1 nd c < w[j + 1]. As we hve lredy noticed, such word cnnot be suffix of x. We sy tht n utomton with the set of sttes Q is sprse if the underlying directed grph hs O( Q ) edges counting prllel edges s one. Note tht the trnsitions from ny stte q of A led to t most 3 distinct sttes, so A is sprse. The following corollry summrizes the construction of A. Corollry 13. Let w Σ n stisfy w = w. One cn construct sprse utomton A with O(n) sttes recognizing L(w). For deterministic utomton A = (Q, q 0, F, δ) nd q, q Q let us define L A (q, q ) = {x Σ : δ(q, x) = q }. Then L A (q, q ) is recognized by (Q, q, {q }, δ). Note tht L(A) = q F L A(q 0, q) where the sum is disjoint. The proof of the following lemm is bsed on mtrix multipliction, we omit it in this version. Lemm 14. Let A = (Q, q 0, F, δ) be deterministic utomton with n sttes, nd let m Z 0. () In poly(n + m) time, one cn compute L A (q, q ) Σ k for ll q, q Q nd k m. (b) If A is sprse, it tkes O(m 2 n) time to compute ll vlues L A (q, q ) Σ k, k m, for fixed stte q or q. Observtion 15. Let A = (Q, q 0, F, δ) be deterministic utomton. Then L(A) = L A (q 0, q) L A (q, q ) nd the sum is disjoint. q Q,q F Proof. Consider word x Σ. Note tht x L A (q 0, q) L A (q, q ) for q = δ(q 0, x) nd q = δ(q, x) nd no other pir of sttes q, q. Clerly x L(A) if nd only if q F. 6
7 Corollry 16. If w Σ n stisfies w = w, then one cn compute CS(w) in poly(n) time. Proof. We construct the utomton A with L(A) = L(w) s in Corollry 13. By Fct 11, it suffices to compute L(A) Σ n. Observtion 15 reduces this to computing L A (w (0), q) L A (q, AC) Σ n for ll sttes q of A. One cn construct n utomton with O(n 2 ) sttes representing pirs of sttes of A tht recognizes L A (w (0), q) L A (q, AC). Now it is enough to pply Lemm 14() to determine L A (w (0), q) L A (q, AC) Σ n. Corollry 16 lredy gives polynomil-time lgorithm to compute CS(w), however, the pproch it tkes is rther inefficient. Below, we give n lgorithm working with more resonble O(n 3 ) bound for the running time, which exploits the structure of both the utomton A nd the lnguge L(w). Lemm 17. If w Σ n stisfies w = w, then one cn compute CS(w) in O(n 3 ) time. Proof. As before we pply Fct 11 with Corollry 13 nd ctully compute {x Σ n : x 2 L(A)}. If x L(A), then obviously x 2 L(A). Moreover, Lemm 14(b) lets us compute Σ n L(A) in O(n 3 ) time. Thus, it suffices to count x Σ n such tht x 2 L(A) but x / L(A). This is done bsed on the following clim, see Fig. 2. Clim. Assume x = n nd x 2 L(A) but x / L(A). Then there is unique decomposition x = x 1 x 2 x 3 such tht x 1, x 3 ε, x 3 x 1 Pref (w) nd x 1 x 2 L A (w (0), w (0) ). Proof (of the clim). Let v (for v Σ, Σ) be the shortest prefix of x 2 which belongs to L(A). Let w (i) = δ(w (0), v) be the stte of A fter reding v. Also, let u be the prefix of v of length v i. The structure of the utomton implies tht δ(w (0), u) = w (0), ctully u is the longest prefix of x 2 which belongs to L A (w (0), w (0) ). Note tht v = uw (i) nd w (i) Pref (w), so x / L(A) implies u < n v. We set the decomposition so tht x 1 x 2 = u nd x 3 x 1 = w (i). Uniqueness follows from deterministic behviour of the utomton. u v x x x 1 x 2 x 3 x 1 x 2 x 3 w (0) w (j) w (0) w (i) AC AC Fig. 2: Illustrtion of the clim. Both lines represent different fctoriztions of the sme word x 2. Blck circles represent sttes of the utomton. Only shded letters re not necessrily uniquely determined by x 3 nd x 1 for fixed w. The lgorithm considers ll n 2 choices of x 1 nd x 3, nd counts the number of x s conditioned on these vlues. Let x 1 = x 1 where x 1 Σ, Σ. Note tht 7
8 x 3 x 1 = x 3 x 1 Pref (w), so x 3 x 1 is prefix w (i) of w nd δ(w (i), ) = AC. Hence, i is uniquely determined by x 1 nd x 3. In prticulr x 3 nd x 1 re uniquely determined, the ltter lets us compute w (j) = δ(w (0), x 1). If we obtin δ(w (0), x 1) = AC, we would hve x 1 L(w), contrdiction, which implies tht no x s for our choice of x 1 nd x 3 exist. We need to count x 2 such tht x 2 = n i 1, x 2 L A (w (j), w (0) ) nd δ(w (i), ) = AC. Note tht δ(w (j), ) {w (0), w (j+1) }, since δ(w (j), ) = AC would imply tht x 2 L A (w (j), AC) rther thn x 2 L A (w (j), w (0) ). Thus the number of words x 2 is equl to L(q, w (0) ) Σ n i 1 summed for q {w (0), w (j+1) } tken with coefficients { Σ : δ(w (j), ) = q δ(w (i), ) = AC}. Lemm 14(b) lets us compute ll the vlues of the type L(q, w (0) ) Σ n i 1 tht we my need ltogether in O(n 3 ) time. The coefficient cn be computed for ny j, i nd q in O(n) time, nd in totl we need to sum O(n 2 ) integers fitting into O(n) mchine words ech. This concludes the O(n 3 )-time lgorithm. Lemm 18. For n rbitrry word w Σ n one cn compute CS(w) in O(n 3 ) time. Proof. Let w Σ n be the lrgest word such tht w = w w. Note tht CS(w ) = CS(w). By Lemm 5 we cn compute w in O(n 2 ) time. 5 Rnking Lyndon words nd De Bruijn Sequences Fct 19. Let α > 1 be rel number. Then d n dα = O(n α ). Proof. Recll tht for α > 1 we hve n=1 1 n = O(1). Consequently α d α = ( n ) α ( d n ) α d = n α 1 d = O(n α ). α d n d n d=1 d=1 Theorem 20. We cn compute Lynd(w) in O(n 3 ) time. Proof. We use the formul given by Lemm 9 nd the lgorithm of Lemm 18. The time complexity is O( d n d3 ) which, by Fct 19, reduces to O(n 3 ). Theorem 21. The k-th Lyndon word of length n cn be found in O(n 4 log Σ ) time. Proof. By definition we look for the smllest w Σ n such tht Lynd(w) k. We binry serch Σ n with respect to the lexicogrphic order, using the lgorithm of Theorem 20 to check whether Lynd(w) k. The size of the serch spce is Σ n, which gives n dditionl n log Σ -time fctor. The proof of the theorem of Fredricksen nd Miorn [7] is constructive, i.e. for ny word w of length n it shows the conctention of constnt number of consecutive Lyndon words of length dividing n tht contin w. This, together with the following lemm which reltes db n to CS, lets us compute the exct position where w occurs in db n. Recll tht L (n) is the set of Lyndon words whose length is divisor of n. 8
9 Lemm 22. Let w Σ n nd L(w) = {λ L (n) : λ w }. Then the conctention, in lexicogrphic order, of words λ L(w) forms prefix of db n nd its length, λ L(w) λ, is equl to CS(w). Moreover, if w = λd for some λ L nd d Z +, then λ is the lexicogrphiclly lrgest element of L(w). Proof. First, observe tht by Lemm 4 the lexicogrphic order on L, the set of ll Lyndon words, coincides with the lexicogrphic order of the infinite powers of these words. In prticulr, this remins true in L (n) nd shows tht conctention of elements of L(w) indeed forms prefix of db n, nd tht if w = λ d, then λ is the lexicogrphiclly lrgest element of L(w). It remins to show tht λ L(w) λ = CS(w). We shll build mpping φ : Σ n L (n) such tht φ 1 (λ) = λ nd x w if nd only if φ(x) L(w). Let x Σ n. There is unique primitive word y nd positive integer k such tht x = y k. We set φ(x) = y, note tht it indeed belongs to L (n). Moreover, to ech Lyndon word λ of length d n we hve ssigned v n d for ech cyclic rottion v of λ. Also, x = y n d, so x w if nd only if φ(x) n d w, i.e. φ(x) w, i.e. φ(x) L(w). Theorem 23. Given word w Σ n, its position in the de Bruijn sequence db n cn be found in O(n 3 ) time. Proof. Let λ 1 < λ 2 <... < λ p be ll Lyndon words in L (n) (we hve λ 1 λ 2... λ p = db n ). The proof of theorem of Fredricksen nd Miorn [7, 9] describes the loction of w in db n which cn be stted succinctly s follows. Clim ([7, 9]). Assume tht w = (αβ) d, where d Z + nd βα = λ k L (n). Denote = min Σ nd z = mx Σ. () If w = z i n i for i 1, then w occurs t position Σ n i. (b) If α z α then w is fctor of λ k λ k+1. (c) If α = z α nd d > 1 then w is fctor of λ k 1 λ k λ k+1. (d) If α = z α nd d = 1 then w is fctor of λ k 1λ k λ k +1, where λ k lrgest λ L (n) such tht λ < β. is the In cse () it is esy to locte w in db n, we omit it from further considertions. Observe tht λ k cn be retrieved s the primitive root of w. Also note tht, by Lemm 4, λ k is the primitive root of the lrgest w Σ n such tht w = w nd w < β α, nd thus it cn be computed in O(n 2 ) time using Lemm 5. Once we know λ k nd λ k, depending on the cse, we need to find the successor in L (n) nd possibly the predecessor in L (n) of one of them. For ny λ L (n) the successor in L (n) cn be generted by iterting single step of the FKM lgorithm t most (n 1)/2 times [6], i.e. in O(n 2 ) time. For the predecessor in L (n), version of the FKM lgorithm tht visits the Lyndon words in reverse lexicogrphic order cn be used [9], it lso tkes O(n 2 ) time to find the predecessor. In ll cses we obtin in O(n 2 ) time the Lyndon words whose conctention contins w. Then we perform pttern mtching for w in the conctention. This gives us reltive position of w in db n with respect to the position of the cnonicl 9
10 occurrence of λ k or λ k in db n. Lemm 22 proves tht such n occurrence of λ L (n) ends t position CS(λ n λ ), which cn be computed in O(n 3 ) time by Lemm 18. Applied to λ k or λ k this concludes the proof. To compute the k-th symbol of db n we hve to locte the Lyndon word from L (n) contining the k-th position of db n. We pply binry serch s in Theorem 21. The k-th symbol of db n is much esier to find due to simpler structure of the sequence. This gives rough ide of the proof of the following theorem. We omit the full proof in this version of the pper. Theorem 24. Given integers n nd k, the k-th symbol of db n nd db n cn be computed in O(n 4 log Σ ) time. References 1. S. Bonomo, S. Mntci, A. Restivo, G. Rosone, nd M. Sciortino. Suffixes, conjugtes nd Lyndon words. In M.-P. Bél nd O. Crton, editors, Developments in Lnguge Theory, volume 7907 of Lecture Notes in Computer Science, pges Springer, M. Crochemore, C. S. Iliopoulos, M. Kubic, J. Rdoszewski, W. Rytter, nd T. Wleń. Extrcting powers nd periods in word from its runs structure. Theor. Comput. Sci., doi: /j.tcs , M. Crochemore nd W. Rytter. Text Algorithms. Oxford University Press, J.-P. Duvl. Génértion d une section des clsses de conjugison et rbre des mots de Lyndon de longueur bornée. Theor. Comput. Sci., 60: , R. G. F. Chung, P. Diconis. Universl cycles for combintoril structures. Discrete Mthemtics, 110:43 59, H. Fredricksen nd I. J. Kessler. An lgorithm for generting necklces of beds in two colors. Discrete Mthemtics, 61(2-3): , H. Fredricksen nd J. Miorn. Necklces of beds in k colors nd k-ry de Bruijn sequences. Discrete Mthemtics, 23(3): , Y. Hin Au. Shortest sequences contining primitive words nd powers. ArXiv e-prints, Apr D. E. Knuth. The Art of Computer Progrmming, Volume 4, Fscicle 2. Addison- Wesley, M. Lothire. Combintorics on Words. Addison-Wesley, Reding, MA., U.S.A., C. J. Mitchell, T. Etzion, nd K. G. Pterson. A method for constructing decodble de Bruijn sequences. IEEE Trnsctions on Informtion Theory, 42(5): , M. Much. Lyndon words nd short superstrings. In S. Khnn, editor, SODA, pges SIAM, J. Rdoszewski. Genertion of lexicogrphiclly miniml de Bruijn sequences with prime words. Mster s thesis, University of Wrsw, 2008 (in Polish). 14. F. Ruskey, C. D. Svge, nd T. M. Y. Wng. Generting necklces. J. Algorithms, 13(3): , J. Tulini. De Bruijn sequences with efficient decoding lgorithms. Discrete Mthemtics, 226(1-3): ,
Theory of Computation Regular Languages
Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of
More informationAnatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute
Victor Admchik Dnny Sletor Gret Theoreticl Ides In Computer Science CS 5-25 Spring 2 Lecture 2 Mr 3, 2 Crnegie Mellon University Deterministic Finite Automt Finite Automt A mchine so simple tht you cn
More informationTheory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38
Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control
More information1.3 Regular Expressions
56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,
More informationAUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton
25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q
More informationCoalgebra, Lecture 15: Equations for Deterministic Automata
Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined
More informationFinite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018
Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More
More informationp-adic Egyptian Fractions
p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction
More informationMinimal DFA. minimal DFA for L starting from any other
Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA
More information1.4 Nonregular Languages
74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll
More informationLecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)
Lecture 3 (5.3.2018) (trnslted nd slightly dpted from lecture notes by Mrtin Klzr) Riemnn integrl Now we define precisely the concept of the re, in prticulr, the re of figure U(, b, f) under the grph of
More informationFinite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh
Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is
More informationDesigning finite automata II
Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of
More informationCMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014
CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA
More informationWhere did dynamic programming come from?
Where did dynmic progrmming come from? String lgorithms Dvid Kuchk cs302 Spring 2012 Richrd ellmn On the irth of Dynmic Progrmming Sturt Dreyfus http://www.eng.tu.c.il/~mi/cd/ or50/1526-5463-2002-50-01-0048.pdf
More informationFormal languages, automata, and theory of computation
Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm
More informationNondeterminism and Nodeterministic Automata
Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely
More informationNon Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51
Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices
More informationZero-Sum Magic Graphs and Their Null Sets
Zero-Sum Mgic Grphs nd Their Null Sets Ebrhim Slehi Deprtment of Mthemticl Sciences University of Nevd Ls Vegs Ls Vegs, NV 89154-4020. ebrhim.slehi@unlv.edu Abstrct For ny h N, grph G = (V, E) is sid to
More information1 Structural induction
Discrete Structures Prelim 2 smple questions Solutions CS2800 Questions selected for Spring 2018 1 Structurl induction 1. We define set S of functions from Z to Z inductively s follows: Rule 1. For ny
More informationRiemann is the Mann! (But Lebesgue may besgue to differ.)
Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >
More informationNFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:
CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce
More informationLearning Moore Machines from Input-Output Traces
Lerning Moore Mchines from Input-Output Trces Georgios Gintmidis 1 nd Stvros Tripkis 1,2 1 Alto University, Finlnd 2 UC Berkeley, USA Motivtion: lerning models from blck boxes Inputs? Lerner Forml Model
More informationTheoretical foundations of Gaussian quadrature
Theoreticl foundtions of Gussin qudrture 1 Inner product vector spce Definition 1. A vector spce (or liner spce) is set V = {u, v, w,...} in which the following two opertions re defined: (A) Addition of
More informationHow to simulate Turing machines by invertible one-dimensional cellular automata
How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex
More informationMath 1B, lecture 4: Error bounds for numerical methods
Mth B, lecture 4: Error bounds for numericl methods Nthn Pflueger 4 September 0 Introduction The five numericl methods descried in the previous lecture ll operte by the sme principle: they pproximte the
More informationCS375: Logic and Theory of Computing
CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tble of Contents: Week 1: Preliminries (set lgebr, reltions, functions) (red Chpters 1-4) Weeks
More informationChapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1
Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more
More informationNon-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1
Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet
More information1 Nondeterministic Finite Automata
1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you
More information20 MATHEMATICS POLYNOMIALS
0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of
More informationUSA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year
1/1/21. Fill in the circles in the picture t right with the digits 1-8, one digit in ech circle with no digit repeted, so tht no two circles tht re connected by line segment contin consecutive digits.
More informationLecture 09: Myhill-Nerode Theorem
CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives
More informationAssignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages
Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd
More informationBases for Vector Spaces
Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything
More informationConvert the NFA into DFA
Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:
More informationCS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa
CS:4330 Theory of Computtion Spring 208 Regulr Lnguges Equivlences between Finite utomt nd REs Hniel Brbos Redings for this lecture Chpter of [Sipser 996], 3rd edition. Section.3. Finite utomt nd regulr
More information12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014
CS125 Lecture 12 Fll 2014 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple
More informationModule 9: Tries and String Matching
Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer
More informationModule 9: Tries and String Matching
Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer
More information5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.
Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.
More informationLecture 9: LTL and Büchi Automata
Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled
More informationTHE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS. Circa 1870, G. Zolotarev observed that the Legendre symbol ( a p
THE QUADRATIC RECIPROCITY LAW OF DUKE-HOPKINS PETE L CLARK Circ 1870, Zolotrev observed tht the Legendre symbol ( p ) cn be interpreted s the sign of multipliction by viewed s permuttion of the set Z/pZ
More informationCS 330 Formal Methods and Models
CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q
More informationFinite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh
Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions
More informationAutomata and Languages
Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive
More informationCSCI FOUNDATIONS OF COMPUTER SCIENCE
1 CSCI- 2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 My 7, 2015 2 Announcements Homework 9 is due now. Some finl exm review problems will be posted on the web site tody. These re prcqce problems not
More informationThe Regulated and Riemann Integrals
Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue
More informationHarvard University Computer Science 121 Midterm October 23, 2012
Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is
More informationAdvanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004
Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when
More information(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer
Divisibility In this note we introduce the notion of divisibility for two integers nd b then we discuss the division lgorithm. First we give forml definition nd note some properties of the division opertion.
More information12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016
CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple
More informationLecture Note 9: Orthogonal Reduction
MATH : Computtionl Methods of Liner Algebr 1 The Row Echelon Form Lecture Note 9: Orthogonl Reduction Our trget is to solve the norml eution: Xinyi Zeng Deprtment of Mthemticl Sciences, UTEP A t Ax = A
More informationChapter 2 Finite Automata
Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht
More informationTorsion in Groups of Integral Triangles
Advnces in Pure Mthemtics, 01,, 116-10 http://dxdoiorg/1046/pm011015 Pulished Online Jnury 01 (http://wwwscirporg/journl/pm) Torsion in Groups of Integrl Tringles Will Murry Deprtment of Mthemtics nd Sttistics,
More informationCS 275 Automata and Formal Language Theory
CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)
More informationA tutorial on sequential functions
A tutoril on sequentil functions Jen-Éric Pin LIAFA, CNRS nd University Pris 7 30 Jnury 2006, CWI, Amsterdm Outline (1) Sequentil functions (2) A chrcteriztion of sequentil trnsducers (3) Miniml sequentil
More informationW. We shall do so one by one, starting with I 1, and we shall do it greedily, trying
Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)
More informationIntegral points on the rational curve
Integrl points on the rtionl curve y x bx c x ;, b, c integers. Konstntine Zeltor Mthemtics University of Wisconsin - Mrinette 750 W. Byshore Street Mrinette, WI 5443-453 Also: Konstntine Zeltor P.O. Box
More informationFirst Midterm Examination
Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does
More informationCMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)
CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All
More informationMATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35
MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 9. Modules over PID This week we re proving the fundmentl theorem for finitely generted modules over PID, nmely tht they re ll direct sums of cyclic modules.
More information11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model?
CS125 Lecture 11 Fll 2016 11.1 Finite Automt Motivtion: TMs without tpe: mybe we cn t lest fully understnd such simple model? Algorithms (e.g. string mtching) Computing with very limited memory Forml verifiction
More informationTHE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.
THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem
More informationNFAs continued, Closure Properties of Regular Languages
Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,
More informationModel Reduction of Finite State Machines by Contraction
Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900
More informationCHAPTER 1 Regular Languages. Contents
Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr
More information1 Online Learning and Regret Minimization
2.997 Decision-Mking in Lrge-Scle Systems My 10 MIT, Spring 2004 Hndout #29 Lecture Note 24 1 Online Lerning nd Regret Minimiztion In this lecture, we consider the problem of sequentil decision mking in
More informationDeterministic Finite-State Automata
Deterministic Finite-Stte Automt Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 12 August 2013 Outline 1 Introduction 2 Exmple DFA 1 DFA for Odd number of
More informationIntermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4
Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one
More informationHomework 3 Solutions
CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.
More informationFinite Automata-cont d
Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww
More informationCS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)
CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if
More informationFrobenius numbers of generalized Fibonacci semigroups
Frobenius numbers of generlized Fiboncci semigroups Gretchen L. Mtthews 1 Deprtment of Mthemticl Sciences, Clemson University, Clemson, SC 29634-0975, USA gmtthe@clemson.edu Received:, Accepted:, Published:
More informationUNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3
UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,
More informationNew data structures to reduce data size and search time
New dt structures to reduce dt size nd serch time Tsuneo Kuwbr Deprtment of Informtion Sciences, Fculty of Science, Kngw University, Hirtsuk-shi, Jpn FIT2018 1D-1, No2, pp1-4 Copyright (c)2018 by The Institute
More informationCS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018
CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA
More informationFarey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University
U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions
More informationState Minimization for DFAs
Stte Minimiztion for DFAs Red K & S 2.7 Do Homework 10. Consider: Stte Minimiztion 4 5 Is this miniml mchine? Step (1): Get rid of unrechle sttes. Stte Minimiztion 6, Stte is unrechle. Step (2): Get rid
More informationMore on automata. Michael George. March 24 April 7, 2014
More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose
More informationSelf-similarity and symmetries of Pascal s triangles and simplices mod p
Sn Jose Stte University SJSU ScholrWorks Fculty Publictions Mthemtics nd Sttistics Februry 2004 Self-similrity nd symmetries of Pscl s tringles nd simplices mod p Richrd P. Kubelk Sn Jose Stte University,
More informationLet's start with an example:
Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte
More informationNFAs continued, Closure Properties of Regular Languages
lgorithms & Models of omputtion S/EE 374, Spring 209 NFs continued, losure Properties of Regulr Lnguges Lecture 5 Tuesdy, Jnury 29, 209 Regulr Lnguges, DFs, NFs Lnguges ccepted y DFs, NFs, nd regulr expressions
More informationJava II Finite Automata I
Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression
More informationProbabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford
Probbilistic Model Checking Michelms Term 2011 Dr. Dve Prker Deprtment of Computer Science University of Oxford Long-run properties Lst lecture: regulr sfety properties e.g. messge filure never occurs
More informationNon-deterministic Finite Automata
Non-deterministic Finite Automt From Regulr Expressions to NFA- Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion
More informationClosure Properties of Regular Languages
Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L
More informationLecture 08: Feb. 08, 2019
4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny
More informationAutomata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.
Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent
More informationMyhill-Nerode Theorem
Overview Myhill-Nerode Theorem Correspondence etween DA s nd MN reltions Cnonicl DA for L Computing cnonicl DFA Myhill-Nerode Theorem Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute
More informationReview of Calculus, cont d
Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some
More informationFor convenience, we rewrite m2 s m2 = m m m ; where m is repeted m times. Since xyz = m m m nd jxyj»m, we hve tht the string y is substring of the fir
CSCI 2400 Models of Computtion, Section 3 Solutions to Homework 4 Problem 1. ll the solutions below refer to the Pumping Lemm of Theorem 4.8, pge 119. () L = f n b l k : k n + lg Let's ssume for contrdiction
More informationLet S be a numerical semigroup generated by a generalized arithmetic sequence,
Abstrct We give closed form for the ctenry degree of ny element in numericl monoid generted by generlized rithmetic sequence in embedding dimension three. While it is known in generl tht the lrgest nd
More informationSection: Other Models of Turing Machines. Definition: Two automata are equivalent if they accept the same language.
Section: Other Models of Turing Mchines Definition: Two utomt re equivlent if they ccept the sme lnguge. Turing Mchines with Sty Option Modify δ, Theorem Clss of stndrd TM s is equivlent to clss of TM
More information7.2 The Definite Integral
7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where
More informationN 0 completions on partial matrices
N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver
More informationQuadratic Residues. Chapter Quadratic residues
Chter 8 Qudrtic Residues 8. Qudrtic residues Let n>be given ositive integer, nd gcd, n. We sy tht Z n is qudrtic residue mod n if the congruence x mod n is solvble. Otherwise, is clled qudrtic nonresidue
More informationRecursively Enumerable and Recursive. Languages
Recursively Enumerble nd Recursive nguges 1 Recll Definition (clss 19.pdf) Definition 10.4, inz, 6 th, pge 279 et S be set of strings. An enumertion procedure for Turing Mchine tht genertes ll strings
More informationDISCRETE MATHEMATICS HOMEWORK 3 SOLUTIONS
DISCRETE MATHEMATICS 21228 HOMEWORK 3 SOLUTIONS JC Due in clss Wednesdy September 17. You my collborte but must write up your solutions by yourself. Lte homework will not be ccepted. Homework must either
More informationNumerical Linear Algebra Assignment 008
Numericl Liner Algebr Assignment 008 Nguyen Qun B Hong Students t Fculty of Mth nd Computer Science, Ho Chi Minh University of Science, Vietnm emil. nguyenqunbhong@gmil.com blog. http://hongnguyenqunb.wordpress.com
More information