specication language which is used to describe the behavior of the protocol functions.

Size: px
Start display at page:

Download "specication language which is used to describe the behavior of the protocol functions."

Transcription

1 1 Prtil Orer Simultion of SDL Speitions Dniel Toggweiler, Jens Growski, n Dieter Hogrefe University of Berne, Institute for Informtis, Neurukstr. 10, CH-3012 Berne, Switzerln, ftoggweil, growsk, hogrefeg@im.unie.h The nee of eient simultion methos for vlition n verition of protool speitions les to the evelopment of prtil orer simultion methos. Two new lgorithms for the prtil orer simultion of SDL speitions re presente. Both lgorithms hve shown to e useful for the utomti genertion of test ses. They re implemente in the test se genertion tool SMsTG. The results of some experiments re isusse. 1. Introution Due to omplexity the possiilities for vlition n verition of ommunition protools often re very restrite. A lot of omplexity is introue y the semntis of the speition lnguge whih is use to esrie the ehvior of the protool funtions. For exmple, SDL [10] is se on interleving semntis. Conurreny is introue y ineterminism, i.e., the exeution of n SDL speition is esrie y ll interleve tres 1 of onurrently exeute events. Exploring ll interleve tres is not lwys neessry for verition. Tres whih orrespon to the sme onurrent exeution ontin relte informtion. Susequently, prtil orer simultion methos exist for verition [1,4,6,9]. They ttempt to limit the explortion of tres for onurrent exeutions. At est for eh onurrent exeution only one tre is generte. We inten to improve the utomti genertion of test ses for SDL speitions y using prtil orer simultion methos. Our test se genertion metho is SMsTG 2 [2,7]. SMsTG genertes test ses y serhing system tres with spei properties in the stte spe of n SDL speition. The most prolemti point of SMsTG is the serh proeure. Until now, ue to the SDL interleving semntis, SMsTG investigte ll interleve tres of the given speition within the serh lgorithm. But for test se genertion in most ses it is suient to exmine one tre only for eh onurrent exeution. Consequently, we evelope n implemente the Inepenene Prioritizing Simultion (IPS) n the Conition Loking Simultion (CLS). These new lgorithms pt the ies of prtil orer simultion methos to the nees of SMsTG. They re presente in this pper. However, the enets of prtil orer simultion methos for SDL 1 Throughout this pper tre is ment to e totlly orere sequene of events. 2 SMsTG is n revition for 'Sl An Ms Se Test Ase Genertion'.

2 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 2 speitions re not restrite to SMsTG. Therefore IPS n CLS re esrie inepenently from SMsTG. Throughout this pper we ssume tht we simulte lose SDL systems, i.e., systems whih o not ommunite with the system environment. This is no restrition, euse it is lwys possile to moel the ehvior of the environment y mens of speil SDL proesses whih re le to sen n reeive ll possile signls t ny time. The vntge of this ssumption is tht we re le to tret the ommunition with the system environment in the sme wy s the ommunition mong SDL proesses. The pper is orgnize in the following wy: Setion 2 introues some funmentl notions. A smll exmple is introue in Setion 3. Throughout the pper it will e use to explin the mehnism of prtil orer simultion methos. The IPS lgorithm is esrie in Setion 4. Setion 5 presents the CLS lgorithm. The results of some experiments re isusse in Setion 6. In Setion 7 summry n outlook re presente. 2. Fountions It is ommon prtie to esrie the ehvior of n SDL system in form of ehvior tree. Figure 2 () presents prt of ehvior tree. The root of the tree S0 esries the initil stte n the leves S2 n S3 enote nl sttes. The other noes esrie sttes whih re rehe uring the simultion of the system. Stte trnsitions re represente y nnotte eges. The nnottions esrie the events whih le to the orresponing stte trnsition. The mening of the terms stte n event my nee some lrition. A stte is ment to e n SDL system stte whih omprises the lol sttes of the proesses, the vlues of vriles, n the ontents of ll queues. An event enotes n ritrry SDL event like input, output, or tsk. In priniple it mkes no ierene to use omplete (tomi) stte trnsitions 3 inste of SDL events only. In generl, the ehvior tree of n SDL system is not nite. One reson for this is tht often n ongoing n never ening ehvior is require y the pplition re of SDL, e.g., telephone system shoul not en. Another reson is the existene of innite signl queues whih my le to n innite stte spe of the SDL system. However, the tres of n SDL system n e exmine y using n ritrry SDL simultor whih provies the funtions initilize, enle-events, n exeute-event. We esrie these funtions y using the following BNF nottion: < F untionnme > ([< P rmeter > f; < P rmeter >g ])[!< ReturnV lue >] (1) initilize()! InitilStte : initilizes the SDL simultor n returns the strt stte of the simultion. (2) enle-events(stte)! StkOf EnleEvents : returns for given stte stk of ll enle events, i.e., events whih n e exeute next. (3) exeute-event(stte; Event)! N extstte : tkes Stte s tul stte, exeutes Event, n returns the new stte. 3 An SDL stte trnsition is ment to e sequene of events whih is performe y one proess n whih les from one SDL stte to the next SDL stte.

3 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 3 1 elre 2 S stk of sttes := (initilize()); 3 T R stk of events := (); 4 AL stk of stk of events := (); 5 U pperboun integer onstnt := externl; 6 7 InterlevingSimultion() 8 f 9 push(al; enle-events(top(s))); 10 while(:isempty(top(al)) ^ length(t R) < U pperboun) 11 f 12 e := top(top(al)); 13 push(s; exeute-event(top(s); e)); 14 push(t R; e); 15 push(al; rest(pop(al))); 16 ll : InterlevingSimultion(); 17 g 18 pop(s); pop(t R); pop(al); 19 g Figure 1. Interleving Simultion (ILS) lgorithm The funtion enle-events returns stk of events. A stk is t struture whih n e use to store elements of some type. It n e esse n mnipulte only y pplying the funtions push, pop, top, rest, isempty, n length. (4) push(stk; Element) : pushes Element on the top of Stk. (5) pop(stk)! Element : removes n returns the top element of Stk. (6) top(stk)! Element : returns the element whih ws lst pushe on Stk. (7) rest(stk)! Stk : removes the top element of Stk n returns the resulting stk. (8) isempty(stk)! BoolenV lue : returns the oolen vlue true if Stk is empty n flse if Stk is not empty. (9) length(stk)! IntegerV lue : returns the numer of elements whih re tully store in Stk. Bse on the funtions (1) - (9) we ene n lgorithm whih is le to exmine the tres of n SDL system. The lgorithm is lle interleving simultion (ILS) n is shown in Figure 1. The expression (initilize()) in line 2 enotes stk whih only inlues the initil stte of the SDL system. The empty prentheses () in the lines 3 n 4 esrie empty

