Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets

Size: px
Start display at page:

Download "Kleene Theorems for Free Choice Nets Labelled with Distributed Alphabets"

Transcription

1 Kleene Theorems for Free Choice Nets Lbelled with Distributed Alphbets Rmchndr Phwde Indin Institute of Technology Dhrwd, Dhrwd , Indi Emil: Abstrct. We provided [15] expressions for free choice nets hving distributed choice property which mkes the nets direct product representble. In recent work [14], we gve equivlent syntx for lrger clss of free choice nets obtined by dropping distributed choice property. In both these works, the clsses of free choice nets were restricted by product condition on the set of finl mrkings. In this pper we do wy with this restriction nd give expressions for the resultnt clsses of nets which correspond to free choice synchronous products nd Zielonk utomt. For free choice nets with distributed choice property, we give n lterntive chrcteriztion which uses properties checkble in polynomil time. Free choice nets we consider re 1-bounded, S-coverble, nd re lbelled with distributed lphbets, where S-components of the ssocited S-cover respect the given lphbet distribution. 1 Introduction There re severl different notions of cceptnce to define lnguges for lbelled Petri nets, depending on restrictions on lbelling nd finl mrkings [12]. The lnguge of net with n initil mrking nd finite set of finl mrkings, is clled L-type lnguge [7]. One gol of this work is to give syntx of expressions for L-type lnguges for vrious subclsses of 1-bounded, free choice nets lbelled with distributed lphbets. One dvntge of using distributed lphbet is tht we cn see free choice nets s products of utomt [11], enbling us to write expressions for the nets using components. This lso enbles us to compre expressiveness of nets nd products of utomt. We construct expressions for L-type lnguges of free choice nets vi free choice Zielonk utomt. Consider the net N of Figure 1 with G = {{r 1, s 1 }, {r 2, s 2 }} s its set of finl mrkings, with its decomposition into finite stte mchines in Figure 2. Becuse this net is decomposble, its mrkings cn be written in tuple form, where ech s-component hs plce in the tuple: for exmple G = {(r 1, s 1 ), (r 2, s 2 )}. For the finl mrking {(r 1, s 1 )}, its lnguge is expressed s fsync((b+c), (d+e) ). Similrly, for the finl mrkings {(r 2, s 2 )} equivlent expression is fsync((b + c), (d + e) ). In generl, if the plces involved in the finl mrkings form product, then its lnguge is specified by tking product of component expressions, using free choice Zielonk utomt with product-cceptnce [15]

2 78 PNSE 18 Petri Nets nd Softwre Engineering r 1 s 1 r 1 s 1 r 2 r 3 s 2 s 3 b c d e Fig. 1. Free Choice Net without distributed choice r 2 r 3 s 2 s 3 b c d e Fig. 2. S-cover of the net in Fig. 1 s intermediry. Even though r 1 nd s 2 prticipte in finl mrkings, mrking {r 1, s 2 } does not belong to G, hence set G do not form product. The lnguge L of net system (N, G) cn be described by, fsync((b+c), (d+e) )+fsync((b+ c), (d+e) ). The key ide is bility to express the lnguge of net s union of lnguge of nets hving product condition on finl set of mrkings. This closure under union my not be lwys possible for restricted clsses of lnguges defined over distributed lphbet. For exmple, union of direct product lnguges L 1 = {c, cb} nd L 2 = {c, cbb} defined over Σ 1 = {c, } nd Σ 2 = {c, b} respectively, is not expressible s direct product lnguge. But this lnguge is ccepted by synchronous products : the direct products extended with subsetcceptnce. For the restricted clss of direct product representble free choice nets, with its set of finl mrkings hving product condition-we gve expressions vi product systems with mtchings nd product-cceptnce [15, 16]. As second gol, we develop syntx for free choice nets with distributed choice, now extended with subset-cceptnce. For net in this clss lso, its lnguge cn be expressed s union of lnguges ccepted by product system with mtchings nd product-cceptnce. This union is ccepted by product systems with mtching nd extended with subset-cceptnce ( free choice synchronous products ). As third contribution, we develop n lternte chrcteriztion of this clss of nets, vi free choice Zielonk utomt with product-moves. Lnguge equivlent expressions for 1-bounded nets hve been given by Grbowski [5], Grg nd Rgunth [4] nd other uthors [8], where renming opertor hs been used in the syntx to dismbigute synchroniztions. We hve chosen to not use this opertor nd to lso exploit the S-decompositions of nets. The syntx for smller sublclsses of nets such mrked grphs nd free choice nets with initil mrkings s feedbck vertex set hs been given erlier [9, 13]. Rest of the pper is orgnized s follows. In the next section, we begin with preliminries on distributed lphbets nd nets. In Section 3 we define product systems with globls nd subset-cceptnce, nd show tht their lnguges cn be expressed s union of lnguges ccepted by product systems with globls nd product-cceptnce. The following section reltes these product systems to nets. In Section 5 we develop syntx of expressions for product systems with subset

