The Average Complexity of Moore s State Minimization Algorithm is O(n log log n)

Size: px
Start display at page:

Download "The Average Complexity of Moore s State Minimization Algorithm is O(n log log n)"

Transcription

1 The Averge Complexity of Moore s Stte Miimiztio Algorithm is O( log log ) Julie Dvid Istitut Gsprd Moge, Uiversité Pris Est Mre-l-Vllée Cedex 2, Frce. Astrct. We prove tht the verge complexity, for the uiform distriutio o complete determiistic utomt, of Moore s stte miimiztio lgorithm is O(log log ), where is the umer of sttes i the iput utomt. 1 Itroductio Due to their efficiecy to represet regulr lguges d perform most of usul computtios they ivolve, fiite stte utomt re used i vrious fields such s liguistics, ioiformtics, progrm verifictio d dt compressio. A miiml utomt is the smllest complete determiistic utomt tht c e ssocited to regulr lguge. Becuse this utomto is uique, up to isomorphism o the lels of the sttes, it is coicl represettio of regulr lguge d permits to test the equlity etwee regulr lguges d equivlece etwee utomt. Most stte miimiztio lgorithms compute the miiml utomto of regulr lguge tkig determiistic utomto s iput, y idetifyig the idistiguishle sttes. Moore proposed the first miimiztio lgorithm[8], which is sed o the clculus of the Myhill-Nerode equivlece, y refiemets of prtitios of the set of sttes. There re t most 2 such refiemets, ech of them requirig lier ruig time: i the worst cse, the complexity is qudrtic. Though, i [1], it is proved tht the verge complexity of the lgorithm is ouded y O( log ). Sice this result does ot rely o the uderlyig grph of the utomto, it holds for y proilistic distriutio o this grph. Also, the oud is tight for ury utomt. Hopcroft s stte miimiztio lgorithm [6] is the est kow lgorithm with O( log ) worst-cse complexity. It lso uses prtitio refiemets to compute the miiml utomto, ut its descriptio is ot determiistic, mkig its lysis complicted. Differet proofs of its correctess were give [5, 7] d severl uthors [3, 4] proved the tightess of the upper oud of the complexity for differet fmilies of utomt. I this pper, we prove tht for the uiform distriutio o complete determiistic utomt, the verge complexity of the lgorithm due to Moore is This work ws completed with the support of the ANR project GAMMA umer

2 O( log log ). The rticle is orgized s follows: fter recllig the sics of utomt miimiztio (Sectio 2), we itroduce the tools we use for the verge lysis (Susectios 2.3 to 2.5). Sectio 3 is dedicted to the verge time complexity lysis of Moore s lgorithm. Due to lck of spce, the proof of Lemm 6 is ot fully detiled, ut ide of the proof is give. The pper closes with discussio o Hopcroft s lgorithm executios, which re fster th Moore s lgorithm oes, for y iput utomto d cojecture o the verge complexity of oth lgorithms, for vrious distriutios o utomt. 2 Prelimiries 2.1 Defiitios d ottios A fiite determiistic utomto A = (A, Q,, q 0, F) is quituple where Q is fiite set of sttes, A is fiite set of letters clled lphet, the trsitio fuctio is mppig from Q A to Q, q 0 Q is the iitil stte d F Q is the set of fil sttes. A utomto is complete whe its trsitio fuctio is totl. The trsitio fuctio c e exteded y morphism to ll words of A : p ε = p for y p Q d for y u, v A, p (uv) = (p u) v. A word u A is recogized y utomto whe p u F. The set of ll words recogized y A is deoted y L(A). We ote A i the words of legth i d A i the word of legth less or equl to i. A utomto is ccessile whe for y stte p Q, there exists word u A such tht q 0 u = p. A trsitio structure is utomto where the set of fil sttes is ot specified. Give such trsitio structure T = (A, Q,, q 0 ) d suset F of Q, we deote y (T, F) the utomto (A, Q,, q 0, F). For give determiistic trsitio structure with sttes there re exctly 2 distict determiistic utomt tht c e uilt from this trsitio structure. Ech of them correspods to choice of set of fil sttes. I the followig we oly cosider complete determiistic utomt d complete determiistic trsitio structures, the ccessiility is ot gurteed. Cosequetly these ojects will most of the time just e clled respectively utomt or trsitio structures. The set Q of -stte trsitio structure will e deoted y {1,..., }. The set of utomt d the set of trsitio structures with sttes will respectively e deoted A d T. Also, sice there re k trsitios d sice for ech trsitio, there re possile rrivl sttes, we hve T = k d A = 2 k (whe E is the crdil of the set E). The term 2 comes from the choice of the set of fil sttes. The militry order o words, oted < mil, is defied s follows: u, v A, u < mil v if u < v or u = v d u is smller th v i the lexicogrphicl order. Let Cod e Boole coditio, the Iverso rcket [Cod] is equl to 1 if the coditio Cod is stisfied d 0 otherwise. For y o-egtive iteger i, two sttes p, q Q re i-equivlet, deoted y p i q, whe for ll words u A i, [p u F ] = [q u F ]. Two sttes p d q re equivlet (oted p q) whe for ll u A, [p u F ] = [q u F ]. This

3 equivlece reltio o Q is clled Myhill-Nerode equivlece [9]. This reltio is sid to e right ivrit, meig tht for ll u A d ll p, q Q, p q p u q u. Propositio 1. Let A = (A, Q,, q 0, F) e determiistic utomto with sttes. The followig properties hold: (1) For ll i N, i+1 is prtitio refiemet of i, tht is, for ll p, q Q, if p i+1 q the p i q. (2) For ll i N d for ll p, q Q, p i+1 q if d oly if p i q d for ll A, p i q. (3) If for some i N (i + 1)-equivlece is equl to i-equivlece the for every j i, j-equivlece is equl to Myhill-Nerode equivlece. For y iteger 1 d y m N, we deote y A m the set of utomt with sttes for which m is the smllest iteger such tht the m-equivlece m is equl to Myhill-Nerode equivlece. It is well kow tht m Moore s Stte Miimiztio Algorithm I this sectio we descrie Moore s lgorithm [8] to compute the miiml utomto of regulr lguge represeted y determiistic utomto. It uilds the prtitio of the set of sttes correspodig to Myhill-Nerode equivlece d mily relies o properties (2) d (3) of Propositio 1: The prtitio π is iitilized ccordig to the 0-equivlece 0, the t ech itertio the prtitio correspodig to the (i + 1)-equivlece i+1 is computed from the oe correspodig to the i-equivlece i usig property (2). The lgorithm hlts whe o ew prtitio refiemet is otied, d the result is Myhill- Nerode equivlece ccordig to property (3). The miiml utomto c the e computed from the resultig prtitio sice it is the quotiet utomto y Myhill-Nerode equivlece. Accordig to Propositio 1, if utomto is miimized i more th l prtitio refiemets, the there exists t lest pir of sttes p, q d word u of legth l + 1, such tht p l q d p u 0 q u, tht is to sy t lest two sttes re seprted durig the l + 1-th prtitio refiemet. I the remider of this sectio we itroduce the depedecy tree d modifictio of the depedecy grph itroduced i [1]. Those tools will llow us to give upper oud o the umer of utomt miimized i more th l prtitio refiemets, which is useful for the verge complexity lysis. 2.3 The Depedecy Tree I the followig, we itroduce the depedecy tree to model set of trsitio structures. To egi with, we expli how depedecy tree R(p) c e otied from fixed trsitio structure τ d fixed stte p d the how this oject will help to estimte the crdil of set of trsitio structures. For