4 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 4 S0 e S1 S4 S5 f h Bottom S2 S3 g S6 i S7 k S2 S1 S0 e Bottom Bottom Bottom Bottom S TR AL () () Figure 2. The interleving simultion lgorithm t work stks. The ILS lgorithm mkes use of the glol t strutures S, T R, AL, n U pperboun. The ILS lgorithm lwys rememers the omplete pth, i.e., sttes n events, from the initil stte to the tul stte. The sttes re store in the stk S n the events, i.e., the tul tre, re store in T R. The lterntives re store in AL. In se of innite ehvior termintion riterion is neee. We use length restrition for the exmine tres. The mximl length is given y the onstnt U pperboun. The wy how the ILS lgorithm explores the ehvior of n SDL system is shown shemtilly in Figure 2. The she rrow in () inites the wy through the stte spe of the investigte system. () esries the ontents of S, T R, n AL immeitely fter the exeution of, i.e., the tul stte is S2. 3. Exmple In Figure 3 smll SDL speition is presente. The system is lle Exmple. It onsists of the proesses P1, P2, n P3. The proesses o not ommunite with the system environment, i.e., the system is lose. The system is nite, i.e., the system ehvior ens in glol stte where the lol stte of P2 is P2 Stte, n the proesses P1 n P3 re stoppe. P1, P2, n P3 exhnge the signls,,, n. Proess P1 my perform two events in ritrry orer. The events re the reeption of from P2 n the sening of to P2. Proess P3 hs similr ehvior. It my perform the reeption of from P2 n the sening of to P2 in ritrry orer. Proess P2 rets on the reeption of the signls n. On the input of it gives to P3 n on the reeption of, signl is sent to P1. A etile nlysis shows tht some signls my ross eh other. This pplies for the signls n, n for the signls n. Applying the ILS lgorithm will le to n explortion of the ehvior tree shown in Figure 4. The sttes re not insrie with stte nmes euse we re intereste in tres only. The eges re nnotte with event esriptions. A '!' enotes n output event, e.g., the nnottion! esries the output of signl, n '?' esries n input, e.g., represents the input of signl. The proess whih performs the sen or reeive event nees no speil ientition. Eh signl n e sent, resp. reeive,

5 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 5 System Exmple SDL Overview Proess P1 P1_Pge(1) Blok Exmple P1 (1,1) P1_Stte1 P2 (1,1) P3 (1,1) SR12 SR23 P1_Stte2 NONE NONE P1_Stte3 () System igrm () Proess enition of P1 Proess P2 P2_Pge(1) Proess P3 P3_Pge(1) P3_Stte1 P2_Stte NONE P3_Stte2 NONE P3_Stte3 P2_Stte () Proess enition of P2 () Proess enition of P3 Figure 3. SDL speition of the exmple system

6 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 6!!!!!!!!!! Figure 4. Applying the ILS lgorithm to the exmple system y one proess only. The input NONE events in P1 n P3 re omitte euse they esrie no ommunition events. They speify the spontneous sening of n. Sine prllelism is esrie y ll interleve tres of onurrently exeute events the ehvior tree in Figure 4 looks omplite. Vrious tres of Figure 4 elong to the sme onurrent exeution. Within onur-

7 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 7 ms MSC1 P1 P2 P3 ms MSC2 P1 P2 P3 () () ms MSC3 P1 P2 P3 ms MSC4 P1 P2 P3 () Figure 5. Conurrent exeutions of the exmple system () rent exeution only the usl epenenies etween events re onsiere whih result in prtilly orere set of events in ontrry to tres in whih the events re orere totlly with respet to their exeution time. The onurrent exeutions n e esrie in ompt n intuitive mnner y using Messge Sequene Chrts (MSCs) [11]. Our SDL exmple (f. Figure 3) hs four onurrent exeutions. They re epite in Figure 5. The vli tres elonging to n MSC re esrie y the tres whih o not violte the prtil orer of the MSC. Our im is to generte one tre only for eh onurrent exeution. By using the knowlege tht the events of one proess re totlly orere in time n tht the orer of events of ierent proesses re meite y messges n MSC representtion of the onurrent exeution n e onstrute from eh tre. 4. The Inepenene Prioritizing Simultion lgorithm During the simultion proess the ILS lgorithm ienties the onurrently enle events for eh rehe stte. Uner ertin onitions suh events n e exeute in ritrry orer. The ie of the Inepenene Prioritizing Simultion (IPS) lgorithm is to tke vntge of this ft. Inepenently from our work, similr ie hs een investigte y Holzmnn n Pele [5]. But, their pproh is pte to the spei nees of verition n not to the nees of test se genertion n the simultion of SDL systems. However, t rst we hve to ene the onitions whih hve to e heke uring the simultion of the SDL system. We ene three onitions whih ientify epenent events, i.e., events whih nnot e exeute in ritrry orer. For presenting ompt onition formuls we nee some enitions n nottions.