3 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 79 cceptnce, nd next section estblishes the correspondence between vrious clsses of product systems nd expressions. In lst section we conclude, with overview of estblished correspondences between ll three formlisms. 2 Preliminries Let Σ be finite lphbet nd Σ be the set of ll words over lphbet Σ, including the empty word ε. A lnguge over n lphbet Σ is subset L Σ. The projection of word{ w Σ to set Σ, denoted s w, is defined by: (σ ε = ε nd (σ) = ) if, σ if /. Given lnguges L 1, L 2,..., L m, their synchronized shuffle L = L 1... L m is defined s: w L iff for ll i {1,..., m}, w Σi L i. Definition 1 (Distributed Alphbet). Let Loc denote the set {1, 2,..., k}. A distribution of Σ over Loc is tuple of nonempty sets (Σ 1, Σ 2,..., Σ k ) with Σ = 1 i k Σ i. For ech ction Σ, its loctions re the set loc() = {i Σ i }. Actions Σ such tht loc() = 1 re clled locl, otherwise they re clled globl. A globl ction is globl in the loctions in which it occurs. For set S let (S) denote the set of ll its susbets. For singleton sets like {p}, sometimes we my write it s p. 2.1 Nets Definition 2. A lbelled net N is tuple (S, T, F, λ), where S is set of plces, T is set of trnsitions lbelled by the function λ : T Σ nd F (T S) (S T ) is the flow reltion. Elements of S T re clled nodes of N. Given node z of net N, set z = {x (x, z) F } is clled pre-set of z nd z = {x (z, x) F } is clled post-set of z. Given set Z of nodes of N, let Z = z Z z nd Z = z Z z. We only consider nets in which every trnsition hs nonempty pre- nd postset. For ll ctions in Σ let T = {t t T nd λ(t) = }. We re only interested in 1-bounded nets, where plce is either mrked or not mrked. Hence we define mrking of net s subset of its plces. Definition 3. A lbelled net system is tuple (N, M 0, G) where N = (S, T, F, λ) is lbelled net with M 0 S s its initil mrking nd set of mrkings G (S). A trnsition t is enbled in mrking M if ll plces in its pre-set re mrked by M. In such cse, t cn be fired to produce the new mrking M = (M \ t) t nd, we write this s M t M or M λ(t) M.

4 80 PNSE 18 Petri Nets nd Softwre Engineering A firing sequence λ(t 1 )λ(t 2 )... is defined by composition of lbels of trn- t sition sequence t 1 t 2... fired from M 0 i.e., M 1 t 0 2 M1.... In such firing sequence, we sy tht M j is rechble from M i, for every i j. We sy net system (N, M 0 ) is live if, for every rechble mrking M nd every trnsition t, there exists mrking M rechble from M which enbles t. Definition 4. For lbelled net system (N, M 0, G), its lnguge is defined s Lng(N, M 0, G) = {λ(σ) Σ σ T σ nd M 0 M, for some M G}. Net Systems nd its components Here we define components of net. Our notion of component does not require strong connectedness nd so it is different from notion of S-component in [3], nd therefore our notion of S-cover lso differs from theirs. Definition 5. Let N = (S X, T X, F (X X)) be subnet of net N = (S, T, F ), generted by nonempty set X of nodes of N. Subnet N is clled component of N if, For ech plce s of X, s, s X (the pre- nd post-sets re tken in N), For ll trnsitions t T, we hve t = 1 = t (N is n S-net [3]), Under the flow reltion, N is connected. A set C of components of net N is clled S-cover for N, if every plce of the net belongs to some component of C. A net is covered by components if it hs n S-cover. Fix distribution (Σ 1, Σ 2,..., Σ k ) of Σ. We define s-decomposition [6] of net into sequentil components. Definition 6. A lbelled net N = (S, T, F, λ) is clled S-decomposble if, there exists n S-cover C for N, such tht for ech T i = {λ 1 () Σ i }, there exists S i such tht the induced component (S i, T i, F i ) is in C. Now from S-decomposbility we get n S-cover for net N, since there exist subsets S 1, S 2,..., S k of plces S, such tht S = S 1 S 2... S k nd S i S i = T i, such tht the subnet (S i, T i, F i ) generted by S i nd T i is n S-net, where F i is the induced flow reltion from S i nd T i. If net (S, T, F, λ) is 1-bounded nd S-decomposble then mrking cn be written s k-tuple from its component plces S 1 S 2... S k. We give below the product condition on the set of finl mrkings of net system which is known [17, 11] to restrict clsses of lnguges. Definition 7. An S-decomposble lbelled net system with product-cceptnce (N, M 0, G) is n S-decomposble lbelled net N = (S, T, F, λ) with n initil mrking M 0 nd set of mrkings G (S), which is product: if q 1, q 2,... q k G nd q 1, q 2,... q k G then {q 1, q 1} {q 2, q 2}... {q k, q k } G. Let t be trnsition in T. Then by S-decomposbility pre-plce nd post-plce of t belongs to ech S i for ll i in loc(). Let t[i] denote the tuple p,, p such tht (p, t), (t, p ) F i, for p, p P i for ll i in loc().

5 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets Free choice nets nd their properties Let x be node of net N. The cluster of x, denoted by [x], is the miniml set of nodes contining x such tht if plce s [x] then s is included in [x], nd if trnsition t [x] then t is included in [x]. The set of ll -lbelled trnsitions long with plces r 1 nd s 1 form cluster of the net shown in Figure 4. Definition 8 (Free choice nets [3]). A cluster C is clled free choice (FC) if ll trnsitions in C hve the sme pre-set. A net is clled free choice if ll its clusters re free choice. In lbelled net N, for free choice cluster C = (S C, T C ) define the - lbelled trnsitions C = {t T C λ(t) = }. If the net hs n S-decomposition then we ssocite post-product π(t) = Π i loc() (t S i ) with every such trnsition t. This is well defined since by the S-net condition every trnsition will hve t most one post-plce in S i. Let post(c ) = π(t). We lso define t C the post-projection of the cluster C [i] = C S i nd the post-decomposition postdecomp(c ) = Π i loc() C [i]. Clerly post(c ) postdecomp(c ). The following definition from [16, 15] provides the wy to direct product representbility. Definition 9 (distributed choice property). An S-decomposble free choice net N = (S, T, F, λ) is sid to hve distributed choice property (DCP) if, for ll in Σ nd for ll free choice clusters C of N, postdecomp(c ) post(c ). r 1 s 1 r 1 s 1 r 2 r 3 s 2 s 3 b c d e Fig. 3. Lbelled Free Choice Net system with distributed choice 2 2 r s r 3 s 3 b c d e Fig. 4. S-cover of the net in Fig. 3 Exmple 1 (Free choice net system without distributed choice nd hving productcceptnce). Consider distributed lphbet Σ = (Σ 1 = {, b, c}, Σ 2 = {, d, e}) nd the lbelled net system N shown in Figure 1 nd lbelled over Σ. Its (only

6 82 PNSE 18 Petri Nets nd Softwre Engineering possible) S-cover hving two S-components with sets of plces S 1 = {r 1, r 2, r 3 } nd S 2 = {s 1, s 2, s 3 } respectively, is given in Figure 2. For the cluster C of r 1, we hve the set of -lbelled trnsitions C = {t 1, t 2 } with its post-projections C [1] = {r 2, r 3 } nd C [2] = {s 2, s 3 }. So we get postdecomp(c ) = {(r 2, s 2 ), (r 2, s 3 ), (r 3, s 2 ), (r 3, s 3 )}. The post-products re π(t 1 ) = {(r 2, s 2 )} nd π(t 2 ) = {(r 3, s 3 )} so post(c ) = {(r 2, s 2 ), (r 3, s 3 )}. Since postdecomp(c ) post(c ), this cluster does not hve distributed choice, so the net system does not hve it. With the set of finl mrkings {(r 1, s 1 ), (r 1, s 2 ), (r 2, s 1 )(r 2, s 2 )} stisfying product condition, the lnguge L p ccepted by this net system is r [ε + + b + d] where r = ((bd + db) + (ce + ec)). Exmple 2 (Free choice net system without distributed choice nd not stisfying product condition of the set of finl mrkings). Consider the net system of Exmple 1 whose underlying net is shown in Figure 1. With set of finl mrkings {(r 1, s 1 ), (r 2, s 2 )}, which do not stisfy product condition, the lnguge L s ccepted by this net system is r [ε + ] where r = ((bd + db) + (ce + ec)). Exmple 3 (A net with distributed choice property nd product cceptnce condition). Consider the lbelled net system (N, (r 1, s 1 ), G)) of Figure 3, defined over distributed lphbet Σ = (Σ 1 = {, b, c}, Σ 2 = {, d, e}), nd where G = {(r 1, s 1 ), (r 1, s 2 ), (r 2, s 1 ), (r 2, s 2 )} is the set of finl mrkings stisfying product condition. Its two S-components with sets of plces S 1 = {r 1, r 2, r 3 } nd S 2 = {s 1, s 2, s 3 }, re shown in Figure 4. For cluster C of r 1, we hve C = {t 1, t 2, t 3, t 4 }, C [1] = {r 2, r 3 } nd C [2] = {s 2, s 3 }, hence postdecomp(c ) = {(r 2, s 2 )(r 2, s 3 )(r 3, s 2 )(r 3, s 3 )}. The post-products for trnsitions re π(t 1 ) = {(r 1, s 2 )}, π(t 2 ) = {(r 2, s 3 )}, π(t 3 ) = {(r 3, s 2 )}, π(t 4 ) = {(r 3, s 3 )}, giving us post(c ) = {(r 2, s 2 )(r 2, s 3 )(r 3, s 2 )(r 3, s 3 )}. Therefore we hve postdecomp(c ) = post(c ). For ll other clusters this holds trivilly, becuse ech of them hve only one trnsition nd only one post-plce, hence the net hs distributed choice. Lnguge L 3 ccepted by the net system is r [ε + + (b + c) + (d + e)] where r = ((bd + db) + (be + eb) + (cd + dc) + (ce + ec)). Exmple 4 (A net with distributed choice nd subset-cceptnce). Consider the net system of Exmple 3, with the underlying net shown in Figure 3 with set of finl mrkings {(r 1, s 1 ), (r 2, s 2 )}. The lnguge L 4 ccepted by this net system is r [ε + ] where r = ((bd + db) + (be + eb) + (cd + dc) + (ce + ec)). 3 Product systems We define product systems over fixed distribution (Σ 1, Σ 2,..., Σ k ) of Σ. First we define sequentil systems. Definition 10. A sequentil system over set of ctions Σ i is finite stte utomton A i = P i, i, G i, p 0 i where P i re clled sttes, G i P i re finl sttes, p 0 i P i is the initil stte, nd i P i Σ i P i is set of locl moves.

7 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 83 For locl move t = p,, p of i stte p is clled pre-stte sometimes denoted by pre(t) nd p is clled post-stte of t, sometimes denoted by post(t). This nottion is extended to set of locl moves s well. Let i denote the set of ll -lbelled moves in the sequentil system A i. The lnguge of sequentil system is defined s usul. Definition 11. Let A i = P i, i, G i, p 0 i be sequentil system over lphbet Σ i for 1 i k. A product system A over the distribution Σ = (Σ 1,..., Σ k ) is tuple A 1,..., A k. Let Π i Loc P i be the set of product sttes of A. We use R[i] for the projection of product stte R in A i, nd R I for the projection to I Loc. The initil product stte of A is R 0 = (p 0 1,..., p 0 k ). The finl sttes of A re denoted by G. 3.1 Direct products Let = Π i loc() i for the product system A. The set of ll globl moves of A is = Σ. This move is globl within the set of component sequentil mchines where lbel occurs. Then for globl move g in, we define its set of pre-sttes pre(g) s the set of pre-sttes of ll its component -moves. The set of post-sttes post(g) s the set of post-sttes of ll its component -moves; nd, let g[i] denote its i-th component locl -move belonging to A i, for ll i in loc(). When finl sttes of A re G = Π i Loc G i then we sy A is product system with product-cceptnce. These systems re clled direct products in [11]. And, if G Π i Loc G i then A is product system with subset-cceptnce, these systems re clled synchronous products in [11]. The runs of product system A over some word w re described by ssociting product sttes with prefixes of w: the empty word is ssigned initil product stte R 0, nd for every prefix v of w, if R is the product stte reched fter v nd Q is reched fter v where, for ll j loc(), R[j],, Q[j] j, nd for ll j / loc(), R[j] = Q[j]. A run of product system over word w is sid to be ccepting if the product stte reched fter w is in G. We define the lnguge Lng(A) of product system A, s the set of words on which the product system hs n ccepting run. The set of lnguges ccepted by direct (resp. synchronous) products is clled direct (resp. synchronous) product lnguges. We use chrcteriztion from [11] of lnguges ccepted by direct products. Proposition 1. L is direct product lnguge defined over distributed lphbet Σ iff L = {w Σ i {1,..., k}, u i L such tht w Σi = u i Σi }. If L = Lng(A) for direct product A = A 1,..., A k defined over distributed lphbet Σ then L = Lng(A 1 )... Lng(A k ). We lso use chrcteriztion of synchronous product lnguges [11]. Proposition 2. A lnguge over distributed lphbet Σ is ccepted by product system with subset-cceptnce if nd only if it cn be expressed s finite union of direct product lnguges.