4 Algorithm 1: Moore s lgorithm 1 if F = the 2 retur (A, {1},,1, ) 3 if F = {1,..., } the 4 retur (A, {1},,1, {1}) 5 forll p {1,..., } do 6 π [p] = [p F ] 7 π = udefied 8 while π π do 9 π = π 10 compute π from π 11 retur the quotiet of A y π The computtio of the ew prtitio is doe usig the followig property o ssocited equivlece reltios: ( p i q p i+1 q p i q A To ech stte p is ssocited sigture s[p] such tht p i+1 q if d oly if s[p] = s[q]. The sttes re the sorted ccordig to their sigture, i order to compute the ew prtitio. The use of lexicogrphic sort provides complexity of Θ(k) for this prt of the lgorithm. I this descriptio of Moore s lgorithm, deotes the fuctio such tht 1 = 1 for ll A. Lies 1-4 correspod to the specil cses where F = or F = Q. I the process, π is the ew prtitio d π the former oe. Lies 5-6 is the iitiliztio of π to the prtitio of 0, π is iitilly udefied. Lies 8-10 re the mi loop of the lgorithm where the ew prtitio is computed, usig the secod lgorithm elow. The umer of itertios of Moore s lgorithm is the umer of times those lies re executed. Algorithm 2: Computig π from π 1 forll p {1,..., } do 2 s[p] = (π[p], π[p 1],..., π[p k ]) 3 compute the permuttio σ tht sorts the sttes ccordig to s[] 4 i = 0 5 π [σ(1)] = i 6 forll p {2,..., } do 7 if s[p] s[p 1] the i = i π [σ(p)] = i 9 retur π Fig.1. Descriptio of Moore s lgorithm fixed trsitio structure with sttes over k-letter lphet d fixed stte p, we defie the fuctio isode mppig A to {0, 1} s follows: { 0 if v A such tht p w = p v d v < mil w, isode(w) = 1 otherwise. R(p) is tree i which odes d leves of depth h re lelled y words of legth h. It is uilt recursively, usig redth-first trversl of the odes of the tree strtig from the ode p. For ech ode of depth h lelled y w, d ech letter i the lphet, we dd ode lelled y w t depth h + 1 if isode(w) is equl to 1, d lef otherwise. Figure 2 gives exmple of depedecy tree. Note tht this costructio resemles the method used i [2] to rdomly geerte ccessile utomt, except the uthors use depth-first trversl. It is esy to see tht some depedecy trees c e otied from severl fixed trsitio structures d sttes. I the remider of the pper, we

5 ,, ε 2 4 6, 8 10,, , () () Fig.2. Let () e the fixed trsitio structure d 2 e the fixed stte, () is the ssocited depedecy tree R(2). We hve S 2(2) = {ε,,,,}, L 2(2) = {, } d s 2(2) = {2, 3, 4,5, 6}. chrcterize sets of trsitio structures correspodig to prticulr depedecy trees. We itroduce some ottios ssocited to depedecy tree R(p): S h (p) deotes the set of ll odes of depth less or equl to h, L h (p) deotes the set of ll the odes t give depth h. Sice every ode i the tree is lelled y word, we ote w S h (p) or w L h (p) if w is word lellig ode i those sets. We lso defie the set s h (p) of ll the sttes tht re reched from stte p y followig pth lelled y word of less or equl to h. For ll the trsitio structures ssocited to depedecy tree R(p), we hve s h (p) = S h (p). Lemm 1. For y fixed stte p, if depedecy tree R(p) cotis f leves t depth less or equl to h, the the umer of ssocited trsitio structures ) f. is ouded ove y T ( Sh (p) Proof. We recll tht T is equl to the product of the crdils of the sets of possile rrivl sttes, for ech trsitio. Let w e the lel of lef t depth less th h. For every trsitio structure ssocited to the tree R(p), the trsitio lelled y outgoig from the stte p w eds i stte p v, with v S h (p). Therefore, the umer of possile rrivl sttes for this trsitio is ouded ove y S h (p) isted of. This is rough upper oud ut sufficiet for the eeds of the proof. 2.4 The T -Depedecy grph We itroduce other model for sets of trsitio structures. For two fixed sttes p d q, two fixed x-tuples (x is fixed iteger) of o-empty words u = (u 1,..., u x ) d v = (v 1,..., v x ), two fixed sets ϕ p d ϕ q of pirs of words

6 (w,w ) such tht w < mil w, we defie the set T (p, q, ϕ p, ϕ q, u, v ) s follows: T (p, q, ϕ p, ϕ q, u, v ) = {τ T (w p, w p ) ϕ p, p w p = p w p, (w q, w q ) ϕ q, q w q = q w q, i x, p u i = q v i } We defie the x-tuples of words u = (u 1,..., u x) d v = (v 1,..., v x) d the x-tuples of letters α = (α 1,..., α x) d β = (β 1,..., β x), such tht for ll i x we hve u i = u i α i d v i = v i β i. From T (p, q, ϕ p, ϕ q, u, v ), oe c defie the udirected grph G (p, q, ϕ p, ϕ q, u, v ), clled the T -depedecy grph, s follows: its vertices re pirs (r, ), with r Q d A, tht model trsitios. There is edge ((r, ), (t, )) i G (p, q, ϕ p, ϕ q, u, v ) if d oly if for ll τ T (p, q, ϕ p, ϕ q, u, v ), r = t. The T -depedcy grph G (p, q, ϕ p, ϕ q, u, v ) stisfies the two followig properties: For ll i x, there exists edge ((p u i, α i), (q v i, β i)). For ll (w 1, w 2 ) ϕ p (resp. (w 3, w 4 ) ϕ q ), we hve w 1 = w 1 1 d w 2 = w 2 2 with 1, 2 A d such tht there exists edge ((p w 1, 1 ), (p w 2, 2)) (resp. ((q w 3, 3), (q w 3, 3))). Lemm 2. If G (p, q, ϕ p, ϕ q, u, v ) cotis cyclic sugrph iduced y suset of odes with j edges, the: T (p, q, ϕ p, ϕ q, u, v ) T j Proof. Two trsitios i the sme coected compoets of G (p, q, ϕ p, ϕ q,- u, v ) shre the sme rrivl stte. Hece if x is the umer of coected compoets i the grph, the T (p, q, ϕ p, ϕ q, u, v ) x. If G (p, q, ϕ p, ϕ q, u, v ) cotis cyclic sugrph with exctly j edges, the there is t most k j coected compoets. 2.5 The F-Depedecy Grph I this susectio, we slightly modify the otio of depedecy grph itroduced i [1]. Let τ e fixed trsitio structure with sttes d l e iteger such tht 1 l <. Let p, q e two sttes of τ such tht p q d u word of legth l. We defie F τ (p, q, u) s the set of sets of fil sttes F for which i the utomto (τ, F) the sttes p d q re seprted y the word u. Tht is to sy : F τ (p, q, u) = {F {1,..., } for ll (τ, F), p u 1 q, [p u F ] [q u F ]} From the set F τ (p, q, u) oe c defie the udirected grph G τ (p, q, u), clled the F-depedecy grph, s follows:

7 1 2 8, ε () () Fig.3. () is fixed trsitio structure d () the F-depedecy grph for p = 3, q = 9 d u =. Thks to (), we kow tht ll sttes i sme coected compoet will e either ll fil or ll o-fil. Hece, there re t most 2 4 possile sets of fil sttes, isted of 2 9. its set of vertices is {1,...,}, the set of sttes of τ; there is edge (s, t) etwee two vertices s d t if d oly if there exists word w of legth less th l such tht s = p w d t = q w d for ll F F τ (p, q, u), [s F ] = [t F ]. The F-depedecy grph cotis some iformtio tht is sic igrediet of the proof: it is coveiet represettio of ecessry coditios for set of fil sttes to e i F τ (p, q, u), tht is, for Moore s lgorithm to require more th u itertios ecuse of p, q d u. Figure 3 shows exmple of F- depedecy grph. Lemm 3. [1] If G τ (p, q, u) cotis cyclic sugrph with t lest i edges, the F τ (p, q, u) 2 i. The otios of depedecy grphs d depedecy tree will e used i susectios 3.2 d 3.3 to oti upper ouds o the crdil of sets of utomt with give properties d prove tht their cotriutio to the verge complexity is egligile. 3 Moore s Algorithm: verge cse lysis I [1], it is proved tht the verge complexity of Moore s stte miimiztio lgorithm is O( log ). Sice the result is otied y studyig oly properties o the sets of fil sttes of utomt miimized i give complexity, it holds for y distriutio o the set of trsitio structures. I this pper, i order to improve the upper oud o the verge complexity, we lso hve to study some properties of trsitio structures. Sice the eumertio of ccessile utomt with give properties is ope prolem, we focus our study o the uiform distriutio over the set of complete determiistic utomt.

8 3.1 Mi Result d Decompositio of the Proof The mi result of this pper is the followig. Theorem 1 For y fixed iteger k 2 d for the uiform distriutio over the determiistic d complete utomt with sttes over k-letter lphet, the verge complexity of Moore s stte miimiztio lgorithm is O( log log ). Recll tht the umer of prtitio refiemets mde y Moore s stte miimiztio lgorithm is smller or equl to 2 d tht A i is the set of utomt of A for which i is the smllest iteger such tht i is equl to Myhill-Nerode equivlece. The verge umer of prtitio refiemets is give y: ( N = 1 2 ) (i + 1) A i A i=0 We defie λ = log k log , which will e used i the sequel. We gther the sets A i, i order to oti the followig upper oud: 5log 2 N λ + 1 A i A + (5 log 2 + 1) A i A A i A i λ i=λ+1 i=5 log }{{}}{{} 2 +1 }{{} S1 S2 S3 S1 is less th λ d equl to O(log log ). I [1], it is proved tht 2 i=5 log 2 +1 Ai A. Therefore we kow tht S3 is equl to O(1). Hece, i the followig, we prove tht: S2 = (5 log 2 + 1) A 5log 2 i=λ+1 A i = O(log log ) (1) For y l > 0, we defie the set A (p, q, l) s the set of utomt with sttes, where the sttes p d q re seprted durig the l-th prtitio refiemet: A (p, q, l) = {(τ, F) A τ T, F {1,..., }, p l 1 q, p l q} Remrk 1. Note tht if i the utomto (τ, F), for ll letter A, p = q, the either p 0 q or p q. Therefore (τ, F) / A (p, q, l) with l > 0. Cosequetly, i the remider of the proof, i ll sets of trsitio structures where p d q re fixed, there exists letter such tht p q. The followig sttemet comes from the defiitio of the sets it ivolves: A i = A (p, q, λ + 1) i>λ p,q {1,...,} Let τ e trsitio structure, d p, q e two distict sttes. Recllig tht s h (p) is defied i Sectio 2.3, if A is k-letter lphet, d µ positive iteger, we defie two properties ssocited to trsitio structures:

9 (1) lrgetree(τ, p, µ) is true if d oly if s µ (p) k µ 1. Note tht this implies tht s µ 2 (p) k µ 2 1. (2) oitersectio(τ, p, q) is true if d oly if s λ 2 (p) s λ 2 (q) =. For fixed sttes p d q, utomto is i A (p, q, λ + 1) if its ssocited trsitio structure is i oe of the three distict sets we re out to defie: X is the set of ll trsitio structures τ such tht: there exists stte r Q such tht lrgetree(τ, r, λ) is flse. Note tht this set does ot rely o the vlues of p d q. Y (p, q) is the set of trsitio structures τ such tht: for ll stte r Q, the property lrgetree(τ, r, λ) is true, for ll words w A 2, the property oitersectio(τ, p w, q w) is flse. α (p, q) is the set of trsitio structures τ such tht: for ll stte r Q, the property lrgetree(τ, r, λ) is true, there exists w A 2 such tht oitersectio(τ, p w, q w) is true. 3.2 Trsitio Structures with Huge F-Depedecy Grph Lemm 4. For y fixed trsitio structures τ α (p, q), d fixed word u of legth λ+1, the followig property holds: every F-depedecy grph G τ (p, q, u) cotis cyclic sugrph with t lest k λ 2 1 edges. Proof. Let G e the sugrph G τ (p, q, u) defied s follows: there exists edge (p wv, q wv) i G, if d oly if v lels ode i S λ 2 (p w). G cotis exctly s λ 2 (p w) edges, sice for ll v S λ 2 (p w), the sttes p wv re ll pirwise distict. Sice lrgetree(τ, r, λ) is true for ll stte r Q, we hve s λ 2 (p w) k λ 2 1. G is cyclic: ideed, the property oitersectio(τ, p w, q w) idictes tht the set of odes coected to t lest oe edge forms iprtite grph (the odes of s λ 2 (p w) o oe side d the odes of s λ 2 (q w) o the other), where ll the odes of s λ 2 (p w) re oly coected to oe edge. Corollry 1. For λ = log k log , the umer ( of utomt i A (p, q, λ+ 1) whose trsitio structures re i α (p, q) is O T 2 log ). 3 Proof. This follows directly from Lemms 3 d 4 : for y distict sttes p d q, y word u of legth λ + 1, d y fixed trsitio structure τ α (p, q), we hve F τ (p, q, u) = O (2 log 3) 2 For fixed trsitio structure τ α (p, q), sice the umer of words i A λ+1 is O(log ), the umer of choices of sets of fil sttes such tht the utomt re i A (p, q, λ + 1) is ouded ove y: ( 2 ) log F τ (p, q, u) = O 3 u A λ+1

10 3.3 Negligile Sets of Trsitio Structures ( Lemm 5. The umer of trsitio structure i X is O T log5 Proof. For fixed stte r d fixed iteger µ {1,...,λ}, we defie the sets X (r, µ) of ll trsitio structures τ for which µ is the smllest iteger such tht the property lrgetree(τ, r, µ) is flse. We hve : X = X (r, µ) r {1,...,} µ {1,...,λ} For ll trsitio structures i X (r, µ), the depedecy tree R(r) cotis t lest two leves of depth less or equl to µ. Ideed, if R(r) cotis t most oe lef of depth less th µ, the there exist k 1 letters A such tht R(r ) does ot coti y lef of depth less th µ. Therefore we hve S µ (p) k µ 1. We decompose the possile depedecy trees R(r) ito two differet kids: 1. All leves re t level µ. Let k e the size of the lphet d f the umer of leves, the umer of trees of this kid is equl to k µ ( k µ ) f=2 f. 2. There exists exctly oe lef of depth h (with h < µ), d t lest oe of depth µ. The umer of trees of this kid is t most µ 1 h=1 (k h k ( µ k µ ) ) f=1. Usig the upper oud of Lemm 1 o the umer of trsitio structures couted y ech tree, we oti: [ k µ (k ) ( ) ] [ µ f µ 1 Sµ (r) k µ ( ) ( ) ] k X (r, µ) T + k h µ f+1 Sµ (r) T f f f=2 h=1 f=1 Sice µ λ, we hve S µ (r) < k λ+1 d: [ k λ (k ) ( ) λ X (r, µ) < T k λ+1 f ] + λk2λ+1 f f f=2 Sice we hve ( ) ( ) f ( ) k f: λ k λ+1 k 2λ+1 X (r, µ) < T k4λ+2 2 k λ f=1 ( ) k 2λ+1 f + λk4λ+2 f=0 2 ). [ (k ) ( ) λ k λ+1 f ] f ( ) k 2λ+1 f f=0 ) X (r, µ) = O ( T λk4λ = O ( T log4 3 log log 3 ) 2 Sice this upper oud holds for y µ {1,..., λ} d y r Q, we oti: X X (r, µ) = O ( T log4 3 log 2 log 3 ) r {1,...,} µ {1,...,λ} 2 f

11 Lemm 6. For ( y distict sttes p d q, the umer of trsitio structures i Y (p, q) is O T log6 ). 3 Proof. For y trsitio structure i Y (p, q), for ll words w A 2, there exist two words u, v A λ 2 such tht p wu = q wv. We prtitio the set Y (p, q) ccordig to the leves the depedecy trees coti. Both trees do ot coti lef of depth less or equl to λ : let E e the set of letters, such tht for ll E, p = q. We defie e = E. Accordig to Remrk 1, we hve e < k. For ll A \ E d ll c A, oitersectio(τ, p c, q c) is flse. For u d v of size x = e + k(k e), such tht for ll 1 j e, we hve u j = v j = j with j E d such tht for ll e < j x, w j is prefix of u j d v j, where w j is word of the form c. This suset is icluded i: T (p, q,,, u, v ) u, v E A E, p =q There re 2 k 1 possile susets E. There re less th k 2λ(x e) possile choices for u i, v i A λ, for e < i x. For ll j, l x, j l, sice u j d u l (resp. v j d v l ) lel odes i R(p) (resp. R(q)), settig u j = u j α j d u l = u l α l, we hve (p u j, α j) (p u l, α l) d there is o pth etwee (p u j, α j) d (p u l, α l) sice if would imply tht p u j = p u l d tht either u j or u l lels lef. Therefore, G (p, q,,, u, v ) cotis cyclic grph with x edges ((p u j, α j), (q v j, β j)). Sice x k + 1 (for e = k 1), usig Lemm 2, we oti the upper oud stted ove. At lest oe tree cotis lef of depth less or equl to λ : due to lck of spce, we will ot descrie this set. The ide is tht, just like i the previous cse, we re le to gurtee tht T -depedecy grph lwys cotis cyclic sugrph with k + 1 edges d tht there is O(log 2(k+1) ) possile grphs. 3.4 Cocludig the proof Recll tht we wt to prove Equtio 1. We defie X, α (p, q) d Ỹ(p, q) s the sets of utomt whose trsitio structure re respectively i X, α (p, q) d Y (p, q). We hve: A i = A (p, q, λ + 1) X α (p, q) Ỹ(p, q) i>λ p,q {1,...,} Usig Lemms 4,5 d 6 we oti: i>λ A i T 2 log 5 (5 log 2 + 1) A p,q {1,...,} ( + 2 T 2 log 3 + T 2 log 6 ) 3 5log 2 i=λ+1 ( log 7 ) A i = O = O (log log ) A log6 Hece N = O(log log ), this cocludes the proof of the mi theorem.

12 4 Coclusio I this pper, we otied ew upper oud o the verge complexity of Moore s stte miimiztio lgorithm, for the uiform distriutio o complete determiistic utomt. Also, it is possile to descrie set of Hopcroft s lgorithm executios which, for y determiistic utomt, compute the equivlece i less steps th Moore s lgorithm (due to lck of spce, we re ot givig the descriptio of those executios i this pper). Hece, for the uiform distriutio o complete determiistic utomt with sttes, there exists executio of Hopcroft s lgorithm whose verge complexity is O( log log ). This pper is first step to prove the cojecture mde i the coclusio of [1]: for the uiform distriutio o complete determiistic ccessile utomt, the verge complexity of Moore lgorithm is Θ( log log ). To prove this cojecture is ot esy tsk, sice it requires etter kowledge of the verge size of the ccessile prt i complete determiistic utomto, ut lso the verge umer of miiml utomt mogst the complete determiistic d ccessile. I would like to thk Phillipe Ducho for the fruitful discussio o upper oud of the crdil of the set X, ut lso Cyril Nicud d Frederique Bssio for their dvices d commets. Refereces 1. Frederique Bssio, Julie Dvid, d Cyril Nicud. O the verge complexity of Moore s stte miimiztio lgorithm. I Suse Alers d Je-Yves Mrio, editors, 26th Itertiol Symposium o Theoreticl Aspects of Computer Sciece (STACS 2009), Freiurg, Germy., volume 3 of LIPIcs, pge Schloss Dgstuhl - Leiiz-Zetrum fuer Iformtik, Germy, Frederique Bssio d Cyril Nicud. Eumertio d rdom geertio of ccessile utomt. Theor. Comput. Sci., 381:86 104, Je Berstel d Olivier Crto. O the complexity of Hopcroft s stte miimiztio lgorithm. I M. Domrtzki, A. Okhoti, K. Slom, d S. Yu, editors, CIAA O4, volume 3317 of Lecture Notes i Computer Sciece, pges Spriger, Giusi Cstiglioe, Atoio Restivo, d Mriell Sciortio. O extreml cses of Hopcroft s lgorithm. I S. Meth, editor, CIAA 09, volume 5642 of Lecture Notes i Computer Sciece, pges Spriger, Dvid Gries. Descriig lgorithm y Hopcroft. Act If., 2:97 109, Joh E. Hopcroft. A log lgorithm for miimizig sttes i fiite utomto. Techicl report, Stford Uiversity, Stford, CA, USA, Timo Kuutil. Re-descriig lgorithm y Hopcroft. Theor. Comput. Sci., 250(1-2): , Edwrd F. Moore. Gedke experimets o sequetil mchies. I Automt Studies, pges Priceto U., Ail Nerode. Lier utomto trsformtio. I Proc. Americ Mthemticl Society, pges , 1958.

Content. Languages, Alphabets and Strings. Operations on Strings. a ab abba baba. aaabbbaaba b 5. Languages. A language is a set of strings

Content. Languages, Alphabets and Strings. Operations on Strings. a ab abba baba. aaabbbaaba b 5. Languages. A language is a set of strings CD5560 FABER Forml guges, Automt d Models of Computtio ecture Mälrdle Uiversity 006 Cotet guges, Alphets d Strigs Strigs & Strig Opertios guges & guge Opertios Regulr Expressios Fiite Automt, FA Determiistic

More information

Convergence rates of approximate sums of Riemann integrals

Convergence rates of approximate sums of Riemann integrals Covergece rtes of pproximte sums of Riem itegrls Hiroyuki Tski Grdute School of Pure d Applied Sciece, Uiversity of Tsuku Tsuku Irki 5-857 Jp tski@mth.tsuku.c.jp Keywords : covergece rte; Riem sum; Riem

More information

General properties of definite integrals

General properties of definite integrals Roerto s Notes o Itegrl Clculus Chpter 4: Defiite itegrls d the FTC Sectio Geerl properties of defiite itegrls Wht you eed to kow lredy: Wht defiite Riem itegrl is. Wht you c ler here: Some key properties

More information

Section IV.6: The Master Method and Applications

Section IV.6: The Master Method and Applications Sectio IV.6: The Mster Method d Applictios Defiitio IV.6.1: A fuctio f is symptoticlly positive if d oly if there exists rel umer such tht f(x) > for ll x >. A cosequece of this defiitio is tht fuctio

More information

Week 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right:

Week 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right: Week 1 Notes: 1) Riem Sum Aim: Compute Are Uder Grph Suppose we wt to fid out the re of grph, like the oe o the right: We wt to kow the re of the red re. Here re some wys to pproximte the re: We cut the

More information

Review of the Riemann Integral

Review of the Riemann Integral Chpter 1 Review of the Riem Itegrl This chpter provides quick review of the bsic properties of the Riem itegrl. 1.0 Itegrls d Riem Sums Defiitio 1.0.1. Let [, b] be fiite, closed itervl. A prtitio P of

More information

0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k.

0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k. . Computtio of Fourier Series I this sectio, we compute the Fourier coefficiets, f ( x) cos( x) b si( x) d b, i the Fourier series To do this, we eed the followig result o the orthogolity of the trigoometric

More information

Chapter 5. The Riemann Integral. 5.1 The Riemann integral Partitions and lower and upper integrals. Note: 1.5 lectures

Chapter 5. The Riemann Integral. 5.1 The Riemann integral Partitions and lower and upper integrals. Note: 1.5 lectures Chpter 5 The Riem Itegrl 5.1 The Riem itegrl Note: 1.5 lectures We ow get to the fudmetl cocept of itegrtio. There is ofte cofusio mog studets of clculus betwee itegrl d tiderivtive. The itegrl is (iformlly)

More information

Fig. 1. I a. V ag I c. I n. V cg. Z n Z Y. I b. V bg

Fig. 1. I a. V ag I c. I n. V cg. Z n Z Y. I b. V bg ymmetricl Compoets equece impedces Although the followig focuses o lods, the results pply eqully well to lies, or lies d lods. Red these otes together with sectios.6 d.9 of text. Cosider the -coected lced

More information

lecture 16: Introduction to Least Squares Approximation

lecture 16: Introduction to Least Squares Approximation 97 lecture 16: Itroductio to Lest Squres Approximtio.4 Lest squres pproximtio The miimx criterio is ituitive objective for pproximtig fuctio. However, i my cses it is more ppelig (for both computtio d

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Lecture 17

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Lecture 17 CS 70 Discrete Mthemtics d Proility Theory Sprig 206 Ro d Wlrd Lecture 7 Vrice We hve see i the previous ote tht if we toss coi times with is p, the the expected umer of heds is p. Wht this mes is tht

More information

is infinite. The converse is proved similarly, and the last statement of the theorem is clear too.

is infinite. The converse is proved similarly, and the last statement of the theorem is clear too. 12. No-stdrd lysis October 2, 2011 I this sectio we give brief itroductio to o-stdrd lysis. This is firly well-developed field of mthemtics bsed o model theory. It dels ot just with the rels, fuctios o

More information

Convergence rates of approximate sums of Riemann integrals

Convergence rates of approximate sums of Riemann integrals Jourl of Approximtio Theory 6 (9 477 49 www.elsevier.com/locte/jt Covergece rtes of pproximte sums of Riem itegrls Hiroyuki Tski Grdute School of Pure d Applied Sciece, Uiversity of Tsukub, Tsukub Ibrki

More information

Reversing the Arithmetic mean Geometric mean inequality

Reversing the Arithmetic mean Geometric mean inequality Reversig the Arithmetic me Geometric me iequlity Tie Lm Nguye Abstrct I this pper we discuss some iequlities which re obtied by ddig o-egtive expressio to oe of the sides of the AM-GM iequlity I this wy

More information

Mathacle. PSet Stats, Concepts In Statistics Level Number Name: Date:

Mathacle. PSet Stats, Concepts In Statistics Level Number Name: Date: APPENDEX I. THE RAW ALGEBRA IN STATISTICS A I-1. THE INEQUALITY Exmple A I-1.1. Solve ech iequlity. Write the solutio i the itervl ottio..) 2 p - 6 p -8.) 2x- 3 < 5 Solutio:.). - 4 p -8 p³ 2 or pî[2, +

More information

Riemann Integral and Bounded function. Ng Tze Beng

Riemann Integral and Bounded function. Ng Tze Beng Riem Itegrl d Bouded fuctio. Ng Tze Beg I geerlistio of re uder grph of fuctio, it is ormlly ssumed tht the fuctio uder cosidertio e ouded. For ouded fuctio, the rge of the fuctio is ouded d hece y suset

More information

INFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1

INFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1 Appedix A.. Itroductio As discussed i the Chpter 9 o Sequeces d Series, sequece,,...,,... hvig ifiite umber of terms is clled ifiite sequece d its idicted sum, i.e., + + +... + +... is clled ifite series

More information

{ } { S n } is monotonically decreasing if Sn

{ } { S n } is monotonically decreasing if Sn Sequece A sequece is fuctio whose domi of defiitio is the set of turl umers. Or it c lso e defied s ordered set. Nottio: A ifiite sequece is deoted s { } S or { S : N } or { S, S, S,...} or simply s {

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS4: Discrete Mthemtics for Computer Sciece I Dept. Iformtio & Computer Sci., J Stelovsky sed o slides y Dr. Bek d Dr. Still Origils y Dr. M. P. Frk d Dr. J.L. Gross Provided y McGrw-Hill 3- Quiz. gcd(84,96).

More information

FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES. To a 2π-periodic function f(x) we will associate a trigonometric series. a n cos(nx) + b n sin(nx),

FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES. To a 2π-periodic function f(x) we will associate a trigonometric series. a n cos(nx) + b n sin(nx), FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES To -periodic fuctio f() we will ssocite trigoometric series + cos() + b si(), or i terms of the epoetil e i, series of the form c e i. Z For most of the

More information

GRAPHING LINEAR EQUATIONS. Linear Equations. x l ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1.

GRAPHING LINEAR EQUATIONS. Linear Equations. x l ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1. GRAPHING LINEAR EQUATIONS Qudrt II Qudrt I ORDERED PAIR: The first umer i the ordered pir is the -coordite d the secod umer i the ordered pir is the y-coordite. (, ) Origi ( 0, 0 ) _-is Lier Equtios Qudrt

More information

Approximate Integration

Approximate Integration Study Sheet (7.7) Approimte Itegrtio I this sectio, we will ler: How to fid pproimte vlues of defiite itegrls. There re two situtios i which it is impossile to fid the ect vlue of defiite itegrl. Situtio:

More information

Handout #2. Introduction to Matrix: Matrix operations & Geometric meaning

Handout #2. Introduction to Matrix: Matrix operations & Geometric meaning Hdout # Title: FAE Course: Eco 8/ Sprig/5 Istructor: Dr I-Mig Chiu Itroductio to Mtrix: Mtrix opertios & Geometric meig Mtrix: rectgulr rry of umers eclosed i pretheses or squre rckets It is covetiolly

More information

Some Properties of Brzozowski Derivatives of Regular Expressions

Some Properties of Brzozowski Derivatives of Regular Expressions Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014 Some Properties of Brzozoski erivtives of Regulr Expressios NMuruges #1, OVShmug Sudrm * #1 Assistt Professor, ept of Mthemtics,

More information

Similar idea to multiplication in N, C. Divide and conquer approach provides unexpected improvements. Naïve matrix multiplication

Similar idea to multiplication in N, C. Divide and conquer approach provides unexpected improvements. Naïve matrix multiplication Next. Covered bsics of simple desig techique (Divided-coquer) Ch. of the text.. Next, Strsse s lgorithm. Lter: more desig d coquer lgorithms: MergeSort. Solvig recurreces d the Mster Theorem. Similr ide

More information

Course Material. CS Lecture 1 Deterministic Finite Automata. Grading and Policies. Workload. Website:http://www.cs.colostate.

Course Material. CS Lecture 1 Deterministic Finite Automata. Grading and Policies. Workload. Website:http://www.cs.colostate. Course Mteril CS 301 - Lecture 1 Determiistic Fiite Automt Fll 2008 Wesite:http://www.cs.colostte.edu/~cs301 Syllus, Outlie, Grdig Policies Homework d Slides Istructor: D Mssey Office hours: 2-3pm Tues

More information

Chapter 7 Infinite Series

Chapter 7 Infinite Series MA Ifiite Series Asst.Prof.Dr.Supree Liswdi Chpter 7 Ifiite Series Sectio 7. Sequece A sequece c be thought of s list of umbers writte i defiite order:,,...,,... 2 The umber is clled the first term, 2

More information

Regular expressions, Finite Automata, transition graphs are all the same!!

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Section 6.3: Geometric Sequences

Section 6.3: Geometric Sequences 40 Chpter 6 Sectio 6.: Geometric Sequeces My jobs offer ul cost-of-livig icrese to keep slries cosistet with ifltio. Suppose, for exmple, recet college grdute fids positio s sles mger erig ul slry of $6,000.

More information

RULES FOR MANIPULATING SURDS b. This is the addition law of surds with the same radicals. (ii)

RULES FOR MANIPULATING SURDS b. This is the addition law of surds with the same radicals. (ii) SURDS Defiitio : Ay umer which c e expressed s quotiet m of two itegers ( 0 ), is clled rtiol umer. Ay rel umer which is ot rtiol is clled irrtiol. Irrtiol umers which re i the form of roots re clled surds.

More information

A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD

A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD Diol Bgoo () A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD I. Itroductio The first seprtio of vribles (see pplictios to Newto s equtios) is ver useful method

More information

( ) dx ; f ( x ) is height and Δx is

( ) dx ; f ( x ) is height and Δx is Mth : 6.3 Defiite Itegrls from Riem Sums We just sw tht the exct re ouded y cotiuous fuctio f d the x xis o the itervl x, ws give s A = lim A exct RAM, where is the umer of rectgles i the Rectgulr Approximtio

More information

n 2 + 3n + 1 4n = n2 + 3n + 1 n n 2 = n + 1

n 2 + 3n + 1 4n = n2 + 3n + 1 n n 2 = n + 1 Ifiite Series Some Tests for Divergece d Covergece Divergece Test: If lim u or if the limit does ot exist, the series diverget. + 3 + 4 + 3 EXAMPLE: Show tht the series diverges. = u = + 3 + 4 + 3 + 3

More information

PROGRESSIONS AND SERIES

PROGRESSIONS AND SERIES PROGRESSIONS AND SERIES A sequece is lso clled progressio. We ow study three importt types of sequeces: () The Arithmetic Progressio, () The Geometric Progressio, () The Hrmoic Progressio. Arithmetic Progressio.

More information

The Basic Properties of the Integral

The Basic Properties of the Integral The Bsic Properties of the Itegrl Whe we compute the derivtive of complicted fuctio, like x + six, we usully use differetitio rules, like d [f(x)+g(x)] d f(x)+ d g(x), to reduce the computtio dx dx dx

More information

Canonical Form and Separability of PPT States on Multiple Quantum Spaces

Canonical Form and Separability of PPT States on Multiple Quantum Spaces Coicl Form d Seprbility of PPT Sttes o Multiple Qutum Spces Xio-Hog Wg d Sho-Mig Fei, 2 rxiv:qut-ph/050445v 20 Apr 2005 Deprtmet of Mthemtics, Cpitl Norml Uiversity, Beijig, Chi 2 Istitute of Applied Mthemtics,

More information

Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Divide-and-Conquer

Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, Divide-and-Conquer Presettio for use with the textook, Algorithm Desig d Applictios, y M. T. Goodrich d R. Tmssi, Wiley, 25 Divide-d-Coquer Divide-d-Coquer Divide-d coquer is geerl lgorithm desig prdigm: Divide: divide the

More information

Linford 1. Kyle Linford. Math 211. Honors Project. Theorems to Analyze: Theorem 2.4 The Limit of a Function Involving a Radical (A4)

Linford 1. Kyle Linford. Math 211. Honors Project. Theorems to Analyze: Theorem 2.4 The Limit of a Function Involving a Radical (A4) Liford 1 Kyle Liford Mth 211 Hoors Project Theorems to Alyze: Theorem 2.4 The Limit of Fuctio Ivolvig Rdicl (A4) Theorem 2.8 The Squeeze Theorem (A5) Theorem 2.9 The Limit of Si(x)/x = 1 (p. 85) Theorem

More information

5. Solving recurrences

5. Solving recurrences 5. Solvig recurreces Time Complexity Alysis of Merge Sort T( ) 0 if 1 2T ( / 2) otherwise sortig oth hlves mergig Q. How to prove tht the ru-time of merge sort is O( )? A. 2 Time Complexity Alysis of Merge

More information

Infinite Series Sequences: terms nth term Listing Terms of a Sequence 2 n recursively defined n+1 Pattern Recognition for Sequences Ex:

Infinite Series Sequences: terms nth term Listing Terms of a Sequence 2 n recursively defined n+1 Pattern Recognition for Sequences Ex: Ifiite Series Sequeces: A sequece i defied s fuctio whose domi is the set of positive itegers. Usully it s esier to deote sequece i subscript form rther th fuctio ottio.,, 3, re the terms of the sequece

More information

Discrete Mathematics I Tutorial 12

Discrete Mathematics I Tutorial 12 Discrete Mthemtics I Tutoril Refer to Chpter 4., 4., 4.4. For ech of these sequeces fid recurrece reltio stisfied by this sequece. (The swers re ot uique becuse there re ifiitely my differet recurrece

More information

Second Mean Value Theorem for Integrals By Ng Tze Beng. The Second Mean Value Theorem for Integrals (SMVT) Statement of the Theorem

Second Mean Value Theorem for Integrals By Ng Tze Beng. The Second Mean Value Theorem for Integrals (SMVT) Statement of the Theorem Secod Me Vlue Theorem for Itegrls By Ng Tze Beg This rticle is out the Secod Me Vlue Theorem for Itegrls. This theorem, first proved y Hoso i its most geerlity d with extesio y ixo, is very useful d lmost

More information

A general theory of minimal increments for Hirsch-type indices and applications to the mathematical characterization of Kosmulski-indices

A general theory of minimal increments for Hirsch-type indices and applications to the mathematical characterization of Kosmulski-indices Mlysi Jourl of Librry & Iformtio Sciece, Vol. 9, o. 3, 04: 4-49 A geerl theory of miiml icremets for Hirsch-type idices d pplictios to the mthemticl chrcteriztio of Kosmulski-idices L. Egghe Uiversiteit

More information

Riemann Integral Oct 31, such that

Riemann Integral Oct 31, such that Riem Itegrl Ot 31, 2007 Itegrtio of Step Futios A prtitio P of [, ] is olletio {x k } k=0 suh tht = x 0 < x 1 < < x 1 < x =. More suitly, prtitio is fiite suset of [, ] otiig d. It is helpful to thik of

More information

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J. Probbility d Stochstic Processes: A Friedly Itroductio for Electricl d Computer Egieers Roy D. Ytes d Dvid J. Goodm Problem Solutios : Ytes d Goodm,4..4 4..4 4..7 4.4. 4.4. 4..6 4.6.8 4.6.9 4.7.4 4.7.

More information

Module 9: String Matching

Module 9: String Matching Module 9: Strig Mtchig CS 240 Dt Structures d Dt Mgemet T. Biedl K. Lctot M. Sepehri S. Wild Bsed o lecture otes y my previous cs240 istructors Dvid R. Cherito School of Computer Sciece, Uiversity of Wterloo

More information

Recurrece reltio & Recursio 9 Chpter 3 Recurrece reltio & Recursio Recurrece reltio : A recurrece is equtio or iequlity tht describes fuctio i term of itself with its smller iputs. T T The problem of size

More information

The Definite Riemann Integral

The Definite Riemann Integral These otes closely follow the presettio of the mteril give i Jmes Stewrt s textook Clculus, Cocepts d Cotexts (d editio). These otes re iteded primrily for i-clss presettio d should ot e regrded s sustitute

More information

The total number of permutations of S is n!. We denote the set of all permutations of S by

The total number of permutations of S is n!. We denote the set of all permutations of S by DETERMINNTS. DEFINITIONS Def: Let S {,,, } e the set of itegers from to, rrged i scedig order. rerrgemet jjj j of the elemets of S is clled permuttio of S. S. The totl umer of permuttios of S is!. We deote

More information

The Weierstrass Approximation Theorem

The Weierstrass Approximation Theorem The Weierstrss Approximtio Theorem Jmes K. Peterso Deprtmet of Biologicl Scieces d Deprtmet of Mthemticl Scieces Clemso Uiversity Februry 26, 2018 Outlie The Wierstrss Approximtio Theorem MtLb Implemettio

More information

4. When is the particle speeding up? Why? 5. When is the particle slowing down? Why?

4. When is the particle speeding up? Why? 5. When is the particle slowing down? Why? AB CALCULUS: 5.3 Positio vs Distce Velocity vs. Speed Accelertio All the questios which follow refer to the grph t the right.. Whe is the prticle movig t costt speed?. Whe is the prticle movig to the right?

More information

The Elementary Arithmetic Operators of Continued Fraction

The Elementary Arithmetic Operators of Continued Fraction Americ-Eursi Jourl of Scietific Reserch 0 (5: 5-63, 05 ISSN 88-6785 IDOSI Pulictios, 05 DOI: 0.589/idosi.ejsr.05.0.5.697 The Elemetry Arithmetic Opertors of Cotiued Frctio S. Mugssi d F. Mistiri Deprtmet

More information

Lecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem

Lecture 4 Recursive Algorithm Analysis. Merge Sort Solving Recurrences The Master Theorem Lecture 4 Recursive Algorithm Alysis Merge Sort Solvig Recurreces The Mster Theorem Merge Sort MergeSortA, left, right) { if left < right) { mid = floorleft + right) / 2); MergeSortA, left, mid); MergeSortA,

More information

Numbers (Part I) -- Solutions

Numbers (Part I) -- Solutions Ley College -- For AMATYC SML Mth Competitio Cochig Sessios v.., [/7/00] sme s /6/009 versio, with presettio improvemets Numbers Prt I) -- Solutios. The equtio b c 008 hs solutio i which, b, c re distict