8 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 8 For n ritrry SDL system with nite set of events 4 let O e the set of output events, I e the set of input events, ST e the set of spontneous trnsitions (input NONE), T e the set of timeout events, P e enote the proess exeuting the event e, Q e the input queue ete y the exeution of event e, initites(e i ; e j ) funtion whih returns true, if e i, e j elong to the sme SDL stte trnsition n e i 2 ST [ T, n Dep(e i ; e j ) stte tht e i n e j re epenent. Conition 1. Generlly we ssume tht hnnels n signlroutes re unelye. In this se output events, tht o not originte from the sme proess, ut o et the sme input queue, inuene the onurrent exeution. This is expresse formlly y: if e i ; e j 2 O ^ P e i 6= P e j ^ Q e i = Q e j then Dep(e i; e j ) Conition 2. Consier the se, where signl n e onsume n spontneous trnsition or timeout is possile. Then the SDL proess hs to mke n ineterministi hoie etween the ierent events. The hoie inuenes the onurrent exeution. This is formlly expresse y: if P e i = P e j ^ e i ; e j 2 I [ T [ ST ^ (e i 62 I _ e j 62 I) then Dep(e i ; e j ) Conition 3. If n SDL stte trnsition is initite y n event e n nother event e j of this SDL stte trnsition is epenent on nother event e k, then e must e epenent on e k too. This is formlly expresse y: if Dep(e j ; e k ) ^ initites(e ; e j ) then Dep(e ; e k ) The onitions 1-3 re se on the ontrol n signl ow of n SDL system. Therefore they re only pplile to systems whih o not shre vriles etween proesses, i.e., the use of the onstruts view, export, import n remote proeure ll is prohiite. A further restrition onerning the use of elye hnnels hs een mentione lrey in the esription of Conition 1. It is ovious, tht the existing onitions n e rene n preise. The vntge of the onitions 1-3 is, tht they n e heke sttilly efore the simultion strts. The epenenies etween events o not hnge uring run time. For esriing the IPS lgorithm enition of the terms inepenent n glolly inepenent is neee. Denition of inepenent n glolly inepenent. Let E e ll events of n SDL system n e,e i 2 E. e n e i re inepenent if none of the onitions 1-3 is vli. e is glolly inepenent if 8e i 2 Enfeg : e n e i re inepenent. 4 Equl events in ierent SDL stte trnsitions re ment to e ierent events.

9 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 9 1 elre glol 2 S stk of sttes := (initilize()); 3 T R stk of events := (); 4 AL stk of stk of events := (); 5 U pperboun integer onstnt := externl; 6 7 InepeneneP rioritizingsimultion() 8 f 9 if (9e 2 enle-events(top(s)) : e is glolly inepenent) 10 then push(al; (e)) 11 else push(al; enle-events(top(s))); 12 while(:isempty(top(al)) ^ length(t R) < U pperboun) 13 f 14 e := top(top(al)); 15 push(s; exeute-event(top(s); e)); 16 push(t R; e); 17 push(al; rest(pop(al))); 18 ll : InepeneneP rioritizingsimultion(); 19 g 20 pop(s); pop(t R); pop(al); 21 g Figure 6. Inepenene Prioritizing Simultion (IPS) lgorithm Roughly spoken, the exeution orer of glolly inepenent events whih re enle onurrently hs no inuene on the orresponing onurrent exeution. Therefore we re llowe to ssume n ritrry exeution orer of these events without running the nger to loose ny onurrent exeution. This ie is relize in the Inepenene Prioritizing Simultion lgorithm (IPS) whih is shown in Figure 6. The IPS lgorithm works in similr mnner s the ILS lgorithm (f. Figure 1). But, if there re glolly inepenent events enle in stte s, n ritrry one is selete s the only trnsition whih is exeute from s (f. lines 9-11 in Figure 6). By pplying the IPS lgorithm to our exmple system the ehvior tree (f. Figure 7) is reue from 34 to six pths. Eh one of the events,, n is glolly inepenent n the following six pirs of events re epenent: (!;!), (!;!), (!; ), (;!), (;!), n (!; ). It is ovious, tht the IPS lgorithm is not pplile if the system ehvior inlues loop of glolly inepenent events. Furthermore the lgorithm oes not hieve ny improvement if ll events re epenent. 5. The Conition Loking Simultion lgorithm The pplition of the IPS lgorithm les to the explortion of six ierent tres lthough we n istinguish four onurrent exeutions only. In this setion we present n

10 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 10!!!!!! Figure 7. Applying the IPS lgorithm to the exmple system lgorithm whih explores one tre only for eh onurrent exeution. The lgorithm is expline y mens of nite system onsisting of n events e 1 ; : : : ; e n whih permits tres of nite length only. Sine the exeution orer of inepenent events my e neglete, onurrent exeution is ene y the exeution orer of the epenent events. We represent onurrent exeution uniquely y using n nn mtrix. Only some els of the mtrix re lle with oolen vlues. A el t lotion (i; j) is lle if the events e i n e j re epenent. The vlue is true if e i is exeute efore e j. Otherwise it is flse. The mtrix is lle onition mtrix (CM) n the mtrix els CM(1 : : : n; 1 : : : n) re lle onitions. Now our prolem of generting one tre only for eh onurrent exeution is reue to the prolem of omputing eh possile onition mtrix extly one. Consier the se where n SDL system S with the initil stte s 0 is in the tul stte s. Let s 1 ; : : : ; s n e the possile suessor sttes of s, e 1 ; : : : ; e n e the events leing from s to s 1 ; : : : ; s n, Def s e the set of onitions whose oolen vlues re ene y the simultion from the initil stte s 0 to s (if s is the initil stte Def s = ;), Uef s e the onitions whose vlues re not ene yet, T r e1 := fcm(1; n) j Dep(e 1 ; e n ) ^ e 1 is exeute efore e n g is the set of onitions whih evlute to true when e 1 is exeute, n F e1 := fcm(n; 1) j Dep(e n ; e 1 ) ^ e 1 is exeute efore e n g is the set of onitions whih evlute to flse when e 1 is exeute. When e 1 is exeute the system hnges to the new stte s 1. The sets Def s1 n Uef s1 re lulte y Def s1 := Def s [ T r e1 [ F e1 n Uef s1 := Uef s n(t r e1 [ F e1 ).

11 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 11 The onept of the onition mtrix n the lultion of the sets n e integrte into the IPS lgorithm. All possile onition mtries will e generte t lest one. The result will e the sme s using the originl IPS lgorithm (f. Setion 4), i.e., ertin onition mtries will e generte more thn one. We esrie the prolem y using smll exmple. Consier the sitution where the system S is in the stte s n the events e 1 n e 2 n e exeute next. The events e 1 n e 2 re inepenent, ut not glolly inepenent. Therefore uring simultion they re trete s lterntives. Both lterntives will e exmine lthough e 1 n e 2 n e exeute in ritrry orer without hving ny inuene on the orresponing onurrent exeution. This n e shown y lulting the sets ene ove. Let s 12 e the stte whih is rehe if e 1 is exeute efore e 2 n let s 21 e the stte whih is rehe if e 2 is exeute efore s 1. Then: Def s12 = (Def s [T r e1 [F e1 )[T r e2 [F e2 = (Def s [T r e2 [F e2 )[T r e1 [F e1 = Def s21 n Uef s12 = Uef s n(t r e1 [F e1 [T r e2 [F e2 ) = Uef s n(t r e2 [F e2 [T r e1 [F e1 ) = Uef s21 The solution to this prolem is to evlute the simultion run strting in stte s with event e 1 in the norml mnner, n to lok the exeution of e 1 when the lterntive run strting in s with e 2 is exmine until we n gurntee tht n lrey ompute onition mtrix nnot e generte gin. This n e gurntee if onition CM(1; n) 2 T r e1 ^ Uef s hnges its vlue to flse. Suh riterion n e heke uring the simultion proess. The lgorithm implementing the ies of onition mtrix n event loking is lle Conition Loking Simultion (CLS) lgorithm. It retes eh possile onition mtrix extly one. The proof for this n forml esription of the lgorithm n e foun in [8]. In the following the CLS lgorithm is esrie informlly y referring to the IPS lgorithm presente in Figure 6 n explining the hnges to e me: Glol t strutures (lines 1-5) { In ition to the glol t strutures of IPS the CLS lgorithm uses onition mtrix CM n stk of stks of loke events (LE). Evlution of the enle events (lines 9-11) { elete ll events from the list of enle events whih re store within the top element of LE. Forwr steps (lines 14-18) { mke opy of the top element of LE n push it onto LE { elete ll events from LE whih re epenent to e { enter the hnges use y the exeution of e into CM { fter the forwr step (line 18) push e onto the top element of LE Bkwr step (line 20) { uno the hnges in CM use y the exeution of the event store in the top element of T R { pop the top element from the LE stk

12 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 12!!!!!! Figure 8. Applying the CLS lgorithm to the exmple system By pplying the CLS lgorithm to our exmple four tres re explore. The orresponing ehvior tree is presente in Figure 8. The CLS lgorithm hs een expline y mens of stti n nite system whih permits only tres of nite length. For the tretment of innite SDL systems we generlize the CLS lgorithm. The generliztion hs to ope with ynmi onition mtries. The etils n e foun in [8]. 6. Experiments The presente lgorithms ILS, IPS, n CLS re implemente. We ompre their pilities y using them to simulte test rhiteture of the Inres protool [3]. Here we present the results of three experiments whih hve een rrie out on Sun Spr 5 worksttion. Spee of the lgorithms. We mesure the numer of sttes generte per seon. The ext vlues of this experiment re shown in Figure 9. Astonishingly the ILS lgorithm is slower then IPS n CLS. The reson for this is tht, in generl the ILS lgorithm hs to store more lterntively enle events for eh stte. Exploring omplete ehvior tree up to given epth. The results of this test re shown in Figure 10. The epth of the tree is esrie on the horizontl xis. The numer of generte noes is presente in logrithmi sle long the vertil xis. The experiments show tht the prtil orer simultion lgorithms llow to explore ehvior trees up to igger epth thn the interleving simultion. Genertion of test ses. The lgorithms hve een implemente in the SMsTG test se genertor [2,7]. We generte test se for the Inres protool. We use

13 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 13 Algorithm Mximl Spee Miniml Spee sttes per seon sttes per seon ILS IPS CLS Figure 9. The spee of the lgorithms 1e ILS IPS CLS numer of expne noes epth of serhtree Figure 10. Exploring omplete ehvior trees Algorithm ILS IPS CLS Consume time Interrupte fter 7 hours, more thn 10 mio sttes hve een explore 8'33" 3'39" Figure 11. Using ILS, IPS, n CLS for test se genertion test purpose whih heks the t trnsfer with n knowlegement fter the rst trnsmission of the t pkge. The results of this experiment re shown in Figure 11. They emphzise the power of prtil orer simultion methos for test se genertion. 7. Summry n outlook We presente two lgorithms whih pt the ies of prtil orer simultion methos to SDL speitions. The lgorithms re implemente n their power for the utomti

14 SDL'95 - Proeeings of the 7th SDL Forum, Sept. 1995, Oslo, Norwy 14 genertion of test ses hs een proven y some experiments. However, the rst version of the SMsTG tool uses interleving simultion for test se genertion. In orer to reue the omplexity of the genertion proess we implemente itionl heuristis like resonle environment or strong resonle timers [7]. These heuristis hve proven to e useful for interleving simultion. Consequently, we strte to investigte whether these heuristis lso improve the test se genertion se on prtil orer simultion methos. Aknowlegements The presente work is fune prtilly y the KWF-Projet No 'Grphil Methos in the Test Proess', the R & D projet No. 299 'Conformne Testing - A Tool for the Genertion of Test Cses' fune y Swiss PTT, n the SPP IF projet 'The Automti Genertion of Test Purposes'. The uthors woul like to thnk Dr. E. Ruolph for proofreing n vlule omments. REFERENCES 1. P. Goefroi. Prtil-Orer Methos for the Verition of Conurrent Systems { An Approh to the Stte-Explosion Prolem. PhD thesis, Universite e Liege, Fulte es Sienes Appliquees, Otoer J. Growski, D. Hogrefe, R. Nhm. Test Cse Genertion with Test Purpose Speition y MSCs. In: SDL'93 - Using Ojets. North-Holln, Otoer D. Hogrefe. OSI Forml Speition Cse Stuy: The INRES Protool n Servie. Tehnil Report IAM , University of Berne, My Upte My G. Holzmnn, P. Goefroi, D. Pirottin. Coverge Preserving Reution Strtegies for Rehility Anlysis. In: Proeeings 12th IFIP WG 6.1 Interntionl Symposium on Protool Speition Testing n Verition. North-Holln, June G. Holzmnn n D. Pele. An Improvement in Forml Verition. In: Proeeings of Seventh Interntionl Conferene on Forml Desription Tehniques (FORTE'94) in Berne (Switzerln), Otoer R. Lngerk. True Conurreny Moels for LOTOS. In: FORTE'94 - Tutoril Notes, Otoer R. Nhm. Conformne Testing Bse on Forml Desription Tehniques n Messge Sequene Chrts. PhD thesis, University of Berne, Ferury D. Toggweiler. Eient Test Genertion for Distriute Systems Speie y Automt. PhD thesis, University of Berne, My P. Wolper, P. Goefroi. Prtil-orer Methos for Temporl Verition. In: CON- CUR'93, 4th Interntionl Conferene on Conurreny Theory, Leture Notes in Computer Siene, vol. 715, Springer-Verlg. August Z.100 (1993), CCITT Speition n Desription Lnguge (SDL), ITU-T, June Z.120 (1993), Messge Sequene Chrt (MSC), ITU-T, Septemer 1994.

Lecture 6: Coding theory

Lecture 6: Coding theory Leture 6: Coing theory Biology 429 Crl Bergstrom Ferury 4, 2008 Soures: This leture loosely follows Cover n Thoms Chpter 5 n Yeung Chpter 3. As usul, some of the text n equtions re tken iretly from those

More information

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs Isomorphism of Grphs Definition The simple grphs G 1 = (V 1, E 1 ) n G = (V, E ) re isomorphi if there is ijetion (n oneto-one n onto funtion) f from V 1 to V with the property tht n re jent in G 1 if

More information

2.4 Theoretical Foundations

2.4 Theoretical Foundations 2 Progrmming Lnguge Syntx 2.4 Theoretil Fountions As note in the min text, snners n prsers re se on the finite utomt n pushown utomt tht form the ottom two levels of the Chomsky lnguge hierrhy. At eh level

More information

CSC2542 State-Space Planning

CSC2542 State-Space Planning CSC2542 Stte-Spe Plnning Sheil MIlrith Deprtment of Computer Siene University of Toronto Fll 2010 1 Aknowlegements Some the slies use in this ourse re moifitions of Dn Nu s leture slies for the textook

More information

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 ) Neessry n suient onitions for some two vrile orthogonl esigns in orer 44 C. Koukouvinos, M. Mitrouli y, n Jennifer Seerry z Deite to Professor Anne Penfol Street Astrt We give new lgorithm whih llows us

More information

CS 491G Combinatorial Optimization Lecture Notes

CS 491G Combinatorial Optimization Lecture Notes CS 491G Comintoril Optimiztion Leture Notes Dvi Owen July 30, August 1 1 Mthings Figure 1: two possile mthings in simple grph. Definition 1 Given grph G = V, E, mthing is olletion of eges M suh tht e i,

More information

I 3 2 = I I 4 = 2A

I 3 2 = I I 4 = 2A ECE 210 Eletril Ciruit Anlysis University of llinois t Chigo 2.13 We re ske to use KCL to fin urrents 1 4. The key point in pplying KCL in this prolem is to strt with noe where only one of the urrents

More information

Lecture 2: Cayley Graphs

Lecture 2: Cayley Graphs Mth 137B Professor: Pri Brtlett Leture 2: Cyley Grphs Week 3 UCSB 2014 (Relevnt soure mteril: Setion VIII.1 of Bollos s Moern Grph Theory; 3.7 of Gosil n Royle s Algeri Grph Theory; vrious ppers I ve re

More information

Automata and Regular Languages

Automata and Regular Languages Chpter 9 Automt n Regulr Lnguges 9. Introution This hpter looks t mthemtil moels of omputtion n lnguges tht esrie them. The moel-lnguge reltionship hs multiple levels. We shll explore the simplest level,

More information

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of: 22: Union Fin CS 473u - Algorithms - Spring 2005 April 14, 2005 1 Union-Fin We wnt to mintin olletion of sets, uner the opertions of: 1. MkeSet(x) - rete set tht ontins the single element x. 2. Fin(x)

More information

Chapter 4 State-Space Planning

Chapter 4 State-Space Planning Leture slides for Automted Plnning: Theory nd Prtie Chpter 4 Stte-Spe Plnning Dn S. Nu CMSC 722, AI Plnning University of Mrylnd, Spring 2008 1 Motivtion Nerly ll plnning proedures re serh proedures Different

More information

System Validation (IN4387) November 2, 2012, 14:00-17:00

System Validation (IN4387) November 2, 2012, 14:00-17:00 System Vlidtion (IN4387) Novemer 2, 2012, 14:00-17:00 Importnt Notes. The exmintion omprises 5 question in 4 pges. Give omplete explntion nd do not onfine yourself to giving the finl nswer. Good luk! Exerise

More information

CS 573 Automata Theory and Formal Languages

CS 573 Automata Theory and Formal Languages Non-determinism Automt Theory nd Forml Lnguges Professor Leslie Lnder Leture # 3 Septemer 6, 2 To hieve our gol, we need the onept of Non-deterministi Finite Automton with -moves (NFA) An NFA is tuple

More information

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap Prtile Physis Mihelms Term 2011 Prof Mrk Thomson g X g X g g Hnout 3 : Intertion y Prtile Exhnge n QED Prof. M.A. Thomson Mihelms 2011 101 Rep Working towrs proper lultion of ey n sttering proesses lnitilly

More information

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza

Laboratory for Foundations of Computer Science. An Unfolding Approach. University of Edinburgh. Model Checking. Javier Esparza An Unfoling Approh to Moel Cheking Jvier Esprz Lbortory for Fountions of Computer Siene University of Einburgh Conurrent progrms Progrm: tuple P T 1 T n of finite lbelle trnsition systems T i A i S i i

More information

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4

CSE 332. Sorting. Data Abstractions. CSE 332: Data Abstractions. QuickSort Cutoff 1. Where We Are 2. Bounding The MAXIMUM Problem 4 Am Blnk Leture 13 Winter 2016 CSE 332 CSE 332: Dt Astrtions Sorting Dt Astrtions QuikSort Cutoff 1 Where We Are 2 For smll n, the reursion is wste. The onstnts on quik/merge sort re higher thn the ones

More information

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition Dt Strutures, Spring 24 L. Joskowiz Dt Strutures LEURE Humn oing Motivtion Uniquel eipherle oes Prei oes Humn oe onstrution Etensions n pplitions hpter 6.3 pp 385 392 in tetook Motivtion Suppose we wnt

More information

Factorising FACTORISING.

Factorising FACTORISING. Ftorising FACTORISING www.mthletis.om.u Ftorising FACTORISING Ftorising is the opposite of expning. It is the proess of putting expressions into rkets rther thn expning them out. In this setion you will

More information

TIME AND STATE IN DISTRIBUTED SYSTEMS

TIME AND STATE IN DISTRIBUTED SYSTEMS Distriuted Systems Fö 5-1 Distriuted Systems Fö 5-2 TIME ND STTE IN DISTRIUTED SYSTEMS 1. Time in Distriuted Systems Time in Distriuted Systems euse eh mhine in distriuted system hs its own lok there is

More information

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Project 6: Minigoals Towards Simplifying and Rewriting Expressions MAT 51 Wldis Projet 6: Minigols Towrds Simplifying nd Rewriting Expressions The distriutive property nd like terms You hve proly lerned in previous lsses out dding like terms ut one prolem with the wy

More information

Alpha Algorithm: Limitations

Alpha Algorithm: Limitations Proess Mining: Dt Siene in Ation Alph Algorithm: Limittions prof.dr.ir. Wil vn der Alst www.proessmining.org Let L e n event log over T. α(l) is defined s follows. 1. T L = { t T σ L t σ}, 2. T I = { t

More information

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005

CARLETON UNIVERSITY. 1.0 Problems and Most Solutions, Sect B, 2005 RLETON UNIVERSIT eprtment of Eletronis ELE 2607 Swithing iruits erury 28, 05; 0 pm.0 Prolems n Most Solutions, Set, 2005 Jn. 2, #8 n #0; Simplify, Prove Prolem. #8 Simplify + + + Reue to four letters (literls).

More information

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point GCSE C Emple 7 Work out 9 Give your nswer in its simplest form Numers n inies Reiprote mens invert or turn upsie own The reiprol of is 9 9 Mke sure you only invert the frtion you re iviing y 7 You multiply

More information

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233, Surs n Inies Surs n Inies Curriulum Rey ACMNA:, 6 www.mthletis.om Surs SURDS & & Inies INDICES Inies n surs re very losely relte. A numer uner (squre root sign) is lle sur if the squre root n t e simplifie.

More information

NON-DETERMINISTIC FSA

NON-DETERMINISTIC FSA Tw o types of non-determinism: NON-DETERMINISTIC FS () Multiple strt-sttes; strt-sttes S Q. The lnguge L(M) ={x:x tkes M from some strt-stte to some finl-stte nd ll of x is proessed}. The string x = is

More information

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106 8. Problem Set Due Wenesy, Ot., t : p.m. in - Problem Mony / Consier the eight vetors 5, 5, 5,..., () List ll of the one-element, linerly epenent sets forme from these. (b) Wht re the two-element, linerly

More information

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014 S 224 DIGITAL LOGI & STATE MAHINE DESIGN SPRING 214 DUE : Mrh 27, 214 HOMEWORK III READ : Relte portions of hpters VII n VIII ASSIGNMENT : There re three questions. Solve ll homework n exm prolems s shown

More information

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. 1 PYTHAGORAS THEOREM 1 1 Pythgors Theorem In this setion we will present geometri proof of the fmous theorem of Pythgors. Given right ngled tringle, the squre of the hypotenuse is equl to the sum of the

More information

Automatic Synthesis of New Behaviors from a Library of Available Behaviors

Automatic Synthesis of New Behaviors from a Library of Available Behaviors Automti Synthesis of New Behviors from Lirry of Aville Behviors Giuseppe De Giomo Università di Rom L Spienz, Rom, Itly degiomo@dis.unirom1.it Sestin Srdin RMIT University, Melourne, Austrli ssrdin@s.rmit.edu.u

More information

8 THREE PHASE A.C. CIRCUITS

8 THREE PHASE A.C. CIRCUITS 8 THREE PHSE.. IRUITS The signls in hpter 7 were sinusoidl lternting voltges nd urrents of the so-lled single se type. n emf of suh type n e esily generted y rotting single loop of ondutor (or single winding),

More information

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA Common intervls of genomes Mthieu Rffinot CNRS LIF Context: omprtive genomis. set of genomes prtilly/totlly nnotte Informtive group of genes or omins? Ex: COG tse Mny iffiulties! iology Wht re two similr

More information

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6 CS311 Computtionl Strutures Regulr Lnguges nd Regulr Grmmrs Leture 6 1 Wht we know so fr: RLs re losed under produt, union nd * Every RL n e written s RE, nd every RE represents RL Every RL n e reognized

More information

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution Tehnishe Universität Münhen Winter term 29/ I7 Prof. J. Esprz / J. Křetínský / M. Luttenerger. Ferur 2 Solution Automt nd Forml Lnguges Homework 2 Due 5..29. Exerise 2. Let A e the following finite utomton:

More information

Unfoldings of Networks of Timed Automata

Unfoldings of Networks of Timed Automata Unfolings of Networks of Time Automt Frnk Cssez Thoms Chtin Clue Jr Ptrii Bouyer Serge H Pierre-Alin Reynier Rennes, Deemer 3, 2008 Unfolings [MMilln 93] First efine for Petri nets Then extene to other

More information

Eigenvectors and Eigenvalues

Eigenvectors and Eigenvalues MTB 050 1 ORIGIN 1 Eigenvets n Eigenvlues This wksheet esries the lger use to lulte "prinipl" "hrteristi" iretions lle Eigenvets n the "prinipl" "hrteristi" vlues lle Eigenvlues ssoite with these iretions.

More information

The DOACROSS statement

The DOACROSS statement The DOACROSS sttement Is prllel loop similr to DOALL, ut it llows prouer-onsumer type of synhroniztion. Synhroniztion is llowe from lower to higher itertions sine it is ssume tht lower itertions re selete

More information

Convert the NFA into DFA

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

CIT 596 Theory of Computation 1. Graphs and Digraphs

CIT 596 Theory of Computation 1. Graphs and Digraphs CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege

More information

Now we must transform the original model so we can use the new parameters. = S max. Recruits

Now we must transform the original model so we can use the new parameters. = S max. Recruits MODEL FOR VARIABLE RECRUITMENT (ontinue) Alterntive Prmeteriztions of the pwner-reruit Moels We n write ny moel in numerous ifferent ut equivlent forms. Uner ertin irumstnes it is onvenient to work with

More information

Implication Graphs and Logic Testing

Implication Graphs and Logic Testing Implition Grphs n Logi Testing Vishwni D. Agrwl Jmes J. Dnher Professor Dept. of ECE, Auurn University Auurn, AL 36849 vgrwl@eng.uurn.eu www.eng.uurn.eu/~vgrwl Joint reserh with: K. K. Dve, ATI Reserh,

More information

Solving the Class Diagram Restructuring Transformation Case with FunnyQT

Solving the Class Diagram Restructuring Transformation Case with FunnyQT olving the lss Digrm Restruturing Trnsformtion se with FunnyQT Tssilo Horn horn@uni-kolenz.e Institute for oftwre Tehnology, University Kolenz-Lnu, Germny FunnyQT is moel querying n moel trnsformtion lirry

More information

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx Applitions of Integrtion Are of Region Between Two Curves Ojetive: Fin the re of region etween two urves using integrtion. Fin the re of region etween interseting urves using integrtion. Desrie integrtion

More information

Compression of Palindromes and Regularity.

Compression of Palindromes and Regularity. Compression of Plinromes n Regulrity. Kyoko Shikishim-Tsuji Center for Lierl Arts Eution n Reserh Tenri University 1 Introution In [1], property of likstrem t t view of tse is isusse n it is shown tht

More information

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1. Exerise Genertor polynomils of onvolutionl ode, given in binry form, re g, g j g. ) Sketh the enoding iruit. b) Sketh the stte digrm. ) Find the trnsfer funtion T. d) Wht is the minimum free distne of

More information

Lecture 11 Binary Decision Diagrams (BDDs)

Lecture 11 Binary Decision Diagrams (BDDs) C 474A/57A Computer-Aie Logi Design Leture Binry Deision Digrms (BDDs) C 474/575 Susn Lyseky o 3 Boolen Logi untions Representtions untion n e represente in ierent wys ruth tle, eqution, K-mp, iruit, et

More information

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite! Solutions for HW9 Exerise 28. () Drw C 6, W 6 K 6, n K 5,3. C 6 : W 6 : K 6 : K 5,3 : () Whih of the following re iprtite? Justify your nswer. Biprtite: put the re verties in V 1 n the lk in V 2. Biprtite:

More information

1 This diagram represents the energy change that occurs when a d electron in a transition metal ion is excited by visible light.

1 This diagram represents the energy change that occurs when a d electron in a transition metal ion is excited by visible light. 1 This igrm represents the energy hnge tht ours when eletron in trnsition metl ion is exite y visile light. Give the eqution tht reltes the energy hnge ΔE to the Plnk onstnt, h, n the frequeny, v, of the

More information

Behavior Composition in the Presence of Failure

Behavior Composition in the Presence of Failure Behvior Composition in the Presene of Filure Sestin Srdin RMIT University, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Univ. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS The University of ottinghm SCHOOL OF COMPUTR SCIC A LVL 2 MODUL, SPRIG SMSTR 2015 2016 MACHIS AD THIR LAGUAGS ASWRS Time llowed TWO hours Cndidtes my omplete the front over of their nswer ook nd sign their

More information

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW XML n Dtses Exm Prepertion Disuss Answers to lst yer s exm Sestin Mneth NICTA n UNSW CSE@UNSW -- Semester 1, 2008 (1) For eh of the following, explin why it is not well-forme XML (is WFC or the XML grmmr

More information

ANALYSIS AND MODELLING OF RAINFALL EVENTS

ANALYSIS AND MODELLING OF RAINFALL EVENTS Proeedings of the 14 th Interntionl Conferene on Environmentl Siene nd Tehnology Athens, Greee, 3-5 Septemer 215 ANALYSIS AND MODELLING OF RAINFALL EVENTS IOANNIDIS K., KARAGRIGORIOU A. nd LEKKAS D.F.

More information

"Add"-operator "Mul"-operator "Pow"-operator. def. h b. def

Add-operator Mul-operator Pow-operator. def. h b. def Opertors A sort review of opertors. Te isussions out tetrtion le me to two impressions. ) It my e etter to see opertors using prmeters, inste of two, s it is ommon use upte 4 ) Sering for noter onsistent

More information

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL: PYTHAGORAS THEOREM 1 WHAT S IN CHAPTER 1? 1 01 Squres, squre roots nd surds 1 02 Pythgors theorem 1 03 Finding the hypotenuse 1 04 Finding shorter side 1 05 Mixed prolems 1 06 Testing for right-ngled tringles

More information

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18 Computt onl Biology Leture 18 Genome Rerrngements Finding preserved genes We hve seen before how to rerrnge genome to obtin nother one bsed on: Reversls Knowledge of preserved bloks (or genes) Now we re

More information

Section 2.1 Special Right Triangles

Section 2.1 Special Right Triangles Se..1 Speil Rigt Tringles 49 Te --90 Tringle Setion.1 Speil Rigt Tringles Te --90 tringle (or just 0-60-90) is so nme euse of its ngle mesures. Te lengts of te sies, toug, ve very speifi pttern to tem

More information

Unit 4. Combinational Circuits

Unit 4. Combinational Circuits Unit 4. Comintionl Ciruits Digitl Eletroni Ciruits (Ciruitos Eletrónios Digitles) E.T.S.I. Informáti Universidd de Sevill 5/10/2012 Jorge Jun 2010, 2011, 2012 You re free to opy, distriute

More information

Section 2.3. Matrix Inverses

Section 2.3. Matrix Inverses Mtri lger Mtri nverses Setion.. Mtri nverses hree si opertions on mtries, ition, multiplition, n sutrtion, re nlogues for mtries of the sme opertions for numers. n this setion we introue the mtri nlogue

More information

Exam Review. John Knight Electronics Department, Carleton University March 2, 2009 ELEC 2607 A MIDTERM

Exam Review. John Knight Electronics Department, Carleton University March 2, 2009 ELEC 2607 A MIDTERM riting Exms: Exm Review riting Exms += riting Exms synhronous iruits Res, yles n Stte ssignment Synhronous iruits Stte-Grph onstrution n Smll Prolems lso Multiple Outputs, n Hrer omintionl Prolem riting

More information

Finite State Automata and Determinisation

Finite State Automata and Determinisation Finite Stte Automt nd Deterministion Tim Dworn Jnury, 2016 Lnguges fs nf re df Deterministion 2 Outline 1 Lnguges 2 Finite Stte Automt (fs) 3 Non-deterministi Finite Stte Automt (nf) 4 Regulr Expressions

More information

A Primer on Continuous-time Economic Dynamics

A Primer on Continuous-time Economic Dynamics Eonomis 205A Fll 2008 K Kletzer A Primer on Continuous-time Eonomi Dnmis A Liner Differentil Eqution Sstems (i) Simplest se We egin with the simple liner first-orer ifferentil eqution The generl solution

More information

Analysis of Temporal Interactions with Link Streams and Stream Graphs

Analysis of Temporal Interactions with Link Streams and Stream Graphs Anlysis of Temporl Intertions with n Strem Grphs, Tiphine Vir, Clémene Mgnien http:// ltpy@ LIP6 CNRS n Soronne Université Pris, Frne 1/23 intertions over time 0 2 4 6 8,,, n for 10 time units time 2/23

More information

Spacetime and the Quantum World Questions Fall 2010

Spacetime and the Quantum World Questions Fall 2010 Spetime nd the Quntum World Questions Fll 2010 1. Cliker Questions from Clss: (1) In toss of two die, wht is the proility tht the sum of the outomes is 6? () P (x 1 + x 2 = 6) = 1 36 - out 3% () P (x 1

More information

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph Inin Institute of Informtion Tehnology Design n Mnufturing, Knheepurm, Chenni 00, Ini An Autonomous Institute uner MHRD, Govt of Ini http://www.iiitm..in COM 0T Design n Anlysis of Algorithms -Leture Notes

More information

Computing all-terminal reliability of stochastic networks with Binary Decision Diagrams

Computing all-terminal reliability of stochastic networks with Binary Decision Diagrams Computing ll-terminl reliility of stohsti networks with Binry Deision Digrms Gry Hry 1, Corinne Luet 1, n Nikolos Limnios 2 1 LRIA, FRE 2733, 5 rue u Moulin Neuf 80000 AMIENS emil:(orinne.luet, gry.hry)@u-pirie.fr

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministi Finite utomt The Power of Guessing Tuesdy, Otoer 4, 2 Reding: Sipser.2 (first prt); Stoughton 3.3 3.5 S235 Lnguges nd utomt eprtment of omputer Siene Wellesley ollege Finite utomton (F)

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b CS 294-2 9/11/04 Quntum Ciruit Model, Solovy-Kitev Theorem, BQP Fll 2004 Leture 4 1 Quntum Ciruit Model 1.1 Clssil Ciruits - Universl Gte Sets A lssil iruit implements multi-output oolen funtion f : {0,1}

More information

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1) Green s Theorem Mth 3B isussion Session Week 8 Notes Februry 8 nd Mrh, 7 Very shortly fter you lerned how to integrte single-vrible funtions, you lerned the Fundmentl Theorem of lulus the wy most integrtion

More information

Lecture 8: Abstract Algebra

Lecture 8: Abstract Algebra Mth 94 Professor: Pri Brtlett Leture 8: Astrt Alger Week 8 UCSB 2015 This is the eighth week of the Mthemtis Sujet Test GRE prep ourse; here, we run very rough-n-tumle review of strt lger! As lwys, this

More information

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE M. STISSING, C. N. S. PEDERSEN, T. MAILUND AND G. S. BRODAL Bioinformtis Reserh Center, n Dept. of Computer Siene, University

More information

CS 360 Exam 2 Fall 2014 Name

CS 360 Exam 2 Fall 2014 Name CS 360 Exm 2 Fll 2014 Nme 1. The lsses shown elow efine singly-linke list n stk. Write three ifferent O(n)-time versions of the reverse_print metho s speifie elow. Eh version of the metho shoul output

More information

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4.

Tutorial Worksheet. 1. Find all solutions to the linear system by following the given steps. x + 2y + 3z = 2 2x + 3y + z = 4. Mth 5 Tutoril Week 1 - Jnury 1 1 Nme Setion Tutoril Worksheet 1. Find ll solutions to the liner system by following the given steps x + y + z = x + y + z = 4. y + z = Step 1. Write down the rgumented mtrix

More information

6.5 Improper integrals

6.5 Improper integrals Eerpt from "Clulus" 3 AoPS In. www.rtofprolemsolving.om 6.5. IMPROPER INTEGRALS 6.5 Improper integrls As we ve seen, we use the definite integrl R f to ompute the re of the region under the grph of y =

More information

Bases for Vector Spaces

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

Logic, Set Theory and Computability [M. Coppenbarger]

Logic, Set Theory and Computability [M. Coppenbarger] 14 Orer (Hnout) Definition 7-11: A reltion is qusi-orering (or preorer) if it is reflexive n trnsitive. A quisi-orering tht is symmetri is n equivlene reltion. A qusi-orering tht is nti-symmetri is n orer

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 5 Supplement Greedy Algorithms Cont d Minimizing lteness Ching (NOT overed in leture) Adm Smith 9/8/10 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov,

More information

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then Slrs-7.2-ADV-.7 Improper Definite Integrls 27.. D.dox Pge of Improper Definite Integrls Before we strt the min topi we present relevnt lger nd it review. See Appendix J for more lger review. Inequlities:

More information

Computing on rings by oblivious robots: a unified approach for different tasks

Computing on rings by oblivious robots: a unified approach for different tasks Computing on rings y olivious roots: unifie pproh for ifferent tsks Ginlorenzo D Angelo, Griele Di Stefno, Alfreo Nvrr, Niols Nisse, Krol Suhn To ite this version: Ginlorenzo D Angelo, Griele Di Stefno,

More information

Lesson 2.1 Inductive Reasoning

Lesson 2.1 Inductive Reasoning Lesson 2.1 Inutive Resoning Nme Perio Dte For Eerises 1 7, use inutive resoning to fin the net two terms in eh sequene. 1. 4, 8, 12, 16,, 2. 400, 200, 100, 50, 25,, 3. 1 8, 2 7, 1 2, 4, 5, 4. 5, 3, 2,

More information

Lesson 55 - Inverse of Matrices & Determinants

Lesson 55 - Inverse of Matrices & Determinants // () Review Lesson - nverse of Mtries & Determinnts Mth Honors - Sntowski - t this stge of stuying mtries, we know how to, subtrt n multiply mtries i.e. if Then evlute: () + B (b) - () B () B (e) B n

More information

Solutions to Problem Set #1

Solutions to Problem Set #1 CSE 233 Spring, 2016 Solutions to Prolem Set #1 1. The movie tse onsists of the following two reltions movie: title, iretor, tor sheule: theter, title The first reltion provies titles, iretors, n tors

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

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

p-adic Egyptian Fractions

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

1 Nondeterministic Finite Automata

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

On the Revision of Argumentation Systems: Minimal Change of Arguments Status

On the Revision of Argumentation Systems: Minimal Change of Arguments Status On the Revision of Argumenttion Systems: Miniml Chnge of Arguments Sttus Sylvie Coste-Mrquis, Séstien Koniezny, Jen-Guy Milly, n Pierre Mrquis CRIL Université Artois CNRS Lens, Frne {oste,koniezny,milly,mrquis}@ril.fr

More information

Introduction to Olympiad Inequalities

Introduction to Olympiad Inequalities Introdution to Olympid Inequlities Edutionl Studies Progrm HSSP Msshusetts Institute of Tehnology Snj Simonovikj Spring 207 Contents Wrm up nd Am-Gm inequlity 2. Elementry inequlities......................

More information

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon

LIP. Laboratoire de l Informatique du Parallélisme. Ecole Normale Supérieure de Lyon LIP Lortoire de l Informtique du Prllélisme Eole Normle Supérieure de Lyon Institut IMAG Unité de reherhe ssoiée u CNRS n 1398 One-wy Cellulr Automt on Cyley Grphs Zsuzsnn Rok Mrs 1993 Reserh Report N

More information

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression

Outline Data Structures and Algorithms. Data compression. Data compression. Lossy vs. Lossless. Data Compression 5-2 Dt Strutures n Algorithms Dt Compression n Huffmn s Algorithm th Fe 2003 Rjshekr Rey Outline Dt ompression Lossy n lossless Exmples Forml view Coes Definition Fixe length vs. vrile length Huffmn s

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

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals AP Clulus BC Chpter 8: Integrtion Tehniques, L Hopitl s Rule nd Improper Integrls 8. Bsi Integrtion Rules In this setion we will review vrious integrtion strtegies. Strtegies: I. Seprte the integrnd into

More information

Comparing the Pre-image and Image of a Dilation

Comparing the Pre-image and Image of a Dilation hpter Summry Key Terms Postultes nd Theorems similr tringles (.1) inluded ngle (.2) inluded side (.2) geometri men (.) indiret mesurement (.6) ngle-ngle Similrity Theorem (.2) Side-Side-Side Similrity

More information

Engr354: Digital Logic Circuits

Engr354: Digital Logic Circuits Engr354: Digitl Logi Ciruits Chpter 4: Logi Optimiztion Curtis Nelson Logi Optimiztion In hpter 4 you will lern out: Synthesis of logi funtions; Anlysis of logi iruits; Tehniques for deriving minimum-ost

More information

A Disambiguation Algorithm for Finite Automata and Functional Transducers

A Disambiguation Algorithm for Finite Automata and Functional Transducers A Dismigution Algorithm for Finite Automt n Funtionl Trnsuers Mehryr Mohri Cournt Institute of Mthemtil Sienes n Google Reserh 51 Merer Street, New York, NY 1001, USA Astrt. We present new ismigution lgorithm

More information

= state, a = reading and q j

= state, a = reading and q j 4 Finite Automt CHAPTER 2 Finite Automt (FA) (i) Derterministi Finite Automt (DFA) A DFA, M Q, q,, F, Where, Q = set of sttes (finite) q Q = the strt/initil stte = input lphet (finite) (use only those

More information

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh Computtionl Biology Leture 8: Genome rerrngements, finding miml mthes Sd Mneimneh We hve seen how to rerrnge genome to otin nother one sed on reversls nd the knowledge of the preserved loks or genes. Now

More information

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points: Eidgenössishe Tehnishe Hohshule Zürih Eole polytehnique fédérle de Zurih Politenio federle di Zurigo Federl Institute of Tehnology t Zurih Deprtement of Computer Siene. Novemer 0 Mrkus Püshel, Dvid Steurer

More information

Algorithm Design and Analysis

Algorithm Design and Analysis Algorithm Design nd Anlysis LECTURE 8 Mx. lteness ont d Optiml Ching Adm Smith 9/12/2008 A. Smith; sed on slides y E. Demine, C. Leiserson, S. Rskhodnikov, K. Wyne Sheduling to Minimizing Lteness Minimizing

More information

Model Reduction of Finite State Machines by Contraction

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

Symmetrical Components 1

Symmetrical Components 1 Symmetril Components. Introdution These notes should e red together with Setion. of your text. When performing stedy-stte nlysis of high voltge trnsmission systems, we mke use of the per-phse equivlent

More information