8 84 PNSE 18 Petri Nets nd Softwre Engineering Definition 12 (PS-mtchings [15]). For globl Σ, mtching() is subset of tuples Π i loc() P i such tht for ll i in loc(), projection of these tuples is the set of ll pre-sttes of -moves in i, nd if stte p P i ppers in one tuple, it does not pper in nother tuple. We sy product stte R is in mtching() if its projection R loc() is in the mtching. A product system is sid to hve mtching of lbels if for ll globl Σ, there is suitble mtching(). Such system is denoted by PS-mtchings. We hve PS-mtchings with product-cceptnce, if the set of finl product sttes of it is product of finl sttes of component mchines, or PS-mtchings with subset-cceptnce, if the set of finl product sttes is subset of product of finl sttes of individul components. A run of PS-mtchings A is sid to be consistent with mtching of lbels [15] if for ll globl ctions nd every prefix of the run R 0 v R Q, the pre-sttes R loc() re in the mtching. Consistency of mtchings is behviourl property nd to check if PSmtchings A hs it nd cn be done in PSPACE [15, 16]. Following property from [15] is used to cpture free choice property. Definition 13 (conflict-equivlent mtchings for PS-mtchings). In product system, we sy the locl move p,, q 1 i is conflict-equivlent to the locl move p,, q 1 j, if for every other locl move p, b, q 2 i, there is locl move p, b, q 2 j nd, conversely, for moves from p there re corresponding outgoing moves from p. For globl ction, its mtching() is clled conflict-equivlent mtching, if whenever p, p re relted by the mtching(), their outgoing locl -moves re conflict-equivlent. strt b r 1 strt c d r 2 r 3 s 2 s 3 A 1 A 2 s 1 e Figure 5, shows product system defined over distributed lphbet Σ = (Σ 1 = {, b, c}, Σ 2 = {, d, e}). It hs two components A 1,nd A 2 with finl sttes G 1 = {r 1, r 2} nd, G 2 = {s 1, s 2}, respectively. Fig. 5. Product system (A 1, A 2) Exmple 5 (Product system with mtchings). Consider product system of Figure 5 nd reltion mtching() = {(r 1, s 1 )} reltion. This mtching is conflictequivlent nd the system is consistent with this mtching reltion. We hve PS-mtchings A = (A 1, A 2 ) with product cceptnce condition, if its set of finl sttes is G 1 G 2. With the set of finl sttes s {(r 1, s 1 ), (r 2, s 2 )} G 1 G 2, we hve PS-mtchings B = (A 1, A 2 ) hving subset-cceptnce.