More information

We will begin by supplying the proof to (a).

We will begin by supplying the proof to (a). (The solutios of problem re mostly from Jeffrey Mudrock s HWs) Problem 1. There re three sttemet from Exmple 5.4 i the textbook for which we will supply proofs. The sttemets re the followig: () The spce

More information

Minimal DFA. minimal DFA for L starting from any other

Minimal 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 information

1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2

1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2 Mth 3, Clculus II Fil Exm Solutios. (5 poits) Use the limit defiitio of the defiite itegrl d the sum formuls to compute 3 x + x. Check your swer by usig the Fudmetl Theorem of Clculus. Solutio: The limit

More information

Data Compression Techniques (Spring 2012) Model Solutions for Exercise 4

Data Compression Techniques (Spring 2012) Model Solutions for Exercise 4 58487 Dt Compressio Tehiques (Sprig 0) Moel Solutios for Exerise 4 If you hve y fee or orretios, plese ott jro.lo t s.helsii.fi.. Prolem: Let T = Σ = {,,, }. Eoe T usig ptive Huffm oig. Solutio: R 4 U

More information

Riemann Integration. Chapter 1

Riemann Integration. Chapter 1 Mesure, Itegrtio & Rel Alysis. Prelimiry editio. 8 July 2018. 2018 Sheldo Axler 1 Chpter 1 Riem Itegrtio This chpter reviews Riem itegrtio. Riem itegrtio uses rectgles to pproximte res uder grphs. This