9 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 85 Lemm 1 presents lnguge not ccepted by ny direct product. Lemm 1. The lnguge L 4 = {(bd + db + be + eb + ce + ec + cd + dc) (ε + )} from Exmple 4 is not ccepted by ny direct product. We know tht the clss of synchronous product lnguges is strictly lrger thn the clss of direct product lnguges [11]. With the mtching reltions this reltionship is preserved. The PS-mtchings B of Exmple 5 ccepts lnguge L 4 which by Lemm 1, is not ccepted by ny direct product. Hence, the clss of lnguges ccepted by PS-mtchings with subset cceptnce condition, is strictly lrger, thn the clss of lnguges ccepted by PS-mtchings with productcceptnce. However, using Proposition 2 we hve the following chrcteriztion of PSmtchings with subset-cceptnce. Corollry 1. A lnguge L is ccepted by product system with subset-cceptnce nd, hving conflict-equivlent nd consistent mtchings if nd only if L cn be expressed s finite union of lnguges ccepted by product system with productcceptnce nd, hving conflict-equivlent nd consistent mtchings. Lemm 2 presents lnguge not ccepted by ny synchronous product. Lemm 2. The lnguge L s = {bd, db, ce, ec} (ε + ) of Exmple 2 is not synchronous product lnguge. So we hve lnguge L s which is not ccepted by ny PS-mtchings with subsetcceptnce. This motivtes the bigger clss of utomt over distributed lphbets, which we discuss next. 3.2 Product systems with globls Let A = A 1,..., A k, be product system over the distribution Σ = (Σ 1,..., Σ k ) nd, let globls() be subset of its globl moves, nd -globl denote n element of globls(). Definition 14. A product system with globls (PS-globls) is product system with reltions globls(), for ech globl ction in Σ. With subset-cceptnce condition these systems re clled Asynchronous (or Zielonk) utomton [17, 11]. Runs of product system with globls, re defined in the sme wy s for the direct products, with n dditionl requirement of Π j loc() ( R[j],, Q[j] globls(), to be stisfied when R Q is to be tken. With buse of nottion sometimes we use pre() to denote the set {R Q, R Q}. Following property [14] is used to cpture free choiceness, in product systems with globls. Definition 15 (sme source property). A product system with globls hve sme source property if, ny two globl moves shre pre-stte then their sets of pre-sttes re sme.

10 86 PNSE 18 Petri Nets nd Softwre Engineering Exmple 6 (Product system with globls). Consider the product system of Figure 5. Let globls() = { ((r 1 r2 ), (s 1 s2 )), ((r 1 r3 ), (s 1 s3 ))}. This system hs sme source property. With the given globls() we hve PS-globls C = (A 1, A 2 ) with product cceptnce condition, if its set of finl sttes is G 1 G 2. And, for the set of finl sttes {(r 1, s 1 ), (r 2, s 2 )} G 1 G 2, we hve PS-globls D = (A 1, A 2 ) with subset-cceptnce. The lnguge L s = {bd, db, ce, ec} (ε + )} of Lemm 2, is ccepted by product system with globls D of Exmple 6 with sme source property. Product systems with globls nd product-cceptnce re not considered in [11]. We give in Lemm 3, chrcteriztion of clss of lnguges ccepted by product systems with globls nd hving subset-cceptnce, in terms of PSglobls nd product-cceptnce. Lemm 3. A lnguge is ccepted by PS-globls with subset-cceptnce if nd only if it cn be expressed s finite union of lnguges ccepted by PS-globls with product-cceptnce. In the construction, trnsition structure of locl components is preserved, nd so the globl moves, so we hve Corollry 2, which is used to get syntx for product systems with subset cceptnce condition. Corollry 2. A lnguge L is ccepted by PS-globls with subset-cceptnce nd hving sme source property if nd only if L cn be expressed s finite union of lnguges ccepted by PS-globls with product-cceptnce nd sme source property. In product system with globls nd hving sme source property, globl moves for n ction cn be prtitioned into different comprtments : two globl -moves belong to sme comprtment if they hve the sme set of pre-sttes. For ny -globl g of sme source comprtment SS, we ssocite trget- ) = {π(g) g SS }. [i] = post( SS ) P i nd, [i]. configurtion π(g) = Π i loc() post(g) P i. Let post( SS We define post-projection of comprtment s SS post-decomposition s postdecomp( SS ) = Π i loc() SS Definition 16. A product system with globls nd hving sme source property, is sid to hve product moves property, if for ll in Σ, nd for ll sme source comprtments SS of -globls, postdecomp( SS ) post( SS ). Product systems C nd D of Exmple 6 do not hve product moves property. Product system of Exmple 7 hs product moves property. Exmple 7 (Product system with globls nd product moves property). Consider product system A of Exmple 5 where the set of finl sttes is G 1 G 2. With globls() = { ((r 1 r2 ), (s 1 s2 )), ((r 1 r2 ), (s 1 s3 )), ((r 1 r3 ), (s 1 s 2 )) ((r 1 r3 ), (s 1 s3 )) } reltion, we hve PS-globls A which hs product moves property. This lso hs sme source property.

11 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 87 Now consider the product system B of Exmple 5, with {(r 1, s 1 ), (r 2, s 2 )} G 1 G 2 s its finl sttes, nd hving the globls() reltion s bove, we get PS-globls B with subset cceptnce condition, hving product moves nd sme source property. A product system with globls is sid to be live, if for ny globl move g nd ny rechble product stte R, there exists product stte Q such tht g is enbled t Q. 3.3 Relting product systems with mtchings nd globls First we show in Theorem 1 how to construct product system with consistent nd conflict-equivlent mtchings from PS-globls with sme source property. Theorem 1. Let Σ be distributed lphbet nd A be product system with globls defined over it.then we cn construct product system B with mtchings, liner in the size of product system A with globls such tht, 1. if A hs sme source property then B hs conflict-equivlent mtchings, 2. in ddition, if A is live then () B is consistent with mtchings, nd (b) Lng(A) = Lng(B). Now, from PS-mtchings with consistent nd conflict-equivlent mtchings we construct product system with globls hving sme source property. Theorem 2. Let Σ be distributed lphbet nd let B be product system with conflict equivlent nd consistent mtchings. Then for the lnguge of B we cn construct product system A with globls over Σ hving sme source nd product moves property. The constructed product system A with globls is exponentil in the size of system B hving mtching of lbels. 4 Nets nd Product systems We first present generic construction of 1-bounded S-coverble lbelled net systems, from product systems with globls. Definition 17 (PS-globls to nets). Given PS-globls A = A 1,..., A k over distribution Σ, net system (N = (S, T, F, λ), M 0, G) is constructed s follows: The set of plces is S = i P i, The set of trnsitions T = globls(), for ll ctions in Σ. Define T i = {λ 1 () Σ i }. The lbelling function λ lbels by ction the trnsitions in globls(). The flow reltion is F = {(p, g), (g, q) g T, g[i] = p,, q, i loc()}, define F i s its restriction to the trnsitions T i for i loc(). Let M 0 = {p 0 1,..., p 0 k }, be the initil product stte nd G = G s the set of finl globl sttes.

12 88 PNSE 18 Petri Nets nd Softwre Engineering We get one to one correspondence between rechble sttes of product system nd rechble mrkings of nets becuse the set of trnsitions of resultnt net is sme s the set of globl moves in the product system, nd construction preserves pre s well s post plces. Lemm 4. The constructed net system N from PS-globls A, s in Definition 17, is S-coverble nd Lng(N, M 0, G) = Lng(A). The size of constructed net is liner in the size of product system. Applying the generic construction bove to product systems with sme source property, we get free choice net, becuse ny two globl moves hving sme set of pre-plces re put into one cluster. Theorem 3. Let (N, M 0, G) be the net system constructed from PS-globls A s in Definition 17. If A hs sme source property then N is free choice net, In ddition if A hs product moves property, then N hs distributed choice. In the construction, if the product system hs subset-cceptnce then we get net with set of finl mrkings, which my not hve product condition. Since A hs subset-cceptnce, we generlize the results obtined in [14]. For the product system D of Exmple 6, ccepting lnguge L s we cn construct the net system of Exmple 2. In the cse tht the product system A hs mtchings, trnsitions of net constructed re rechble globl moves of system A [15, 16]. Even if net is 1-bounded nd S-coverble ech component need not hve only one token in it, but when we sy tht 1-bounded net is S-coverble we ssume tht ech component hs one token. For live nd 1-bounded free choice nets, such S-covers cn be gurnteed [3]. Now we describe liner-size construction of product system from net which is S-coverble. Definition 18 (nets to PS-globls). Given 1-bounded lbelled nd n S- coverble net system (N, M 0, G), with N = (S, T, F, λ) the underlying net nd N i = (S i, T i, F i ) the components in the S-cover, for i in {1, 2,..., k}, we define product system A = A 1,..., A k, s follows. Tke P i = S i, nd p 0 i the unique stte in M 0 P i. Define locl moves i = { p, λ(t), p t T i nd (p, t), (t, p ) F i, for p, p P i }. So we get sequentil systems A i = P i, i, p 0 i, nd the product system A = A 1, A 2,..., A k over lphbet Σ. Globl moves re globls() = {Π i loc() t[i] t T }. And, the set of finl sttes is G = G. Lemm 5. From net system N with finl set of mrkings, the construction of the PS-globls A in Definition 18 bove preserves lnguge. The product system A is liner in the size of net, nd product system hs subset-cceptnce. For ech -lbelled trnsition of the net we get one globl -move in the product system hving sme set of pre-plces nd post-plces. And, for ech globl - move in product system we hve n -lbelled trnsition in the net hving sme

13 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 89 pre nd post-plces. We get one to one correspondence between rechble sttes of product system nd rechble mrkings of the net we strted with. Therefore, if we begin with free choice net, we get sme source property in the product system obtined. And, for ech trnsition in the net we hve globl trsition hence, A hs product moves property if the net hs distributed choice. Theorem 4. Let (N, M 0, G) be 1-bounded, nd n S-coverble lbelled net with set of finl mrkings G. Then if N hs free choice property, then constructed product system A with globls, hs sme source property, in ddition, if the net hs distributed choice, then A hs product moves. In construction of Definition 18, we strt with net hving distributed choice nd finl set of mrkings then we get product system with mtching with subset cceptnce condition. Note tht in this cse we do not hve to construct globls [15, 16]. For the net system of Exmple 2 nd ccepting lnguge L s we cn construct the product system D of Exmple 6. Therefore, we generlize the results from [15, 16]. Theorem 5. For 1-bounded, S-coverble lbelled net hving distributed choice nd given with set of finl mrkings. Then one cn construct product system with conflict-equivlent nd consistent mtchings nd hving subset-cceptnce. Given below is the reverse direction. Theorem 6. For product system with conflict-equivlent, consistent mtchings, nd subset-cceptnce, we get lnguge equivlent free choice net with distributed choice nd hving set of finl mrkings. 5 Expressions First we define regulr expressions nd its derivtives. 5.1 Regulr expressions nd their properties A regulr expression over lphbet Σ i such tht constnts 0 nd 1 re not in Σ i is given by: s ::= 0 1 Σ i s 1 s 2 s 1 + s 2 s 1 The lnguge of constnt 0 is nd tht of 1 is {ε}. For symbol Σ i, its lnguge is Lng() = {}. For regulr expressions s 1 + s 2, s 1 s 2 nd s 1, its lnguges re defined inductively s union, conctention nd Kleene str of the component lnguges respectively. As mesure of the size of n expression we will use wd(s) for its lphbetic width the totl number of occurrences of letters of Σ in s.

14 90 PNSE 18 Petri Nets nd Softwre Engineering For ech regulr expression s over Σ i, let Lng(s) be its lnguge nd its initil ctions form the set Init(s) = { v Σi nd v Lng(s) } which cn be defined syntcticlly. We cn syntcticlly check whether the empty word ε Lng(s). We use derivtives of regulr expressions which re known since the time of Brzozowski [2], Mirkin [10] nd Antimirov [1]. Definition 19 (Antimirov derivtives [1]). Given regulr expression s nd symbol, the set of prtil derivtives of s with respect to, written Der (s) re defined s follows. Der (0) = Der (1) = Der (b) = {ε} if b =, otherwise Der (s 1 + s 2 ) = Der (s 1 ) Der (s 2 ) Der (s 1) = { Der (s 1 ) s 1 Der (s Der (s 1 s 2 ) = 1 ) s 2 Der (s 2 ), if ε Lng(s 1 ) Der (s 1 ) s 2 otherwise Inductively Der w (s) = Der w (Der (s)). The set of ll prtil derivtives Der(s) = Der w (s), where Der ε (s) = {s}. w Σ i We hve derivtives Der (b + c) = {b, c} nd Der ((b + c)) = {b + c}. A derivtive d of s with ction Init(d) is clled n -site of s. An expression is sid to hve equl choice if for ll, its -sites hve the sme set of initil ctions. For set D of derivtives, we collect ll initil ctions to form Init(D). Two sets of derivtives hve equl choice if their Init sets re sme. As in [15] we put together derivtives which my correspond to the sme stte in finite utomton. Definition 20 ([15]). Let s be regulr expression nd L = Lng(s). For set D of -sites of regulr expression s nd n ction, we define the reltivized lnguge L D = {xy xy L, d Der x (s) D, d Der y (d) with ε Lng(d )}, nd the prefixes Pref D (L) = {x xy L D }, nd the suffixes Suf D (L) = {y xy L D }. We sy tht the derivtives in set D -bifurcte L if L D = Pref D (L) Suf D (L). We use prtitions [15] of the -sites of s into blocks such tht ech block (tht is, element of the prtition) -bifurctes L. For n ction, let Prt (s) denote such prtition. In ddition to thinking of blocks of the prtition s plces of n utomton, we cn think of blocks nd their effects s locl moves. Definition 21 ([14]). Given n ction, set of -sites B of regulr expression s nd specified set of -effects E Der (B), we define the reltivized lnguges L (B,E) = {xy L d Der x (s) B, d Der (d) E, nd d Der y (d ) with ε Lng(d )}.

15 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 91 We define the prefixes P ref (B,E) Suf (B,E) L (B,E) (L) = {y xy L (B,E) (L) = {x xy L (B,E) } nd the suffixes }. We sy tht tuple (B, E) -funnels L if = P ref B (L) Suf (B,E) (L). In such pir (B, E), if B is block in the Prt (s) nd E is nonempty subset of -effects of B, then it is clled s n -duct. For n -duct (B, E), we define its set of initil ctions Init(B, E) s Init(B, E) = Init(B), cll B s its pre-block nd cll E s its post-effect. For ll i in loc() let -ducts(s i ) denote the set of ll -ducts of regulr expression s i. For ny two - ducts (B, E) nd (B, E ) in -ducts(s i ), define (B, E) = (B, E ) if B = B nd E = E. Given n -duct d = (B, E) its post-effect E is sometimes denoted by d nd its pre-block B cn be denoted s d. For collection of ducts z, the set of ll their post-effects (resp. pre-blocks) is denoted s z (resp. z). In similr wy, we define the set of post-effects of n -cble D, s D = {D[i] i loc()} nd its set of pre-blocks s D = { D[i] i loc()}. 5.2 Connected expressions over distributed lphbets The syntx of connected expressions defined over distribution (Σ 1, Σ 2,..., Σ k ) of lphbet Σ is given below. e ::= 0 fsync(s 1, s 2,..., s k ), where s i is regulr expression over Σ i When e = fsync(s 1, s 2,..., s k ) nd I Loc, let the projection e I = Π i I s i. A connected expression e = fsync(s 1, s 2,..., s k ) over Σ, is sid to hve equl choice if, for ll globl ctions in Σ nd for ny i, j in loc(), ny -site of s i hve sme Init set s of ny -site of s j. For connected expression defined over distributed lphbet its derivtives nd semntics were given in [15], nd re given s follows. For the connected expression 0, we hve Lng(0) =. For the connected expression e = fsync(s 1,..., s k ), its lnguge is Lng(e) = Lng(s 1 ) Lng(s 2 )... Lng(s k ). The definitions of derivtives extended to connected expressions [15] is s follows. The expression 0 hs no derivtives on ny ction. Given n expression e = fsync(s 1, s 2,..., s k ), its derivtives re defined by induction using the derivtives of the s i on ction : Der (e) = {fsync(r 1,..., r k ) i loc(), r i Der (s i ); otherwise r j = s j }. 5.3 Connected expressions with pirings We recll some properties of connected expressions over distribution. which were [15], useful in construction of free choice nets. Definition 22 ([15]). Let e = fsync(s 1, s 2,..., s k ) be connected expression over Σ. For globl ction, piring() is subset of tuples Π i loc() Prt (s i ) such tht the projection of these tuples includes ll the blocks of Prt (s i ), nd

16 92 PNSE 18 Petri Nets nd Softwre Engineering if block of Prt (s j ), j loc() ppers in one tuple of the piring, it does not pper in nother tuple. (For convenience we lso write piring() s subset of Π i loc() Der(s i ) which respects the prtition.) We cll piring() equl choice if for every tuple in the piring, the blocks of derivtives in the tuple hve equl choice. Derivtives for connected expressions with piring re defined s follows. A derivtive fsync(r 1,..., r k ) is in piring() if there is tuple D piring() such tht r i D[i] for ll i loc(). For convenience we my write derivtive s n element of piring(). Expression e is sid to hve (equl choice) piring of ctions if for ll globl ctions, there exists n (equl choice) piring(). Expression e is sid to be consistent with piring of ctions if every rechble -site d Der(e) is in piring(). Expression e is sid to hve equl choice property if it hs equl choice piring of ctions for ll globl ctions in Σ. Given connected expression e with pirings, checking if it is consistent with piring of ctions cn be done in PSPACE [15, 16]. 5.4 Connected expression with cbles (CE-cbles) We give some properties of connected expressions over distribution, which extend the notion of piring, nd hve been relted to product systems with globls [14]. Definition 23 ([14]). Let e = fsync(s 1, s 2,..., s k ) be connected expression over Σ. For ech ction in Σ, we define the set -cbles(e) = Π i loc() - ducts(s i ). For n ction, n -cble is n element of the set -cbles(e). We sy tht block B of Prt (s i ) ppers in n -cble D if there exists j in loc() nd there exists Y Der (B) such tht D[j] = (B, Y ), i.e. if B is pre-block of component -duct of D. For ny -cble D, its set of pre-blocks D = i loc() {B i B i ppers in D}, i.e. the set of pre-blocks of ll the of its component -ducts. For expression e, let cbles() -cbles(e), such tht for ll i in loc() 1. Ech block B in Prt (s i ), ppers in t lest one -cble of it. 2. for ll (B, E) nd (B, E ) in -ducts(s i ) with (B, E) (B, E ), if B = B = E E =, i.e. if ny two distinct -ducts of s i ppering in it hve sme pre-block then, they must hve disjoint post-effects. A connected expression with cbles (CE-cbles) is connected expression with reltions cbles() of it, for ech globl ction in Σ. Derivtives of connected expression with cbles re [14] defined s follows. The CE-cbles 0 hs no derivtives on ny ction. For expression e = fsync(s 1, s 2,..., s k ), we define its derivtives on ction, by induction, using -ducts nd the derivtives of s j s: Der (e) = {fsync(r 1, r 2,..., r k ) r j Der (s j ) if there exists n -cble D in cbles() such tht, for ll j in loc(), s j is in pre-block B j nd r j is in X j of -duct D[j] = (B j, X j ) of s j, otherwise r j = s j }.

17 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 93 We use the word derivtive for expressions such s d = fsync(r 1,..., r k ) given bove. The rechble derivtives re Der(e) = {d d Der x (e), x Σ }. A CEcbles is sid to hve equl source property if for ny pir of two cbles shring common pre-block hve sme set of pre-blocks. Lnguge of e is the set of words over Σ defined using derivtives s below. Lng(e) = {w Σ e Der w (e) such tht ε Lng(r i ), where e [i] = r i }. So we cn hve next derivtive on ction, if it is llowed by the cbles() reltion. The number of derivtives my be exponentil in k. Exmple 8 (CE-pirings nd CE-cbles). Let Σ = (Σ 1 = {, b, c}, Σ 2 = {, d, e}) be distributed lphbet. Let e = fsync((b + c), (d + e) ) be connected expression defined over Σ. Here, r 1 = (b + c) nd s 1 = (d + e). The set of derivtives of r 1 is Der(r 1 ) = {r 1, r 2 = br 1, r 3 = cr 1 } nd for s 1 it is Der(s 1 ) = {s 1, s 2 = ds 1, s 3 = es 1 }. We hve -sites(r 1 ) = r 1 nd Prt (r 1 ) = {D = r 1 }. Similrly, -sites(s 1 ) = r 1 nd Prt (s 1 ) = {D = s 1 }. The only possible piring reltion is piring() = {(D, D )}. We hve Der (e) = {fsync(r i, s j ) i, j {2, 3}}. Expression e stisfies equl choice property. Now we ssocite cbling reltion with e. The set of -effects of D is Der (D) = {r 2, r 3 }. The set of -ducts of r 1 is {(D, r 2 ), (D, r 3 ), (D, {r 2, r 3 })}. The set of -effects of D is Der (D ) = {s 2, s 3 } nd the set of -ducts of s 1 is {(D, s 2 ), (D, s 3 ), (D, {s 2, s 3 })}. A possible cbles() reltions for expression e is {((D, r 2 ), (D, s 2 )), ((D, r 3 ), (D, s 3 ))}. See tht ech block in the Prt (r 1 ) nd Prt (s 1 ) ppers t lest once in the cbles() reltion. And two -ducts of r 1 ppering in this reltion, hve sme pre-block D, we hve tht their set of post-effects r 2 nd r 3 re disjoint. This condition lso holds for -ducts of s 1. For both -cbles set of pre-blocks is identicl, therefore cbles() stisfies equl source property. We hve Der (e) = {fsync(r 2, s 2 ), fsync(r 3, s 3 )}, but expression fsync(r 2, s 3 ) is not in Der (e), becuse only post-effect of D contining r 2 is the set {r 2 } nd similrly, only post-effect of D contining s 3 is the set {s 3 } nd there does not exist n -cble with (D, {r 2 }) nd (D, {s 3 }) s its components. We hve Der(e) = {e, (r 2, s 2 ), (r 3, s 3 ), (r 1, s 2 ), (r 1, s 3 ), (r 2, s 1 ), (r 3, s 1 )}. Another such exmple of connected expression with pirings (resp. cbles) is given below. Exmple 9 (CE-pirings). Let e = fsync((b+c), (d+e) ) be connected expression defined over Σ. Let p 1 = (b + c) with lnguge L 1 nd q 1 = (d + e) with lnguge L 2. The set of derivtives re Der(p 1 ) = {p 1, p 2 = bp 1, p 3 = cp 1, p 4 = ε} nd Der(q 1 ) = {q 1, q 2 = dq 1, q 3 = eq 1, q 4 = ε}. The prtitions of -sites is Prt (p 1 ) = {B = {p 1 }} nd Prt (q 1 ) = {B = {q 1 }}. A piring reltion is piring() = {(B, B )} nd wrt to tht Der (e) = {fsync(p i, q j ) i, j {2, 3, 4}}. Expression e hs equl choice property. Now we ssocite cbling reltion with e. The set of -effects of B is Der (B) = {p 2, p 3, p 4 } nd Der (B ) = {q 2, q 3, q 4 }. The set of -ducts for p 1 is {(B, {p 2 }), (B, {p 3 }), (B, {p 2, p 4 }), (B, {p 3, p 4 })(B, {p 2, p 4, p 3 })} nd for q 1

18 94 PNSE 18 Petri Nets nd Softwre Engineering is {(B, q 2 ), (B, q 3 ), (B, {q 2, q 4 }), (B, {q 3, q 4 })(B, {q 2, q 4, q 3 })}. A cbles() reltion is {((B, p 2 ), (B, q 2 )), ((B, p 3 ), (B, q 3 )), ((B, p 2 ), (B, q 2 ))}. Expression e hs equl source property nd its set of derivtives with respect to letter is Der (e) = {fsync(p 2, q 2 ), fsync(p 3, q 3 ), fsync(p 4, q 4 )}. Now we give two new properties of connected expressions. In connected expression with cbles nd hving equl source property, cbles for n globl ction cn be prtitioned into different comprtments : two -cbles belong to sme comprtment if they hve equl source. For ny such -cble D belonging to n equl source comprtment ES of -cbles, we cn ssocite set of its postblocks listed in some order s π(d) = Π i loc() (D χ i ), where χ i = {Prt (s i ) Σ}. Let post(es ) = {π(d) D ES }. We define post-projection of comprtment ES s ES [i] = post(es i ) χ i, nd its post-decomposition s postdecomp(es ) = Π i loc() ES [i]. Following property of connected expressions is relted lter to product-movesproperty of direct products nd hence to distributed-choice of nets. Definition 24 (product derivtives property). A connected expression with cbles nd hving equl source property, is sid to hve product derivtives property, if for ll in Σ, nd for ll equl source comprtments ES of -cbles postdecomp(es ) post(es ). Exmple 10. The connected expression e = fsync((b + c), (d + e) ) of Exmple 8 does not hve product derivtive property with the given cbling reltion {((D, r 2 ), (D, s 2 )), ((D, r 3 ), (D, s 3 ))}. If we ssocite the cbling reltion {((D, r 2 ), (D, s 2 )), ((D, r 3 ), (D, s 3 ), ((D, r 2 ), (D, s 3 )), ((D, r 3 ), (D, s 2 ))} with e then it hs product derivtive property. Definition 25. A connected expression e is ction-live if for ll ctions in Σ, from ny rechble derivtive of e, we cn rech n -derivtive of e. 5.5 Relting connected-expressions with pirings nd with cbles First, we show how connected expressions with equl choice nd consistent pirings cn be seen s connected expression with cbles nd hving equl source nd product-derivtives property. Theorem 7. Let Σ be distributed lphbet nd e be connected expression hving equl choice nd consistent piring of ctions, defined over Σ. Then for the lnguge of e, we cn construct connected expression e with cbles hving equl source nd product derivtives property. The constructed expression e with cbles is exponentil in the size of expression e with pirings. Now we give lnguge preserving construction of connected expression with equl choice nd consistent pirings from CE-cbles hving equl source nd product-derivtives property.

19 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 95 Theorem 8. Let Σ be distributed lphbet nd e be connected expression with cbles defined over it.then we cn construct connected expression e with pirings liner in the size of e. And, if e hs equl source then e hs equl choice property. In ddition, if e is ction-live then if e hs product moves property then e hs consistency of piring. Lng(e) = Lng(e ). 5.6 Sum of Connected Expressions (SCE) We give syntx for sum of connected expressions (SCE) defined over distribution (Σ 1, Σ 2,..., Σ k ) of lphbet Σ. e ::= 0 e e m, where e i is connected expression (CE) over Σ For n SCE e its semntics is given s follows: For the SCE 0, we hve Lng(0) =. For the SCE e = e 1 +e 2,, e m, its lnguge is given s Lng(e) = Lng(e 1 ) Lng(e 2 ) Lng(s m ). The definitions of derivtives extended to SCEs is s given below. The expression 0 hs no derivtives on ny ction. Derivtive of n SCE with respect to letter is defined s: Der (e) = Der (e 1 ) Der (e 2 ) Der (s m ). Inductively Der w (e) = Der w (Der (e)). The set of ll derivtives Der(e) is union of sets of derivtives of e with respect to ll words w in Σi for ll i in {1,..., m}. Definition 26 (SCE with pirings)). An SCE e = e e m where ech e i is CE-pirings, is clled sum of connected expressions with piring (SCEpirings). An SCE-pirings e is sid to hve equl choice property if ech component CE-pirings e i of the sum lso hs it. Exmple 11. The expression e = e 1 + e 2 where e 1 = fsync((b + c), (d + e) ) is the CE-pirings of Exmple 8 nd e 2 = fsync((b + c), (d + e) ) is the CE-pirings of Exmple 9 is n SCE-pirings with equl choice property, s both e 1 nd e 2 hve it. Definition 27 (SCE with cbles)). An SCE e = e e m where ech e i is CE-cbles, then e is clled sum of connected expressions with cbles (SCE-cbles). An SCE-cbles e is sid to hve equl source property if ech component CE-cbles e i of the sum lso hs it. An SCE-cbles e hs product derivtives property if ech component CE-cbles e i of the sum hs it. Exmple 12. The expression e = e 3 +e 4 where e 3 = fsync((b+c), (d+e) ) is the CE-cbles of Exmple 8 nd e 4 = fsync((b + c), (d + e) ) is the CE-cbles of Exmple 9. As n exmple of how derivtives of SCE-cbles from derivtives of SCEpirings differ even while hving identicl components, see tht fsync(r 2, s 3 ) Der (e) (of Exmple 11) but it does not belong to Der (e ).

20 96 PNSE 18 Petri Nets nd Softwre Engineering 6 Connected Expressions nd Product Systems To get product system with globls hving subset-cceptnce, from sum of connected expression, we use n erlier result from [14], where construction of PS-globls with product-cceptnce ws given from CE-cbles. For ech set of derivtives (pre-blocks nd fter-effects), of component regulr expression, we constructed n unique stte of locl component, which gives us product moves property in the constructed product system if we hve product derivtives property for given CE-cbles. Lemm 6 (CE-cbles to PS-globls with product-cceptnce [14]). Let e be CE-cbles, defined over distribution Σ. Then for the lnguge of e, we cn compute PS-globls with product-cceptnce liner in the size of expression e. Further, if e hd equl-source, then system A hs sme source property; nd, if e hd product-derivtives then A hs product moves property. Using Lemm 6, we get PS-globls with subset-cceptnce, from sum of connected expressions. Theorem 9 (SCE-cbles to PS-globls with subset-cceptnce). Let e be n sum of connected expression defined over Σ. Then we cn construct PS-globls A with subset-cceptnce for the lnguge of e. If e hd equl source property, then hs sme source property. In ddition, if e hs product derivtives property then A hs product moves property. Exmple 13. For SCE-cbles e of Exmple 12, we cn construct PS-globls with sme source property nd subset-cceptnce D of Exmple 6, ccepting lnguge L s, using Theorem 9. A lnguge preserving, construction of connected expressions with equl source property, from PS-globls with sme source property nd productcceptnce, ws given in [14]. Since ech locl stte whether source stte or trget stte of locl move is mpped uniquely to set of derivtives of component regulr expression, we hve product-derivtives property for the expression, if the product system hd product-moves property. Lemm 7 (PS-globls with product-cceptnce to CE-cbles [14]). Let Σ be distributed lphbet nd, A be product system with globls nd productcceptnce, defined over Σ. For the lnguge of A, we cn construct connected expression e with cbles, exponentil in the size of the given product system. Further, if product system hs sme source property then connected expression with cbles hs equl source property, in ddition, if it hs product-moves property then connected expression with cbles hs product-derivtives property. Now using Lemm 7, we get sum of connected expressions for PS-globls with subset-cceptnce.

21 Phwde et.l.: Kleene Theorems for Lbelled Free Choice Nets 97 Theorem 10 (PS-globls with subset-cceptnce to SCE-cbles). Let A be product system with globls nd subset-cceptnce, defined over distribution Σ. For the lnguge of A, we cn construct sum of connected expression e with cbles. And, if product system hs sme source property then e hs equl source property. Also, in ddition, if A hs product moves property then e hs product derivtives property. Exmple 14. For PS-globls with sme source property nd subset-cceptnce D of Exmple 6, ccepting lnguge L s, we cn construct n SCE-cbles e of Exmple 12 using Theorem 10. Using equivlence of PS-mtchings with product-cceptnce nd CE-cbles, from [15, 16], nd Corollry 1 we get lnguge equivlent SCE-pirings for PSmtchings with subset-cceptnce, nd vice-vers. Theorem 11 (PS-mtchings with subset-cceptnce to SCE-pirings). Let A be product system with conflict-equivlent nd consistent mtchings, hving subset-cceptnce. For the lnguge of A, we cn construct sum of connected expression e with equl choice nd consistent pirings. We hve the reverse trnsltion given s below. Theorem 12 (SCE-pirings to PS-mtchings with subset-cceptnce). Let Σ be distributed lphbet nd sum of connected expression e defined over it, with equl choice nd consistent pirings. Then for its lnguge we cn construct product system with conflict-euivlent nd consistent mtchings, hving subset-cceptnce. 7 Conclusion In this pper, we hve given lnguge (L s of Exmple 2) which cn be ccepted by free choice Zielonk utomt. This lnguge is not ccepted by ny synchronous product or direct product. We hve lso given lnguge (L 4 of Exmple 4) which cn be ccepted by free choice synchronous product nd not by ny direct product. A lnguge which cn be ccepted by free choice direct product (L 3 of Exmple 3) ws given in [15]. With this we hve hierrchy of lbelled free choice nets similr to utomt over distributed lphbets. In ddition we hve defined Zielonk utomt with product cceptnce condition nd its free choice restriction. We hve given lnguge (L p of Exmple 1) of this clss. We used this intermedite utomt to obtin Kleene theorem for free choice Zielonk utomt. We give below the summry of correspondences estblished for the nets, utomt over distributed lphbets nd expressions. To get n expression, for the lnguge of lbelled 1-bounded nd S-coverble free choice net (with or without distributed choice) hving finite set of finl mrkings, we use Theorem 4 nd Theorem 10. In the reverse direction, we use Theorem 9 to get product sytem

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

Theory of Computation Regular Languages

Theory of Computation Regular Languages Theory of Computtion Regulr Lnguges Bow-Yw Wng Acdemi Sinic Spring 2012 Bow-Yw Wng (Acdemi Sinic) Regulr Lnguges Spring 2012 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information

Automata and Languages

Automata and Languages Automt nd Lnguges Prof. Mohmed Hmd Softwre Engineering Lb. The University of Aizu Jpn Grmmr Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Regulr Lnguges Context Free Lnguges Context Sensitive

More information

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun: CMPU 240 Lnguge Theory nd Computtion Spring 2019 NFAs nd Regulr Expressions Lst clss: Introduced nondeterministic finite utomt with -trnsitions Tody: Prove n NFA- is no more powerful thn n NFA Introduce

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.6.: Push Down Automt Remrk: This mteril is no longer tught nd not directly exm relevnt Anton Setzer (Bsed

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tble of Contents: Week 1: Preliminries (set lgebr, reltions, functions) (red Chpters 1-4) Weeks

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More 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

CS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa

CS:4330 Theory of Computation Spring Regular Languages. Equivalences between Finite automata and REs. Haniel Barbosa CS:4330 Theory of Computtion Spring 208 Regulr Lnguges Equivlences between Finite utomt nd REs Hniel Brbos Redings for this lecture Chpter of [Sipser 996], 3rd edition. Section.3. Finite utomt nd regulr

More information

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute Victor Admchik Dnny Sletor Gret Theoreticl Ides In Computer Science CS 5-25 Spring 2 Lecture 2 Mr 3, 2 Crnegie Mellon University Deterministic Finite Automt Finite Automt A mchine so simple tht you cn

More information

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51 Non Deterministic Automt Linz: Nondeterministic Finite Accepters, pge 51 1 Nondeterministic Finite Accepter (NFA) Alphbet ={} q 1 q2 q 0 q 3 2 Nondeterministic Finite Accepter (NFA) Alphbet ={} Two choices

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages 5//6 Grmmr Automt nd Lnguges Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Regulr Lnguges Context Free Lnguges Context Sensitive

More information

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1 Non-Deterministic Finite Automt Fll 2018 Costs Busch - RPI 1 Nondeterministic Finite Automton (NFA) Alphbet ={} q q2 1 q 0 q 3 Fll 2018 Costs Busch - RPI 2 Nondeterministic Finite Automton (NFA) Alphbet

More information

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

More information

1.3 Regular Expressions

1.3 Regular Expressions 56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,

More information

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!)

CMSC 330: Organization of Programming Languages. DFAs, and NFAs, and Regexps (Oh my!) CMSC 330: Orgniztion of Progrmming Lnguges DFAs, nd NFAs, nd Regexps (Oh my!) CMSC330 Spring 2018 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9. Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over

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

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

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

State Minimization for DFAs

State Minimization for DFAs Stte Minimiztion for DFAs Red K & S 2.7 Do Homework 10. Consider: Stte Minimiztion 4 5 Is this miniml mchine? Step (1): Get rid of unrechle sttes. Stte Minimiztion 6, Stte is unrechle. Step (2): Get rid

More information

Closure Properties of Regular Languages

Closure Properties of Regular Languages Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L

More information

More on automata. Michael George. March 24 April 7, 2014

More on automata. Michael George. March 24 April 7, 2014 More on utomt Michel George Mrch 24 April 7, 2014 1 Automt constructions Now tht we hve forml model of mchine, it is useful to mke some generl constructions. 1.1 DFA Union / Product construction Suppose

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

Relating logic to formal languages

Relating logic to formal languages Relting logic to forml lnguges Kml Lody The Institute of Mthemticl Sciences, Chenni October 2018 Reding 1. Howrd Strubing: Forml lnguges, finite utomt nd circuit complexity, birkhäuser. 2. Wolfgng Thoms:

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

More information

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004 Advnced Clculus: MATH 410 Notes on Integrls nd Integrbility Professor Dvid Levermore 17 October 2004 1. Definite Integrls In this section we revisit the definite integrl tht you were introduced to when

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 Automt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Problem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) Anton Setzer (Bsed on book drft by J. V. Tucker nd K. Stephenson)

More information

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA

Nondeterminism. Nondeterministic Finite Automata. Example: Moves on a Chessboard. Nondeterminism (2) Example: Chessboard (2) Formal NFA Nondeterminism Nondeterministic Finite Automt Nondeterminism Subset Construction A nondeterministic finite utomton hs the bility to be in severl sttes t once. Trnsitions from stte on n input symbol cn

More information

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar)

Lecture 3 ( ) (translated and slightly adapted from lecture notes by Martin Klazar) Lecture 3 (5.3.2018) (trnslted nd slightly dpted from lecture notes by Mrtin Klzr) Riemnn integrl Now we define precisely the concept of the re, in prticulr, the re of figure U(, b, f) under the grph of

More information

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probbilistic Model Checking Michelms Term 2011 Dr. Dve Prker Deprtment of Computer Science University of Oxford Long-run properties Lst lecture: regulr sfety properties e.g. messge filure never occurs

More information

This lecture covers Chapter 8 of HMU: Properties of CFLs

This lecture covers Chapter 8 of HMU: Properties of CFLs This lecture covers Chpter 8 of HMU: Properties of CFLs Turing Mchine Extensions of Turing Mchines Restrictions of Turing Mchines Additionl Reding: Chpter 8 of HMU. Turing Mchine: Informl Definition B

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

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

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets

Concepts of Concurrent Computation Spring 2015 Lecture 9: Petri Nets Concepts of Concurrent Computtion Spring 205 Lecture 9: Petri Nets Sebstin Nnz Chris Poskitt Chir of Softwre Engineering Petri nets Petri nets re mthemticl models for describing systems with concurrency

More information

3 Regular expressions

3 Regular expressions 3 Regulr expressions Given n lphet Σ lnguge is set of words L Σ. So fr we were le to descrie lnguges either y using set theory (i.e. enumertion or comprehension) or y n utomton. In this section we shll

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

N 0 completions on partial matrices

N 0 completions on partial matrices N 0 completions on prtil mtrices C. Jordán C. Mendes Arújo Jun R. Torregros Instituto de Mtemátic Multidisciplinr / Centro de Mtemátic Universidd Politécnic de Vlenci / Universidde do Minho Cmino de Ver

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

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

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

How to simulate Turing machines by invertible one-dimensional cellular automata

How to simulate Turing machines by invertible one-dimensional cellular automata How to simulte Turing mchines by invertible one-dimensionl cellulr utomt Jen-Christophe Dubcq Déprtement de Mthémtiques et d Informtique, École Normle Supérieure de Lyon, 46, llée d Itlie, 69364 Lyon Cedex

More information

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