More information

Designing finite automata II

Designing 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 information

Notes 17 Sturm-Liouville Theory

Notes 17 Sturm-Liouville Theory ECE 638 Fll 017 Dvid R. Jckso Notes 17 Sturm-Liouville Theory Notes re from D. R. Wilto, Dept. of ECE 1 Secod-Order Lier Differetil Equtios (SOLDE) A SOLDE hs the form d y dy 0 1 p ( x) + p ( x) + p (

More information

B. Examples 1. Finite Sums finite sums are an example of Riemann Sums in which each subinterval has the same length and the same x i

B. Examples 1. Finite Sums finite sums are an example of Riemann Sums in which each subinterval has the same length and the same x i Mth 06 Clculus Sec. 5.: The Defiite Itegrl I. Riem Sums A. Def : Give y=f(x):. Let f e defied o closed itervl[,].. Prtitio [,] ito suitervls[x (i-),x i ] of legth Δx i = x i -x (i-). Let P deote the prtitio

More information

The Reimann Integral is a formal limit definition of a definite integral

The Reimann Integral is a formal limit definition of a definite integral MATH 136 The Reim Itegrl The Reim Itegrl is forml limit defiitio of defiite itegrl cotiuous fuctio f. The costructio is s follows: f ( x) dx for Reim Itegrl: Prtitio [, ] ito suitervls ech hvig the equl

More information

Limit of a function:

Limit of a function: - Limit of fuctio: We sy tht f ( ) eists d is equl with (rel) umer L if f( ) gets s close s we wt to L if is close eough to (This defiitio c e geerlized for L y syig tht f( ) ecomes s lrge (or s lrge egtive

More information

A GENERALIZATION OF GAUSS THEOREM ON QUADRATIC FORMS

A GENERALIZATION OF GAUSS THEOREM ON QUADRATIC FORMS A GENERALIZATION OF GAU THEOREM ON QUADRATIC FORM Nicole I Brtu d Adi N Cret Deprtmet of Mth - Criov Uiversity, Romi ABTRACT A origil result cocerig the extesio of Guss s theorem from the theory of biry

More information

Certain sufficient conditions on N, p n, q n k summability of orthogonal series

Certain sufficient conditions on N, p n, q n k summability of orthogonal series Avilble olie t www.tjs.com J. Nolier Sci. Appl. 7 014, 7 77 Reserch Article Certi sufficiet coditios o N, p, k summbility of orthogol series Xhevt Z. Krsiqi Deprtmet of Mthemtics d Iformtics, Fculty of

More information

#A7 INTEGERS 12A (2012): John Selfridge Memorial Issue EULER PSEUDOPRIMES FOR HALF OF THE BASES

#A7 INTEGERS 12A (2012): John Selfridge Memorial Issue EULER PSEUDOPRIMES FOR HALF OF THE BASES #A7 INTEGERS 1A (01): Joh Selfridge Memoril Issue EULER PSEUDOPRIMES FOR HALF OF THE BASES Lorezo Di Bigio Diprtimeto di Mtemtic, Uiversità degli Studi Rom Tre, Rom, Itly. dibigio@mt.uirom3.it lorezo.dibigio@gmil.com

More information

Taylor Polynomials. The Tangent Line. (a, f (a)) and has the same slope as the curve y = f (x) at that point. It is the best

Taylor Polynomials. The Tangent Line. (a, f (a)) and has the same slope as the curve y = f (x) at that point. It is the best Tylor Polyomils Let f () = e d let p() = 1 + + 1 + 1 6 3 Without usig clcultor, evlute f (1) d p(1) Ok, I m still witig With little effort it is possible to evlute p(1) = 1 + 1 + 1 (144) + 6 1 (178) =

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

MA123, Chapter 9: Computing some integrals (pp )

MA123, Chapter 9: Computing some integrals (pp ) MA13, Chpter 9: Computig some itegrls (pp. 189-05) Dte: Chpter Gols: Uderstd how to use bsic summtio formuls to evlute more complex sums. Uderstd how to compute its of rtiol fuctios t ifiity. Uderstd how

More information

Numerical Solution of Fuzzy Fredholm Integral Equations of the Second Kind using Bernstein Polynomials

Numerical Solution of Fuzzy Fredholm Integral Equations of the Second Kind using Bernstein Polynomials Jourl of Al-Nhri Uiversity Vol.5 (), Mrch,, pp.-9 Sciece Numericl Solutio of Fuzzy Fredholm Itegrl Equtios of the Secod Kid usig Berstei Polyomils Srmd A. Altie Deprtmet of Computer Egieerig d Iformtio

More information

Linear Programming. Preliminaries

Linear Programming. Preliminaries Lier Progrmmig Prelimiries Optimiztio ethods: 3L Objectives To itroduce lier progrmmig problems (LPP To discuss the stdrd d coicl form of LPP To discuss elemetry opertio for lier set of equtios Optimiztio

More information

Approximations of Definite Integrals

Approximations of Definite Integrals Approximtios of Defiite Itegrls So fr we hve relied o tiderivtives to evlute res uder curves, work doe by vrible force, volumes of revolutio, etc. More precisely, wheever we hve hd to evlute defiite itegrl

More information

( a n ) converges or diverges.

( a n ) converges or diverges. Chpter Ifiite Series Pge of Sectio E Rtio Test Chpter : Ifiite Series By the ed of this sectio you will be ble to uderstd the proof of the rtio test test series for covergece by pplyig the rtio test pprecite

More information

Sequence and Series of Functions

Sequence and Series of Functions 6 Sequece d Series of Fuctios 6. Sequece of Fuctios 6.. Poitwise Covergece d Uiform Covergece Let J be itervl i R. Defiitio 6. For ech N, suppose fuctio f : J R is give. The we sy tht sequece (f ) of fuctios

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism 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 information

Numerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials

Numerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials Numericl Solutios of Fredholm Itegrl Equtios Usig erstei Polyomils A. Shiri, M. S. Islm Istitute of Nturl Scieces, Uited Itertiol Uiversity, Dhk-, gldesh Deprtmet of Mthemtics, Uiversity of Dhk, Dhk-,

More information

,... are the terms of the sequence. If the domain consists of the first n positive integers only, the sequence is a finite sequence.

,... are the terms of the sequence. If the domain consists of the first n positive integers only, the sequence is a finite sequence. Chpter 9 & 0 FITZGERALD MAT 50/5 SECTION 9. Sequece Defiitio A ifiite sequece is fuctio whose domi is the set of positive itegers. The fuctio vlues,,, 4,...,,... re the terms of the sequece. If the domi

More information

MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE

MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE Prt 1. Let be odd rime d let Z such tht gcd(, 1. Show tht if is qudrtic residue mod, the is qudrtic residue mod for y ositive iteger.

More information

Definite Integral. The Left and Right Sums

Definite Integral. The Left and Right Sums Clculus Li Vs Defiite Itegrl. The Left d Right Sums The defiite itegrl rises from the questio of fidig the re betwee give curve d x-xis o itervl. The re uder curve c be esily clculted if the curve is give

More information

Elementary Linear Algebra

Elementary Linear Algebra Elemetry Lier Alger Ato & Rorres, th Editio Lecture Set Chpter : Systems of Lier Equtios & Mtrices Chpter Cotets Itroductio to System of Lier Equtios Gussi Elimitio Mtrices d Mtri Opertios Iverses; Rules

More information

THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING

THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING OLLSCOIL NA héireann, CORCAIGH THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING MATHEMATICS MA008 Clculus d Lier

More information

Crushed Notes on MATH132: Calculus

Crushed Notes on MATH132: Calculus Mth 13, Fll 011 Siyg Yg s Outlie Crushed Notes o MATH13: Clculus The otes elow re crushed d my ot e ect This is oly my ow cocise overview of the clss mterils The otes I put elow should ot e used to justify

More information

The limit comparison test

The limit comparison test Roerto s Notes o Ifiite Series Chpter : Covergece tests Sectio 4 The limit compriso test Wht you eed to kow lredy: Bsics of series d direct compriso test. Wht you c ler here: Aother compriso test tht does

More information

Lecture 09: Myhill-Nerode Theorem

Lecture 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 information

Applied Databases. Sebastian Maneth. Lecture 16 Suffix Array, Burrows-Wheeler Transform. University of Edinburgh - March 10th, 2016

Applied Databases. Sebastian Maneth. Lecture 16 Suffix Array, Burrows-Wheeler Transform. University of Edinburgh - March 10th, 2016 Applied Dtbses Lecture 16 Suffix Arry, Burrows-Wheeler Trsform Sebsti Meth Uiversity of Ediburgh - Mrch 10th, 2016 2 Outlie 1. Suffix Arry 2. Burrows-Wheeler Trsform 3 Olie Strig-Mtchig how c we do Horspool

More information

f(t)dt 2δ f(x) f(t)dt 0 and b f(t)dt = 0 gives F (b) = 0. Since F is increasing, this means that

f(t)dt 2δ f(x) f(t)dt 0 and b f(t)dt = 0 gives F (b) = 0. Since F is increasing, this means that Uiversity of Illiois t Ur-Chmpig Fll 6 Mth 444 Group E3 Itegrtio : correctio of the exercises.. ( Assume tht f : [, ] R is cotiuous fuctio such tht f(x for ll x (,, d f(tdt =. Show tht f(x = for ll x [,

More information

UNIVERSITY OF BRISTOL. Examination for the Degrees of B.Sc. and M.Sci. (Level C/4) ANALYSIS 1B, SOLUTIONS MATH (Paper Code MATH-10006)

UNIVERSITY OF BRISTOL. Examination for the Degrees of B.Sc. and M.Sci. (Level C/4) ANALYSIS 1B, SOLUTIONS MATH (Paper Code MATH-10006) UNIVERSITY OF BRISTOL Exmitio for the Degrees of B.Sc. d M.Sci. (Level C/4) ANALYSIS B, SOLUTIONS MATH 6 (Pper Code MATH-6) My/Jue 25, hours 3 miutes This pper cotis two sectios, A d B. Plese use seprte

More information

M3P14 EXAMPLE SHEET 1 SOLUTIONS

M3P14 EXAMPLE SHEET 1 SOLUTIONS M3P14 EXAMPLE SHEET 1 SOLUTIONS 1. Show tht for, b, d itegers, we hve (d, db) = d(, b). Sice (, b) divides both d b, d(, b) divides both d d db, d hece divides (d, db). O the other hd, there exist m d

More information

AN INEQUALITY OF GRÜSS TYPE FOR RIEMANN-STIELTJES INTEGRAL AND APPLICATIONS FOR SPECIAL MEANS

AN INEQUALITY OF GRÜSS TYPE FOR RIEMANN-STIELTJES INTEGRAL AND APPLICATIONS FOR SPECIAL MEANS RGMIA Reserch Report Collectio, Vol., No., 998 http://sci.vut.edu.u/ rgmi/reports.html AN INEQUALITY OF GRÜSS TYPE FOR RIEMANN-STIELTJES INTEGRAL AND APPLICATIONS FOR SPECIAL MEANS S.S. DRAGOMIR AND I.

More information

Some New Iterative Methods Based on Composite Trapezoidal Rule for Solving Nonlinear Equations

Some New Iterative Methods Based on Composite Trapezoidal Rule for Solving Nonlinear Equations Itertiol Jourl of Mthemtics d Sttistics Ivetio (IJMSI) E-ISSN: 31 767 P-ISSN: 31-759 Volume Issue 8 August. 01 PP-01-06 Some New Itertive Methods Bsed o Composite Trpezoidl Rule for Solvig Nolier Equtios

More information

SOME IDENTITIES BETWEEN BASIC HYPERGEOMETRIC SERIES DERIVING FROM A NEW BAILEY-TYPE TRANSFORMATION

SOME IDENTITIES BETWEEN BASIC HYPERGEOMETRIC SERIES DERIVING FROM A NEW BAILEY-TYPE TRANSFORMATION SOME IDENTITIES BETWEEN BASIC HYPERGEOMETRIC SERIES DERIVING FROM A NEW BAILEY-TYPE TRANSFORMATION JAMES MC LAUGHLIN AND PETER ZIMMER Abstrct We prove ew Biley-type trsformtio reltig WP- Biley pirs We

More information

Introduction to Computational Molecular Biology. Suffix Trees

Introduction to Computational Molecular Biology. Suffix Trees 18.417 Itroductio to Computtiol Moleculr Biology Lecture 11: October 14, 004 Scribe: Athich Muthitchroe Lecturer: Ross Lippert Editor: Toy Scelfo Suffix Trees This is oe of the most complicted dt structures

More information

Vectors. Vectors in Plane ( 2

Vectors. Vectors in Plane ( 2 Vectors Vectors i Ple ( ) The ide bout vector is to represet directiol force Tht mes tht every vector should hve two compoets directio (directiol slope) d mgitude (the legth) I the ple we preset vector

More information

Advanced Algorithmic Problem Solving Le 6 Math and Search

Advanced Algorithmic Problem Solving Le 6 Math and Search Advced Algorithmic Prolem Solvig Le Mth d Serch Fredrik Heitz Dept of Computer d Iformtio Sciece Liköpig Uiversity Outlie Arithmetic (l. d.) Solvig lier equtio systems (l. d.) Chiese remider theorem (l.5

More information

Lecture 2: Matrix Algebra

Lecture 2: Matrix Algebra Lecture 2: Mtrix lgebr Geerl. mtrix, for our purpose, is rectgulr rry of objects or elemets. We will tke these elemets s beig rel umbers d idicte elemet by its row d colum positio. mtrix is the ordered

More information

A negative answer to a question of Wilke on varieties of!-languages

A negative answer to a question of Wilke on varieties of!-languages A negtive nswer to question of Wilke on vrieties of!-lnguges Jen-Eric Pin () Astrct. In recent pper, Wilke sked whether the oolen comintions of!-lnguges of the form! L, for L in given +-vriety of lnguges,

More information

Stalnaker s Argument

Stalnaker s Argument Stlker s Argumet (This is supplemet to Coutble Additiviy, Dutch Books d the Sleepig Beuty roblem ) Stlker (008) suggests rgumet tht c be stted thus: Let t be the time t which Beuty wkes o Mody morig. Upo

More information

Content: Essential Calculus, Early Transcendentals, James Stewart, 2007 Chapter 1: Functions and Limits., in a set B.

Content: Essential Calculus, Early Transcendentals, James Stewart, 2007 Chapter 1: Functions and Limits., in a set B. Review Sheet: Chpter Cotet: Essetil Clculus, Erly Trscedetls, Jmes Stewrt, 007 Chpter : Fuctios d Limits Cocepts, Defiitios, Lws, Theorems: A fuctio, f, is rule tht ssigs to ech elemet i set A ectly oe

More information

Error-free compression

Error-free compression Error-free compressio Useful i pplictio where o loss of iformtio is tolerble. This mybe due to ccurcy requiremets, legl requiremets, or less th perfect qulity of origil imge. Compressio c be chieved by

More information