More information

Let's start with an example:

Let's start with an example: Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte

More information

A Polynomial-Time Algorithm for Checking Consistency of Free-Choice Signal Transition Graphs

A Polynomial-Time Algorithm for Checking Consistency of Free-Choice Signal Transition Graphs Fundment Informtice XX (2004) 1 23 1 IOS Press A Polynomil-Time Algorithm for Checking Consistency of Free-Choice Signl Trnsition Grphs Jvier Esprz Institute for Forml Methods in Computer Science University

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation Strong Bisimultion Overview Actions Lbeled trnsition system Trnsition semntics Simultion Bisimultion References Robin Milner, Communiction nd Concurrency Robin Milner, Communicting nd Mobil Systems 32

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S.

Semantic Reachability. Richard Mayr. Institut fur Informatik. Technische Universitat Munchen. Arcisstr. 21, D Munchen, Germany E. N. T. C. S. URL: http://www.elsevier.nl/locte/entcs/volume6.html?? pges Semntic Rechbility Richrd Myr Institut fur Informtik Technische Universitt Munchen Arcisstr. 21, D-80290 Munchen, Germny e-mil: myrri@informtik.tu-muenchen.de

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd

More information

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt From Regulr Expressions to NFA- Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

More information

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility)

CS5371 Theory of Computation. Lecture 20: Complexity V (Polynomial-Time Reducibility) CS5371 Theory of Computtion Lecture 20: Complexity V (Polynomil-Time Reducibility) Objectives Polynomil Time Reducibility Prove Cook-Levin Theorem Polynomil Time Reducibility Previously, we lernt tht if

More 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

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

More information

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

Introduction to ω-autamata

Introduction to ω-autamata Fridy 25 th Jnury, 2013 Outline From finite word utomt ω-regulr lnguge ω-utomt Nondeterministic Models Deterministic Models Two Lower Bounds Conclusion Discussion Synthesis Preliminry From finite word

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

Bisimulation. R.J. van Glabbeek

Bisimulation. R.J. van Glabbeek Bisimultion R.J. vn Glbbeek NICTA, Sydney, Austrli. School of Computer Science nd Engineering, The University of New South Wles, Sydney, Austrli. Computer Science Deprtment, Stnford University, CA 94305-9045,

More information

Tutorial Automata and formal Languages

Tutorial Automata and formal Languages Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we

More information

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions Physics 6C Solution of inhomogeneous ordinry differentil equtions using Green s functions Peter Young November 5, 29 Homogeneous Equtions We hve studied, especilly in long HW problem, second order liner

More information

Non-deterministic Finite Automata

Non-deterministic Finite Automata Non-deterministic Finite Automt Eliminting non-determinism Rdoud University Nijmegen Non-deterministic Finite Automt H. Geuvers nd T. vn Lrhoven Institute for Computing nd Informtion Sciences Intelligent

More information

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,

More information

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v.

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v. 1 Exercises Chpter 1 Exercise 1.1. Let Σ e n lphet. Prove wv = w + v for ll strings w nd v. Prove # (wv) = # (w)+# (v) for every symol Σ nd every string w,v Σ. Exercise 1.2. Let w 1,w 2,...,w k e k strings,

More information

Generalized Fano and non-fano networks

Generalized Fano and non-fano networks Generlized Fno nd non-fno networks Nildri Ds nd Brijesh Kumr Ri Deprtment of Electronics nd Electricl Engineering Indin Institute of Technology Guwhti, Guwhti, Assm, Indi Emil: {d.nildri, bkri}@iitg.ernet.in

More information

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018 CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA

More 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

CSCI FOUNDATIONS OF COMPUTER SCIENCE

CSCI FOUNDATIONS OF COMPUTER SCIENCE 1 CSCI- 2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 My 7, 2015 2 Announcements Homework 9 is due now. Some finl exm review problems will be posted on the web site tody. These re prcqce problems not

More information

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model?

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model? CS125 Lecture 11 Fll 2016 11.1 Finite Automt Motivtion: TMs without tpe: mybe we cn t lest fully understnd such simple model? Algorithms (e.g. string mtching) Computing with very limited memory Forml verifiction

More information

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010 CS 311 Homework 3 due 16:30, Thursdy, 14 th Octoer 2010 Homework must e sumitted on pper, in clss. Question 1. [15 pts.; 5 pts. ech] Drw stte digrms for NFAs recognizing the following lnguges:. L = {w

More information

ɛ-closure, Kleene s Theorem,

ɛ-closure, Kleene s Theorem, DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene

More information

1 From NFA to regular expression

1 From NFA to regular expression Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work

More information

Myhill-Nerode Theorem

Myhill-Nerode Theorem Overview Myhill-Nerode Theorem Correspondence etween DA s nd MN reltions Cnonicl DA for L Computing cnonicl DFA Myhill-Nerode Theorem Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute

More information

Semantic reachability for simple process algebras. Richard Mayr. Abstract

Semantic reachability for simple process algebras. Richard Mayr. Abstract Semntic rechbility for simple process lgebrs Richrd Myr Abstrct This pper is n pproch to combine the rechbility problem with semntic notions like bisimultion equivlence. It dels with questions of the following

More information

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system.

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system. Section 24 Nonsingulr Liner Systems Here we study squre liner systems nd properties of their coefficient mtrices s they relte to the solution set of the liner system Let A be n n Then we know from previous

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

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008 Mth 520 Finl Exm Topic Outline Sections 1 3 (Xio/Dums/Liw) Spring 2008 The finl exm will be held on Tuesdy, My 13, 2-5pm in 117 McMilln Wht will be covered The finl exm will cover the mteril from ll of

More information

arxiv: v1 [math.ra] 1 Nov 2014

arxiv: v1 [math.ra] 1 Nov 2014 CLASSIFICATION OF COMPLEX CYCLIC LEIBNIZ ALGEBRAS DANIEL SCOFIELD AND S MCKAY SULLIVAN rxiv:14110170v1 [mthra] 1 Nov 2014 Abstrct Since Leibniz lgebrs were introduced by Lody s generliztion of Lie lgebrs,

More information

PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA

PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA RIGHT LINEAR LANGUAGES. Right Liner Grmmr: Rules of the form: A α B, A α A,B V N, α V T + Left Liner Grmmr: Rules of the form: A Bα, A α A,B V N, α V T

More information

1.9 C 2 inner variations

1.9 C 2 inner variations 46 CHAPTER 1. INDIRECT METHODS 1.9 C 2 inner vritions So fr, we hve restricted ttention to liner vritions. These re vritions of the form vx; ǫ = ux + ǫφx where φ is in some liner perturbtion clss P, for

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

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying Vitli covers 1 Definition. A Vitli cover of set E R is set V of closed intervls with positive length so tht, for every δ > 0 nd every x E, there is some I V with λ(i ) < δ nd x I. 2 Lemm (Vitli covering)

More information

Recitation 3: More Applications of the Derivative

Recitation 3: More Applications of the Derivative Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech

More information