Termination Problems in Chemical Kinetics

Size: px
Start display at page:

Download "Termination Problems in Chemical Kinetics"

Transcription

1 Termination Problems in Cemical Kinetics Gianluigi Zavattaro and Luca Cardelli 2 Dip. Scienze dell Informazione, Università di Bologna, Italy 2 Microsoft Researc, Cambridge, UK Abstract. We consider nondeterministic and probabilistic termination problems in a process algebra tat is equivalent to basic cemistry. We sow tat te existence of a terminating computation is decidable, but tat termination wit any probability strictly greater tan zero is undecidable. Moreover, we sow tat te fairness intrinsic in stocastic computations implies tat termination of all computation pats is undecidable, wile it is decidable in a nondeterministic framework. Introduction We investigate te question of weter basic cemical kinetics (kinetics of unary and binary cemical reactions), formulated as a process algebra, is capable of general computation. In particular, we investigate nondeterministic and probabilistic termination problems in te Cemical Ground Form (CGF): a process algebra recently proposed for te compositional description of cemical systems, and proved to be bot stocastically and continuously equivalent to cemical kinetics (see [2] for te formal proof of equivalence between CGF and cemical kinetics). Te answers to tose termination problems reveal a surprisingly ric picture of wat is decidable and undecidable in basic cemistry. We consider tree variants of te termination problem: existential, universal, and probabilistic termination. By existential termination we mean te existence of a terminating computation, by universal termination we mean tat all possible computations terminate (in a probabilistic setting, by possible computation we mean tat te computation as probability > 0), by probabilistic termination we mean tat wit probability strictly greater tan a given ɛ, wit 0 < ɛ <, a terminating computation is executed. We prove tat, in te stocastic semantics of CGF, existential termination is decidable, wile bot probabilistic and universal termination are undecidable. In contrast, in a nondeterministic interpretation of te CGF tat abstracts from reaction rates, bot existential and universal termination are decidable. Tis means tat: (a) cemical kinetics is not Turing complete, (b) cemical kinetics is Turing complete up to any degree of precision, (c) existential termination is equally ard (decidable) in stocastic and nondeterministic systems, (d) universal termination is arder (undecidable) in stocastic systems tan in nondeterministic systems, (e) te fairness implicit in stocastic computations makes cecking universal termination undecidable. In recent work, Soloveicik et al. [8], prove te non-turing completeness of Stocastic Cemical Reaction Networks (wic are equivalent to te CGF [2])

2 by reduction to te decidability of cemical state coverability, wic tey call reacability. We prove more strongly tat exact cemical state reacability is also decidable, as well as tat existential termination and boundedness are decidable. (All tese argument are based on decidability results in Petri Nets.) Te same autors also prove te possibility of approximating RAM and Turing Macine computations up to an arbitrarily small error ɛ. Teir encodings allow tem to prove te undecidability of probabilistic coverability. We prove te undecidability of probabilistic termination, probabilistic reacability, probabilistic boundedness, and of universal termination. Tere are tecnical differences in our RAM encodings tat guarantee te stronger results. For example, terminating computations are still terminating in our encoding of RAMs, wile in [8] a clock process keeps running even after termination of te main computation. 2 Cemical Ground Form In te CGF eac species as an associated definition describing te possible actions for te molecules of tat species. Eac action π (r) as an associated stocastic rate r (a positive real number) wic quantifies te expected execution time for te action π. Action τ (r) indicates te possibility for a molecule to be engaged in a unary reaction. For instance, te definition A = τ (r) ; (B C) says tat one molecule of species A can be engaged in a unary reaction tat produces two molecules, one of species B and one of species C (te operator is borrowed from process algebras suc as CCS [6], were it represents parallel composition, and corresponds ere to te cemical + ). Binary reactions ave two reactants. Te two reactants perform two complementary actions?a (r) and!a (r), were a is a name used to identify te reaction; bot te name a and te rate r must matc for te reaction to be enabled. For instance, given te definitions A =?a (r) ; C and B =!a (r) ; D, we ave tat two molecules of species A and B can be engaged in a binary reaction tat produces two molecules, one of species C and one of species D. If te molecules of one species can be engaged in several reactions, ten te corresponding definition admits a coice among several actions. Te syntax of coice is as follows: A = τ (r) ; B?a (r ); C, meaning tat molecules of species A can be engaged in eiter a unary reaction, or in a binary reaction wit anoter molecule able to execute te complementary action!a (r ). Definition (Cemical Ground Form (CGF)). Consider te following denumerable sets: Species ranged over by variables X, Y,, Cannels ranged over by a, b,, Moreover, let r, s, be rates (i.e. positive real numbers). Te syntax of CGF is as follows (were te big separates syntactic alternatives wile te small denotes parallel composition): E ::= 0 X =M, E M ::= 0 π; P M Reagents Molecule P ::= 0 X P Solution π ::= τ (r)?a(r)!a(r) Internal, Input, Output prefix CGF ::= (E, P ) Reagents and initial Solution

3 Given a CGF (E, P ), we assume tat all variables in P occur also in E. Moreover, for every variable X in E, tere is exactly one definition X = M in E. In te following, trailing 0 are left implicit, and we use also as an operator over te syntax: if P and P are 0-terminated lists of variables, according to te syntax above, ten P P means appending te two lists into a single 0- terminated list. Tus, if P is a solution, ten 0 P, P 0, and P are syntactically equal. Te solution composed of k instances of X is denoted wit k X. We consider te discrete state semantics for te CGF defined in [2] in terms of Continuous Time Markov Cains (CTMCs). Te states of te CTMCs are solutions in normal form denoted wit P : for a solution P, we indicate wit P te normalized form of P were te variables are sorted in lexicograpical order (wit 0 at te end), possibly wit repetitions. Te CTMC associated to a cemical ground form is obtained in two steps: we first define te Labeled Transition Grap (LTG) of a cemical ground form, ten we sow ow to extract a CTMC from te labeled transition grap. We use te following notation. Let E.X be te molecule defined by X in E, and M.i be te i-t summand in a molecule of te form M = π ; P π n ; P n. Given a solution in normal form P, wit P.m we denote te m-t variable in P, wit P \(m,, m n ) we denote te solution obtained by removing from P te m i -t molecule for eac i {,, n}. A Labeled Transition Grap (LTG) is a set of quadruples l : S r T were te transition labels l are eiter of te form {m.x.i} or {m.x.i, n.y.j}, were m, n, i, j are positive integers, X, Y are species names, m.x.i are ordered triples and {, } are unordered pairs. Definition 2 (Labeled Transition Grap (LTG) of a Cemical Ground Form). Given te Cemical Ground Form (E, P ), we define Next(E, P ) as te set containing te following kinds of labeled transitions: {m.x.i} : P r T suc tat P.m = X and E.X.i = τ (r) ; Q and T = (P \m) Q; {m.x.i, n.y.j} : P r T suc tat P.m = X and P.n = Y and m n and E.X.i =?a (r) ; Q and E.Y.j =!a (r) ; R and T = (P \m, n) Q R. Te Labeled Transition Grap of (E, P ) is defined as follows: LT G(E, P ) = n Ψ n were Ψ 0 = Next(E, P ) and Ψ n+ = {Next(E, Q) Q is a state of Ψ n } We now define ow to extract from an LTG te corresponding CTMC. Definition 3 (Continuous Time Markov Cain associated to an LTG). If Ψ is an LTG, ten Ψ is te associated CTMC, defined as te set of te triples P r Q wit P Q, obtained by summing te rates of all te transitions in Ψ tat ave te same source and target state: Ψ = {P r Q s.t. l : P r Q Ψ wit P Q, and r = r i s.t. l i : P ri Q Ψ}.

4 It is wort noting tat two solutions Q and R are connected by a transition in LT G(E, P ) if and only if tey are connected by a transition in LT G(E, P ). In fact, te transitions of te latter are acieved by collapsing into one transition tose transitions of te former tat sare te same source and target solutions. Te rate of te new transition is te sum of te rates of te collapsed transitions. Given a CGF (E, P ), a computation is a sequence of transitions in te CTMC LT G(E, P ) starting wit a transition wit source solution P, and suc tat te target solution of one transition coincides wit te source state of te next transition. We say tat a solution Q is reacable in (E, P ) if tere exists a computation wit Q as te target solution of te last transition. A solution Q is terminated in LT G(E, P ) if Q as no outgoing transitions. Te CTMC semantics of CGF defines a probabilistic interpretation of te beavior of a CGF (E, P ): given any solution T of LT G(E, P ), if it as n outgoing transitions labeled wit r,, r n, te probability tat te j-t transition is taken is r j /( i r i). Tus, we can associate probability measures (we consider te standard probability measure for Markov cains see e.g. [5]) to computations in LT G(E, P ). We use tis tecnique to define te tree variants of te termination problem we consider in tis paper. Definition 4 (Existential, universal and probabilistic termination). Consider a CGF (E, P ) and its CTMC LT G(E, P ). Let p be te probability measure associated to te computations in LT G(E, P ) leading to a terminated solution. We say tat (E, P ) existentially terminates if p > 0, (E, P ) universally terminates if p =, (E, P ) probabilistically terminates wit probability iger tan ɛ (for 0 < ɛ < ) if p > ɛ. We will consider also probabilistic variants of oter properties. Consider a CGF (E, P ), its CTMC LT G(E, P ), and a real number ɛ suc tat 0 ɛ <. We say tat a solution Q is ɛ-reacable if te probability measure of te computations in LT G(E, P ) leading to Q is > ɛ. We say tat (E, P ) is ɛ-bound if te set of ɛ-reacable solutions is finite. We say tat (E, P ) is ɛ-terminating if te probability measure of te computations in LT G(E, P ) leading to a terminated solution is > ɛ. We say tat (E, P ) is ɛ-diverging if te probability measure of te infinite computations in LT G(E, P ) is > ɛ. It is wort noting tat, in a probabilistic setting, existential termination coincides wit 0-termination, universal termination wit te negation of 0-divergence, and probabilistic termination wit ɛ-termination for ɛ > 0. 3 Decidability Results In tis section we resort to a Place/Transition Petri net (P/T net) semantics for CGF, tat can be interpreted as a purely nondeterministic semantics of CGF tat abstracts away from te stocastic rates. In tis purely nondeterministic framework several properties are decidable. In fact, in P/T nets, properties suc as reacability (te existence of a computation leading to a given state), boundedness (te finiteness of te set of reacable states), termination (reacability of

5 a deadlocked state), and divergence (te existence of an infinite computation) are decidable (see [4] for a survey on decidable properties for Petri Nets). Definition 5 (Place/Transition Net). A P/T net is a tuple N = (S, T ) were S is te set of places, M fin (S) is te set of te finite multisets over S (eac of wic is called a marking) and T M fin (S) M fin (S) is te set of transitions. A transition (c, p) is written c p. Te marking c, represents te tokens to be consumed ; te marking p represents te tokens to be produced. A transition c p is enabled at a marking m if c m. Te execution of te transition produces te marking m = (m \ c) p (were \ and are te difference and te union operators on multisets). Tis is written as m[ m. A dead marking is a marking in wic no transition is enabled. A marked P/T net is a tuple N(m 0 ) = (S, T, m 0 ), were (S, T ) is a P/T net and m 0 is te initial marking. A computation in N(m 0 ) leading to te marking m is a sequence m 0 [ m [ m 2 m n [ m. Given a CGF (E, P ), we define a corresponding P/T net N = (S, T ) and a corresponding marked P/T net N(m 0 ). We first need to introduce an auxiliary function Mark(P ) tat associates to a solution P te multiset of its variables: Mark(P ) = { if P = 0 {X} Mark(P ) if P = X P Definition 6 (Net of a CGF). Given a CGF (E, P ), wit Net (E,P ) we denote te corresponding P/T net (S, T ) were: S = {X X occurs in E} T = { {X} Mark(X X n ) E.X.i = τ (r) ; (X X n ) } { {X, Y } Mark(X X n ) Mark(Y Y m ) E.X.i =?a (r) ; (X X n ) and E.Y.j =!a (r) ; (Y Y m ) } Te corresponding marked P/T net is Net (E,P ) (Mark(P )). Note tat te set of places S corresponds to te set of variables X defined in E, te transitions represents te possible actions, and te initial marking is te multiset of variables in te solution P. It is also wort observing tat in te net semantics we do not consider te rates (r) of te actions. We now formalize te correspondence between te beaviors of a CGF and of its corresponding P/T net. Teorem. Consider a CGF (E, P ) and te corresponding P/T net Net (E,P ) = (S, T ). We ave tat:. if l : P r Q is in Next(E, P ) (for some l and r) ten we ave also tat Mark(P )[ Mark(Q) in Net (E,P ) ; 2. if tere exists m suc tat Mark(P )[ m in Net (E,P ), ten tere exist l, r and Q suc tat l : P r Q is in Next(E, P ) and Mark(Q) = m.

6 Proof (sketc). Te proofs of te two statements are by case analysis on te possible transitions in Next(E, P ) as defined in te Definition 2 for te first statement or on te possible transitions enabled in Mark(P ) as defined in te Definition 6 for te second statement. Tis teorem allows us to conclude tat te P/T net semantics faitfully reproduces te standard CGF transitions. Te only difference is tat it abstracts away from te stocastic rates. For tis reason, we consider te P/T net semantics as a purely nondeterministic interpretation of CGF. Reacability, boundedness, termination, and divergence are decidable for P/T nets; tus we can conclude tat all tese properties are decidable also in te CGF under a purely nondeterministic interpretation. As a consequence of Teorem, existential termination is decidable. Teorem 2. Consider a CGF (E, P ). We ave tat (E, P ) existentially terminates if and only if a dead marking is reacable in te Net (E,P ) (Mark(P )). Proof. It is easy to see from te definition of LT G(E, P ) and LT G(E, P ) tat te latter contains all and only tose solutions (in normal form) reacable in (E, P ) wit a finite number of transitions, eac one aving a probability > 0 to be cosen. Tus a solution is reacable wit probability > 0 if and only if it is in LT G(E, P ). As a consequence of Teorem we ave tat a solution Q is in LT G(E, P ) if and only if Mark(Q) is reacable in Net (E,P ) (Mark(P )). Moreover, Teorem also guarantees tat Q is terminated if and only if Mark(Q) is a dead marking in Net (E,P ) (tis proves te teorem). As a corollary of Teorem we ave tat also te probabilistic variants of reacability and boundedness can be reduced to te corresponding properties in te nondeterministic setting. On te contrary, tis does not old for divergence. (Tis will be discussed in te next section.) We can summarize te results of tis section simply saying tat ɛ-termination, ɛ-reacability, and ɛ-boundedness are decidable wen ɛ = 0. 4 Undecidability Results Tis section is divided in two parts. In te first one we prove tat probabilistic termination (i.e. ɛ-termination wit ɛ > 0) is undecidable. (We also comment on ow to sow tat also ɛ-divergence, ɛ-boundedness, and ɛ-reacability are undecidable wen ɛ > 0.) In te second part we prove te undecidability of universal termination (tus also of 0-divergence). 4. Undecidability of Probabilistic Termination We prove te undecidability of probabilistic termination sowing ow to approximately model in CGF te beavior of any Random Access Macines (RAMs) [7], a well known register based Turing powerful formalism. More precisely, we reduce te termination problem for RAMs to te probabilistic termination wit probability iger tan any ɛ suc tat 0 < ɛ <. We first recall te definition of Random Access Macines.

7 Definition 7 (Random Access Macines (RAMs)). A RAM R is composed of a set of registers r,, r m tat contain non negative integer numbers and a set of indexed instructions I,, I n of two possible kinds: I i = Inc(r j ) tat increments te register r j and ten moves to te execution of te instruction wit index i + and I i = DecJump(r j, s) tat attempts to decrement te register r j ; if te register does not old 0 ten te register is actually decremented and te next instruction is te one wit index i +, oterwise te next instruction is te one wit index s. We use te following notation: (I i, r = l,, r m = l m ) represents te state of te computation of te RAM wic is going to execute te instruction I i wit registers tat contain l,, l m, respectively; (I i, r = l,, r m = l m ) (I j, r = l,, r m = l m) describes one step of computation of te RAM; (I i, r = l,, r m = l m ) denotes final states of te computation in wic I i is undefined. Witout loss of generality, we assume te existence of a special index alt suc tat all final states contain an instruction wit tat index, namely (I i, r = l,, r m = l m ) if and only if i = alt. Te basic idea tat we follow in modeling RAMs in CGF is to use one species I i for eac instruction I i, and one species R j for eac register r j. Te state (I i, r = l,, r m = l m ) of te RAM is modeled by a solution tat contains one molecule of species I i, l molecules of species R,, and l m molecules of species R m (plus a certain amount of inibitor molecules of species In, wose function will be discussed below). Te beavior of te molecules of species I i is to update te register according to te corresponding instruction I i, and to activate te execution of te next instruction I j by producing te molecule of species I j. An Inc(r j ) instruction simply produces one molecule of species R j. On te oter and, a DecJump(r j, s) instruction sould test te absence of molecules of species R j before deciding weter to execute te jump, or to consume one of te available molecules of tat species. As it is not possible to verify te absence of molecules, we admit te execution of te jump even if molecules of species R j are available. In tis case, we say tat a wrong jump is executed. In order to reduce te probability of wrong jumps, we put teir execution in competition wit alternative beaviors involving te inibitor molecules in suc a way tat te greater is te quantity of inibitor molecules in te solution, te smaller is te probability to execute a wrong jump. We are now ready to formally define our encoding of RAMs. Definition 8. Given a RAM R and one of its states (I i, r = l,, r m = l m ), let [(I i, r = l,, r m = l m )] denote te solution: I i l R l m R m In

8 were: τ; (I i+ R j ) if I i = Inc(r j ) I i =!r j ; (I i+ In) τ; Ci,s 2 if I i = DecJump(r j, s) 0 if I i = I alt Ci,s 2 =!in; Ii τ; Ci,s Ci,s =!in; Ii τ; I s R j =?r j ; 0 In =?in; In Note tat is used to denote te number of occurrences of te molecules of species In. We take all subscripts action rates equal to and we omit tem (tis coice allows us to simplify te proof of Proposition ). In te following, we use E R for te set of te above definitions of species I i, C 2 i,s, C i,s, Rj, In. Note tat before actually executing a jump, two internal τ actions must be executed in sequence (tose in te definition of te species Ci,s 2 and C i,s ), and bot of tem are in competition wit te action!in willing to perform an interaction wit one of te inibitor molecules of species In. Tus, te iger is te number of inibitor molecules, te smaller is te probability to perform tis sequence of two internal actions. We now formalize te correspondence between te beavior of a RAM and of its encoding in CGF. Proposition. Let R be a RAM. Given one of its states (I i, r = l,, r m = l m ) and [(I i, r = l,, r m = l m )], for any, we ave:. if I i = I alt ten (I i, r = l,, r m = l m ) and Next(E R, [(I i, r = l,, r m = l m )] ) as no transitions; 2. if I i = Incr j or I i = DecJump(r j, s) wit l j = 0 and (I i, r = l,, r m = l m ) (I j, r = l,, r m = l m), ten te solution [(I j, r = l,, r m = l m)] is reacable in (E R, [(I i, r = l,, r m = l m )] ) wit probability = ; 3. if I i = DecJump(r j, s) wit l j > 0 and (I i, r = l,, r m = l m ) (I j, r = l,, r m = l m), ten te solution [(I j, r = l,, r m = l m)] + is reacable in (E R, [(I i, r = l,, r m = l m )] ) wit probability >. 2 Proof. If I i = I alt or I i = Inc(r j ) te corresponding statements (te first one and te first part of te second one) are easy to prove. We detail te proof only for I i = DecJump(r j, s). If r j is empty, te probability measure for te computations in (E R, [(I i, r = l,, r m = l m )] ) passing troug [[(I j, r = l,, r m = l m)] is (see Figure ): i=0 ( ) i + ( + ) 2 = If r j is not empty, i.e. l j > 0, te standard probability measure for te computations passing troug [(I j, r = l,, r m = l m)] + is (see Figure ): i=0 ( l j l j + + ) i l j + l j + > 2

9 (a) [(I i,r = l,,r m = l m )] (b) [(I i,r = l,,r m = l m )] l j [[(I j,r = l 0,,r m = l 0 m)]] + [[(I j,r = l 0,,r m = l 0 m)]] Fig.. Fragment of te CTMC LT G(E R, [[(I i, r = l,, r m = l m)]] ) in case I i = DecJump(r j, s) wit l j = 0 (a) or l j > 0 (b). Te above proposition states te correspondence between a single RAM step and te corresponding encoding in CGF. We conclude tat a RAM terminates its computation if and only if a terminated solution is reacable wit a probability tat depends on te initial number of inibitor molecules in te encoding. Teorem 3. Let R be a RAM. We ave tat te computation of R starting from te state (I i, r = l,, r m = l m ) terminates if and only if te CGF (E R, [(I i, r = l,, r m = l m )] ) probabilistically terminates wit probability iger tan k= k. 2 Proof. In te ligt of Proposition we ave tat only decrement operations are not reproduced wit probability =, but wit probability >. Moreover, after te execution of a decrement operation, te value of inibitor 2 molecules is incremented by one. Tus, a RAM computation including d decrement operations is faitfully reproduced wit probability strictly greater tan +d ( ) k= +d k > 2 k= k. Hencefort, any terminating computation is reproduced wit probability strictly greater tan 2 k= k. 2 It is well known tat te series = is convergent (to π2 2 6 ), tus for every small value δ > 0 tere exists a corresponding initial amount of inibitor molecules suc tat k= k < δ. Hencefort, in order to reduce RAM termination to probabilistic termination wit probability iger tan any 0 < ɛ <, 2 it is sufficient to consider an initial value suc tat k= k < ( ɛ). 2

10 Te RAM encoding presented in Definition 8 reproduces also unbounded RAM computations wit any degree of precision. Tus also ɛ-divergence is undecidable wen ɛ > 0. On te contrary, suc encoding does not allow us to prove te undecidability of ɛ-boundedness and ɛ-reacability. We first sow ow to reduce te RAM divergence problem to ɛ-boundedness. Tis does not old for te encoding in te Definition 8 because tere exists divergent RAMs wit a bounded corresponding CGF. Consider, for instance, te RAM composed of only te instruction I = DecJump(r, ) tat performs an infinite loop if te register r is initially empty. It is easy to see tat te corresponding CGF is bounded. In order to guarantee tat an infinite RAM computation generates an unbounded CGF, we can simply add a new molecule of a new species A every time a jump is performed. As an infinite RAM computation executes infinitely many jump operations, an unbounded amount of molecules of species A will be generated. Te new encoding is defined as in te Definition 8 replacing te definition of te species Ci,s wit te following one: C i,s =!in; Ii τ; (I s A). We conclude tis section observing ow to reduce RAM termination to ɛ- reacability. Tis does not old for te above encodings because te solution representing te final state of a RAM computation is not known beforeand. In fact, besides te fact tat te final contents of te registers is not known, we ave tat te final solution will contain a number of inibitor molecules tat depends on te number of decrement operations executed during te computation (as eac decrement adds one molecule of species In). In order to know beforeand te final solution, we allow te molecule I alt to remove te register molecules of species R j as well as all te inibitor molecules of species In. In tis way, if te computation terminates, we ave tat te final solution surely contains only te molecule I alt. Namely, we modify in te Definition 8 te definitions of te species I alt and In as follows: I alt = m j=!r j; I alt!remove; I alt In =?in; In?remove; Undecidability of Universal Termination Te undecidability of universal termination (tus also of 0-divergence) is proved introducing an intermediary nondeterministic computational model, tat we call finitely faulting RAMs (FFRAMs). Tis model corresponds to RAMs in wic te execution of DecJump instructions is nondeterministic wen te tested register is not empty: an FFRAM can eiter decrement te register or execute a wrong jump. Te peculiarity of FFRAMs is tat in an infinite computation only finitely many wrong jumps are executed. We first sow tat it is possible to define an encoding of FFRAMs in CGF suc tat te universal termination problem for FFRAMs coincides wit te universal termination problem for te corresponding CGF. Ten we prove te undecidability of te universal termination problem for FFRAMs sowing ow to reduce te RAM termination problem to te verification of te existence of an infinite computation in

11 FFRAMs (wic corresponds to te complement of te universal termination problem). We start defining finitely faulting RAMs. Definition 9 (Finitely Faulting RAMs (FFRAMs)). Finitely Faulting RAMs are defined as traditional RAMs (see Definition 7) wit te only difference tat given an instruction I i = DecJump(r j, s) and a RAM state (I i, r = l,, r j = l j,, r m = l m ) wit l j > 0, two possible computation steps are permitted: (I i, r = l,, r j = l j,, r m = l m ) (I i+, r = l,, r j = l j,, r m = l m ) and (I i, r = l,, r j = l j,, r m = l m ) (I s, r = l,, r j = l j,, r m = l m ). Te second computation step is called wrong jump because a jump is executed even if te tested register is not empty. Te peculiar property of FFRAMs is tat in every computation (also infinite ones), finitely many wrong jumps are executed. We now sow ow to define an encoding of FFRAMs in CGF suc tat infinite computations in te FFRAMs computational model corresponds to infinite computation wit probability > 0 in te corresponding CGF. Te FFRAM encoding is defined as in Definition 8 adding a transition to a terminated state wic can be selected wit probability 2 wile executing wrong jumps. In tis way, we guarantee tat in an infinite computation infinitely many wrong jumps cannot be executed because te new transition to te terminated state cannot be avoided indefinitely. Definition 0 (FFRAM Modeling). Given a FFRAM R and one of its states (I i, r = l,, r m = l m ), [(I i, r = l,, r m = l m )] is defined as in Definition 8. Also te species I i, R j, In, and Ci,s 2 are defined as in Definition 8, wile Ci,s is defined as follows: C i,s =!in; Ii τ; C 0 s C 0 s =!r j ; I alt τ; I s In te following, we use E R for te new set of definitions of species I i, C 2 i,s, C i,s, C0 s, R j, and In. We now revisit te Proposition adapting it to te new encoding. Proposition 2. Let R be a FFRAM. Given one of its states (I i, r = l,, r m = l m ) and [(I i, r = l,, r m = l m )], for any, we ave:. (as in Proposition ); 2. (as in Proposition ); 3. if I i = DecJump(r j, s) wit l j > 0 ten wit probability one of te following states are reacable in (E R, [(I i, r = l,, r j = l j,, r m = l m )] ): [(I i+, r = l,, r j = l j,, r m = l m )] + (wit prob. > 2 ); [(I alt, r = l,, r j = l j,, r m = l m )] ; [(I s, r = l,, r j = l j,, r m = l m )] (wit probability 0 < p < 2 ).

12 [(I i,r = l,,r j = l j,,r m = l m )] l j [[(I i+,r = l,,r j = l j,,r m = l m )] + l j [[(I alt,r = l,,r j = l j,,r m = l m )]] [[(I s,r = l,,r j = l j,,r m = l m )]] Fig. 2. Fragment of te CTMC LT G(E R, [[(I i, r = l,, r m = l m)]] ) in case I i = DecJump(r j, s) wit l j > 0. Proof. Te first two statements are proved as in Proposition. We sketc te proof for te tird statement. Te probability measure for te computations in (E R, [(I i, r = l,, r j = l j,, r m = l m )] ) passing troug [(I i+, r = l,, r j = l j,, r m = l m )] + is computed as in Proposition. Te probability measure p for te computations passing troug [[(I s, r = l,, r j = l j,, r m = l m )] is (see Figure 2): i=0 ( l j l j + + ) i ( ) 2 ( ) 2 + l j + + It is easy to see tat as l j > 0, ten p < 2. Finally, we observe tat te probability measure of te computations leading to [(I alt, r = l,, r j = l j,, r m = l m )] is equal to minus te probability measure of te computations passing troug eiter [[(I i+, r = l,, r j = l j,, r m = l m )] + or [(I s, r = l,, r j = l j,, r m = l m )]. Te above proposition states te correspondence between a single computation step of a FFRAM and tat of te corresponding CGF. We conclude tat a FFRAM as an infinite computation if and only if tere exists an infinite computation wit probability > 0 in te corresponding CGF. Teorem 4. Let R be a FFRAM. We ave tat R as an infinite computation starting from te state (I i, r = l,, r m = l m ) if and only if te CGF

13 (E R, [(I i, r = l,, r m = l m )] ) as an infinite computation for some initial amount of inibitor molecules. ( k 2 ) w k= p k were w Proof. We first consider te only if part. Assume te existence of an infinite computation of R starting from te state (I i, r = l,, r m = l m ). Tis computation will execute infinitely many DecJump instructions, but only finitely many wrong jumps. We now consider te CGF (E R, [(I i, r = l,, r m = l m )] ) for a generic. According to te Proposition 2, it can reproduce te same infinite computation wit probability strictly greater tan k= is te number of wrong jumps, and p k is te probability for te k-t wrong jump computed as in Proposition 2. Let p min be te minimum among p,, p w. We ave tat te above probability is strictly greater tan ( ) ( k= k ) w. 2 p min We ave already discussed, after Teorem 3, tat te series = is conver- 2 gent, tus tere exists suc tat k= k <. If we consider tis particular 2 value, te overall probability for te infinite computation is > 0. We now consider te if part. Assume te existence of an infinite computation wit probability > 0 in te CGF (E R, [(I i, r = l,, r m = l m )] ) for some. Tis computation corresponds to an infinite computation of R for te two following reasons. We first observe tat te infinite computation reproduces infinitely many correct computation steps (I i, r = l,, r m = l m ) (I j, r = l,, r m = l m) of R. In fact, te unique wrong computation step could be te one described in te second item of te tird statement of Proposition 2. Tis computation step leads to te encoding of te terminated state (I alt, r = l,, r j = l j,, r m = l m ), but in tis case te computation cannot be infinite. Ten, we observe tat te number of wrong jumps is finite. In fact, if we assume (by contradiction) tat te computation contains infinitely many wrong jumps, we ave tat (in te ligt of te tird item of te tird statement of Proposition 2) te probability of te infinite computation is smaller tan i= 2, tus it cannot be > 0. We now prove tat te existence of an infinite computation in FFRAMs is undecidable by defining an encoding tat reduces te termination problem for RAMs to te divergence problem for FFRAMs. As it is not restrictive, we consider only RAMs starting wit all registers empty. Our tecnique as been inspired by a similar one used in [3]. We initially assume tat an arbitrary number k of wrong jumps occurs and, as a consequence, te number k is introduced in a special register. Ten we let te FFRAM repeat indefinitely te simulation of te beavior of te corresponding RAM, but if tis simulation requires more tan k steps, te encoding blocks (tis is ensured by decrementing te special register before simulating every computational step). In tis way, if a RAM terminates, ten te corresponding FFRAM (wit k greater tan te lengt of te RAM computation) can diverge. On te oter and, if an infinite computation of te FFRAM exists, tis as an infinite suffix tat does not contain wrong jumps. In tis correct part of te computation, te encoding faitfully simulates te RAM computation infinitely often; tis is possible only if te RAM terminates.

14 Teorem 5. Given a RAM R, tere exists a corresponding FFRAM [R] suc tat te computation of R (starting wit all registers empty) terminates if and only if [R] as an infinite computation (starting wit all registers empty). Proof. Given a RAM R wit instructions I,, I n (assuming I n = I alt ) and registers r 0,, r m, wit [R] we denote te FFRAM composed of te registers r 0, r,, r m, r m+, r m+2, r m+3 and of te following instructions: J = Inc(r m+ ) J 2 = DecJump(r m+, ) J 3i = DecJump(r m+, alt) (for i < n) J 3i+ = Inc(r { m+2 ) (for i < n) Inc(rj ) if I J 3i+2 = i = Inc(r j ) DecJump(r j, 3s) if I i = DecJump(r j, s) J 3n+2j = DecJump(r j, 3n + 2j + 2) (for i m) J 3n+2j+ = DecJump(r m+3, 3n + 2j) (for i m) J 3n+2m+2 = DecJump(r m+2, 3) J 3n+2m+3 = Inc(r m+ ) J 3n+2m+4 = DecJump(r m+3, 3n + 2m + 2) (for i < n) We prove tat te computation of R starting from te state (I, r 0 = 0,, r m = 0) terminates if and only if [R] as an infinite computation starting from te state (J, r 0 = 0,, r m+3 = 0). We first consider te only-if part. We assume tat te RAM R terminates after te execution of k steps. Te corresponding FFRAM [R] as te following infinite computation wic contains exactly k wrong jumps. Te wrong jumps are all executed at te beginning of te compuation in order to introduce in r m+ te value k. Ten te computation proceeds simulating infinitely many times te computation of R. Note tat at te end of eac simulation, all te registers r,, r m are emptied, and te value k (wic is introduced in r m+2 during te computation, is moved back in r m+ ). Note also tat te register r m+3 is always empty, and tat it is simply tested for zero by instructions tat must always perform a jump. We now consider te if part. Assume tat te FFRAM [R] as an infinite computation. Tis computation starts wit k executions of te instructions J and J 2. Te loop between tese two instructions cannot proceed indefinitely as it contains a wrong jump. At te end of tis first pase, te register r m+ contains k. Ten te computation continues by simulating te beavior of te RAM R, and before executing every instruction te register r m+ is decremented and te register r m+2 is incremented. If (by contradiction) te register r m+ becomes empty before completing te simulation of R, te computation sould block. Tus, te simulation completes before simulating k steps. After, all te registers r 0,, r m are emptied, te value k is reintroduced in r m+, and a new simulation is started. Tis part of te computation, i.e. simulation of R and subsequent reset of te registers, surely terminates because te simulation of R includes at most k steps, and te subsequent reset of te registers cannot proceed indefinitely. We can conclude tat an infinite computation includes infinitely many simulations

15 of te computation of R and, as an FFRAM can perform only finitely many wrong jumps, infinitely many of tese simulations are correct. Tis implies tat te RAM R terminates witin k computation steps. 5 Conclusion In tis paper we ave investigated te decidability of termination problems in CGF, a process algebra proposed in [2] for te compositional description of cemical systems. In particular, we ave proved tat existential termination is decidable, probabilistic termination is undecidable, and universal termination is decidable under a purely nondeterministic interpretation of CGF wile it turns to be undecidable under te stocastic semantics. It is wort saying tat similar results old also for lossy cannels: universal termination is decidable in lossy cannels wile it turns out to be undecidable in teir probabilistic variant []. Neverteless, te result on lossy cannels is not comparable wit ours. In fact, in CGF process communication is syncronous (in lossy cannels syncronous communication is not admitted) wile in te lossy cannel model it is asyncronous troug unbounded FIFO buffers (tat cannot be directly encoded in CGF). Acknowledgement. We would like to acknowledge M. Bravetti, D. Soloveicik, H. Wiklicky, E. Winfree, and te anonymous referees for teir insigtful comments on previous versions of tis paper. References. P. Abdulla, C. Baier, P. Iyer, and B. Jonsson. Reasoning about Probabilistic Lossy Cannel Systems. In Proc. of t International Conference on Concurrency Teory (Concur), volume 877 of LNCS, pages , L. Cardelli. On Process Rate Semantics. Teoretical Computer Science, in press, Available at ttp://dx.doi.org/0.06/j.tcs H. Carstensen. Decidability Questions for Fairness in Petri Nets. In Proc. of 4t Annual Symposium on Teoretical Aspects of Computer Science (STACS), volume 247 of LNCS, pages , J. Esparza and M. Nielsen. Decidability Issues for Petri Nets, 994. Tecnical report BRICS RS J.G. Kemeny, J.L. Snell, and A.W. Knapp. Denumerable Markov Cains. Springer Verlag, R. Milner. Communication and Concurrency. Prentice-Hall, M. L. Minsky. Computation: finite and infinite macines. Prentice-Hall, D. Soloveicik, M. Cook, E. Winfree, and J. Bruck. Computation wit Finite Stocastic Cemical Reaction Networks. Natural Computing, in press, Available at ttp://dx.doi.org/0.007/s y.

Continuity and Differentiability Worksheet

Continuity and Differentiability Worksheet Continuity and Differentiability Workseet (Be sure tat you can also do te grapical eercises from te tet- Tese were not included below! Typical problems are like problems -3, p. 6; -3, p. 7; 33-34, p. 7;

More information

Volume 29, Issue 3. Existence of competitive equilibrium in economies with multi-member households

Volume 29, Issue 3. Existence of competitive equilibrium in economies with multi-member households Volume 29, Issue 3 Existence of competitive equilibrium in economies wit multi-member ouseolds Noriisa Sato Graduate Scool of Economics, Waseda University Abstract Tis paper focuses on te existence of

More information

Efficient algorithms for for clone items detection

Efficient algorithms for for clone items detection Efficient algoritms for for clone items detection Raoul Medina, Caroline Noyer, and Olivier Raynaud Raoul Medina, Caroline Noyer and Olivier Raynaud LIMOS - Université Blaise Pascal, Campus universitaire

More information

Numerical Differentiation

Numerical Differentiation Numerical Differentiation Finite Difference Formulas for te first derivative (Using Taylor Expansion tecnique) (section 8.3.) Suppose tat f() = g() is a function of te variable, and tat as 0 te function

More information

. If lim. x 2 x 1. f(x+h) f(x)

. If lim. x 2 x 1. f(x+h) f(x) Review of Differential Calculus Wen te value of one variable y is uniquely determined by te value of anoter variable x, ten te relationsip between x and y is described by a function f tat assigns a value

More information

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.

4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these. Mat 11. Test Form N Fall 016 Name. Instructions. Te first eleven problems are wort points eac. Te last six problems are wort 5 points eac. For te last six problems, you must use relevant metods of algebra

More information

The derivative function

The derivative function Roberto s Notes on Differential Calculus Capter : Definition of derivative Section Te derivative function Wat you need to know already: f is at a point on its grap and ow to compute it. Wat te derivative

More information

Function Composition and Chain Rules

Function Composition and Chain Rules Function Composition and s James K. Peterson Department of Biological Sciences and Department of Matematical Sciences Clemson University Marc 8, 2017 Outline 1 Function Composition and Continuity 2 Function

More information

Symmetry Labeling of Molecular Energies

Symmetry Labeling of Molecular Energies Capter 7. Symmetry Labeling of Molecular Energies Notes: Most of te material presented in tis capter is taken from Bunker and Jensen 1998, Cap. 6, and Bunker and Jensen 2005, Cap. 7. 7.1 Hamiltonian Symmetry

More information

Combining functions: algebraic methods

Combining functions: algebraic methods Combining functions: algebraic metods Functions can be added, subtracted, multiplied, divided, and raised to a power, just like numbers or algebra expressions. If f(x) = x 2 and g(x) = x + 2, clearly f(x)

More information

Pre-Calculus Review Preemptive Strike

Pre-Calculus Review Preemptive Strike Pre-Calculus Review Preemptive Strike Attaced are some notes and one assignment wit tree parts. Tese are due on te day tat we start te pre-calculus review. I strongly suggest reading troug te notes torougly

More information

Teaching Differentiation: A Rare Case for the Problem of the Slope of the Tangent Line

Teaching Differentiation: A Rare Case for the Problem of the Slope of the Tangent Line Teacing Differentiation: A Rare Case for te Problem of te Slope of te Tangent Line arxiv:1805.00343v1 [mat.ho] 29 Apr 2018 Roman Kvasov Department of Matematics University of Puerto Rico at Aguadilla Aguadilla,

More information

1. Which one of the following expressions is not equal to all the others? 1 C. 1 D. 25x. 2. Simplify this expression as much as possible.

1. Which one of the following expressions is not equal to all the others? 1 C. 1 D. 25x. 2. Simplify this expression as much as possible. 004 Algebra Pretest answers and scoring Part A. Multiple coice questions. Directions: Circle te letter ( A, B, C, D, or E ) net to te correct answer. points eac, no partial credit. Wic one of te following

More information

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point

1 The concept of limits (p.217 p.229, p.242 p.249, p.255 p.256) 1.1 Limits Consider the function determined by the formula 3. x since at this point MA00 Capter 6 Calculus and Basic Linear Algebra I Limits, Continuity and Differentiability Te concept of its (p.7 p.9, p.4 p.49, p.55 p.56). Limits Consider te function determined by te formula f Note

More information

Bob Brown Math 251 Calculus 1 Chapter 3, Section 1 Completed 1 CCBC Dundalk

Bob Brown Math 251 Calculus 1 Chapter 3, Section 1 Completed 1 CCBC Dundalk Bob Brown Mat 251 Calculus 1 Capter 3, Section 1 Completed 1 Te Tangent Line Problem Te idea of a tangent line first arises in geometry in te context of a circle. But before we jump into a discussion of

More information

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x)

1 Calculus. 1.1 Gradients and the Derivative. Q f(x+h) f(x) Calculus. Gradients and te Derivative Q f(x+) δy P T δx R f(x) 0 x x+ Let P (x, f(x)) and Q(x+, f(x+)) denote two points on te curve of te function y = f(x) and let R denote te point of intersection of

More information

How to Find the Derivative of a Function: Calculus 1

How to Find the Derivative of a Function: Calculus 1 Introduction How to Find te Derivative of a Function: Calculus 1 Calculus is not an easy matematics course Te fact tat you ave enrolled in suc a difficult subject indicates tat you are interested in te

More information

3.4 Worksheet: Proof of the Chain Rule NAME

3.4 Worksheet: Proof of the Chain Rule NAME Mat 1170 3.4 Workseet: Proof of te Cain Rule NAME Te Cain Rule So far we are able to differentiate all types of functions. For example: polynomials, rational, root, and trigonometric functions. We are

More information

Exam 1 Review Solutions

Exam 1 Review Solutions Exam Review Solutions Please also review te old quizzes, and be sure tat you understand te omework problems. General notes: () Always give an algebraic reason for your answer (graps are not sufficient),

More information

University Mathematics 2

University Mathematics 2 University Matematics 2 1 Differentiability In tis section, we discuss te differentiability of functions. Definition 1.1 Differentiable function). Let f) be a function. We say tat f is differentiable at

More information

Continuity and Differentiability of the Trigonometric Functions

Continuity and Differentiability of the Trigonometric Functions [Te basis for te following work will be te definition of te trigonometric functions as ratios of te sides of a triangle inscribed in a circle; in particular, te sine of an angle will be defined to be te

More information

MA455 Manifolds Solutions 1 May 2008

MA455 Manifolds Solutions 1 May 2008 MA455 Manifolds Solutions 1 May 2008 1. (i) Given real numbers a < b, find a diffeomorpism (a, b) R. Solution: For example first map (a, b) to (0, π/2) and ten map (0, π/2) diffeomorpically to R using

More information

REVIEW LAB ANSWER KEY

REVIEW LAB ANSWER KEY REVIEW LAB ANSWER KEY. Witout using SN, find te derivative of eac of te following (you do not need to simplify your answers): a. f x 3x 3 5x x 6 f x 3 3x 5 x 0 b. g x 4 x x x notice te trick ere! x x g

More information

WHEN GENERALIZED SUMSETS ARE DIFFERENCE DOMINATED

WHEN GENERALIZED SUMSETS ARE DIFFERENCE DOMINATED WHEN GENERALIZED SUMSETS ARE DIFFERENCE DOMINATED VIRGINIA HOGAN AND STEVEN J. MILLER Abstract. We study te relationsip between te number of minus signs in a generalized sumset, A + + A A, and its cardinality;

More information

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Preface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. Preface Here are my online notes for my course tat I teac ere at Lamar University. Despite te fact tat tese are my class notes, tey sould be accessible to anyone wanting to learn or needing a refreser

More information

A = h w (1) Error Analysis Physics 141

A = h w (1) Error Analysis Physics 141 Introduction In all brances of pysical science and engineering one deals constantly wit numbers wic results more or less directly from experimental observations. Experimental observations always ave inaccuracies.

More information

232 Calculus and Structures

232 Calculus and Structures 3 Calculus and Structures CHAPTER 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS FOR EVALUATING BEAMS Calculus and Structures 33 Copyrigt Capter 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS 17.1 THE

More information

3.1 Extreme Values of a Function

3.1 Extreme Values of a Function .1 Etreme Values of a Function Section.1 Notes Page 1 One application of te derivative is finding minimum and maimum values off a grap. In precalculus we were only able to do tis wit quadratics by find

More information

Turing Universality of the Biochemical Ground Form

Turing Universality of the Biochemical Ground Form Under consideration for publication in Math. Struct. in Comp. Science Turing Universality of the Biochemical Ground Form Luca Cardelli 1 Gianluigi Zavattaro 2 1 Microsoft Research, Cambridge, UK. luca@microsoft.com

More information

Solution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4.

Solution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4. December 09, 20 Calculus PracticeTest s Name: (4 points) Find te absolute extrema of f(x) = x 3 0 on te interval [0, 4] Te derivative of f(x) is f (x) = 3x 2, wic is zero only at x = 0 Tus we only need

More information

Lab 6 Derivatives and Mutant Bacteria

Lab 6 Derivatives and Mutant Bacteria Lab 6 Derivatives and Mutant Bacteria Date: September 27, 20 Assignment Due Date: October 4, 20 Goal: In tis lab you will furter explore te concept of a derivative using R. You will use your knowledge

More information

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY

SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY (Section 3.2: Derivative Functions and Differentiability) 3.2.1 SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY LEARNING OBJECTIVES Know, understand, and apply te Limit Definition of te Derivative

More information

Math 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006

Math 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006 Mat 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006 f(x+) f(x) 10 1. For f(x) = x 2 + 2x 5, find ))))))))) and simplify completely. NOTE: **f(x+) is NOT f(x)+! f(x+) f(x) (x+) 2 + 2(x+) 5 ( x 2

More information

2.8 The Derivative as a Function

2.8 The Derivative as a Function .8 Te Derivative as a Function Typically, we can find te derivative of a function f at many points of its domain: Definition. Suppose tat f is a function wic is differentiable at every point of an open

More information

Math 31A Discussion Notes Week 4 October 20 and October 22, 2015

Math 31A Discussion Notes Week 4 October 20 and October 22, 2015 Mat 3A Discussion Notes Week 4 October 20 and October 22, 205 To prepare for te first midterm, we ll spend tis week working eamples resembling te various problems you ve seen so far tis term. In tese notes

More information

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx.

Consider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx. Capter 2 Integrals as sums and derivatives as differences We now switc to te simplest metods for integrating or differentiating a function from its function samples. A careful study of Taylor expansions

More information

ch (for some fixed positive number c) reaching c

ch (for some fixed positive number c) reaching c GSTF Journal of Matematics Statistics and Operations Researc (JMSOR) Vol. No. September 05 DOI 0.60/s4086-05-000-z Nonlinear Piecewise-defined Difference Equations wit Reciprocal and Cubic Terms Ramadan

More information

A Reconsideration of Matter Waves

A Reconsideration of Matter Waves A Reconsideration of Matter Waves by Roger Ellman Abstract Matter waves were discovered in te early 20t century from teir wavelengt, predicted by DeBroglie, Planck's constant divided by te particle's momentum,

More information

2.11 That s So Derivative

2.11 That s So Derivative 2.11 Tat s So Derivative Introduction to Differential Calculus Just as one defines instantaneous velocity in terms of average velocity, we now define te instantaneous rate of cange of a function at a point

More information

Improved Algorithms for Largest Cardinality 2-Interval Pattern Problem

Improved Algorithms for Largest Cardinality 2-Interval Pattern Problem Journal of Combinatorial Optimization manuscript No. (will be inserted by te editor) Improved Algoritms for Largest Cardinality 2-Interval Pattern Problem Erdong Cen, Linji Yang, Hao Yuan Department of

More information

Printed Name: Section #: Instructor:

Printed Name: Section #: Instructor: Printed Name: Section #: Instructor: Please do not ask questions during tis exam. If you consider a question to be ambiguous, state your assumptions in te margin and do te best you can to provide te correct

More information

SECTION 1.10: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES

SECTION 1.10: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES (Section.0: Difference Quotients).0. SECTION.0: DIFFERENCE QUOTIENTS LEARNING OBJECTIVES Define average rate of cange (and average velocity) algebraically and grapically. Be able to identify, construct,

More information

LATTICE EXIT MODELS S. GILL WILLIAMSON

LATTICE EXIT MODELS S. GILL WILLIAMSON LATTICE EXIT MODELS S. GILL WILLIAMSON ABSTRACT. We discuss a class of problems wic we call lattice exit models. At one level, tese problems provide undergraduate level exercises in labeling te vertices

More information

Characterization of reducible hexagons and fast decomposition of elementary benzenoid graphs

Characterization of reducible hexagons and fast decomposition of elementary benzenoid graphs Discrete Applied Matematics 156 (2008) 1711 1724 www.elsevier.com/locate/dam Caracterization of reducible exagons and fast decomposition of elementary benzenoid graps Andrej Taranenko, Aleksander Vesel

More information

Generic maximum nullity of a graph

Generic maximum nullity of a graph Generic maximum nullity of a grap Leslie Hogben Bryan Sader Marc 5, 2008 Abstract For a grap G of order n, te maximum nullity of G is defined to be te largest possible nullity over all real symmetric n

More information

1 + t5 dt with respect to x. du = 2. dg du = f(u). du dx. dg dx = dg. du du. dg du. dx = 4x3. - page 1 -

1 + t5 dt with respect to x. du = 2. dg du = f(u). du dx. dg dx = dg. du du. dg du. dx = 4x3. - page 1 - Eercise. Find te derivative of g( 3 + t5 dt wit respect to. Solution: Te integrand is f(t + t 5. By FTC, f( + 5. Eercise. Find te derivative of e t2 dt wit respect to. Solution: Te integrand is f(t e t2.

More information

5.1 We will begin this section with the definition of a rational expression. We

5.1 We will begin this section with the definition of a rational expression. We Basic Properties and Reducing to Lowest Terms 5.1 We will begin tis section wit te definition of a rational epression. We will ten state te two basic properties associated wit rational epressions and go

More information

7 Semiparametric Methods and Partially Linear Regression

7 Semiparametric Methods and Partially Linear Regression 7 Semiparametric Metods and Partially Linear Regression 7. Overview A model is called semiparametric if it is described by and were is nite-dimensional (e.g. parametric) and is in nite-dimensional (nonparametric).

More information

MVT and Rolle s Theorem

MVT and Rolle s Theorem AP Calculus CHAPTER 4 WORKSHEET APPLICATIONS OF DIFFERENTIATION MVT and Rolle s Teorem Name Seat # Date UNLESS INDICATED, DO NOT USE YOUR CALCULATOR FOR ANY OF THESE QUESTIONS In problems 1 and, state

More information

HOMEWORK HELP 2 FOR MATH 151

HOMEWORK HELP 2 FOR MATH 151 HOMEWORK HELP 2 FOR MATH 151 Here we go; te second round of omework elp. If tere are oters you would like to see, let me know! 2.4, 43 and 44 At wat points are te functions f(x) and g(x) = xf(x)continuous,

More information

1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t).

1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t). . Consider te trigonometric function f(t) wose grap is sown below. Write down a possible formula for f(t). Tis function appears to be an odd, periodic function tat as been sifted upwards, so we will use

More information

Math 312 Lecture Notes Modeling

Math 312 Lecture Notes Modeling Mat 3 Lecture Notes Modeling Warren Weckesser Department of Matematics Colgate University 5 7 January 006 Classifying Matematical Models An Example We consider te following scenario. During a storm, a

More information

1 2 x Solution. The function f x is only defined when x 0, so we will assume that x 0 for the remainder of the solution. f x. f x h f x.

1 2 x Solution. The function f x is only defined when x 0, so we will assume that x 0 for the remainder of the solution. f x. f x h f x. Problem. Let f x x. Using te definition of te derivative prove tat f x x Solution. Te function f x is only defined wen x 0, so we will assume tat x 0 for te remainder of te solution. By te definition of

More information

Average Rate of Change

Average Rate of Change Te Derivative Tis can be tougt of as an attempt to draw a parallel (pysically and metaporically) between a line and a curve, applying te concept of slope to someting tat isn't actually straigt. Te slope

More information

HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS

HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS HOW TO DEAL WITH FFT SAMPLING INFLUENCES ON ADEV CALCULATIONS Po-Ceng Cang National Standard Time & Frequency Lab., TL, Taiwan 1, Lane 551, Min-Tsu Road, Sec. 5, Yang-Mei, Taoyuan, Taiwan 36 Tel: 886 3

More information

Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT the Math. What is the half-life of radon?

Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT the Math. What is the half-life of radon? 8.5 Solving Exponential Equations GOAL Solve exponential equations in one variable using a variety of strategies. LEARN ABOUT te Mat All radioactive substances decrease in mass over time. Jamie works in

More information

Explicit Interleavers for a Repeat Accumulate Accumulate (RAA) code construction

Explicit Interleavers for a Repeat Accumulate Accumulate (RAA) code construction Eplicit Interleavers for a Repeat Accumulate Accumulate RAA code construction Venkatesan Gurusami Computer Science and Engineering University of Wasington Seattle, WA 98195, USA Email: venkat@csasingtonedu

More information

Function Composition and Chain Rules

Function Composition and Chain Rules Function Composition an Cain Rules James K. Peterson Department of Biological Sciences an Department of Matematical Sciences Clemson University November 2, 2018 Outline Function Composition an Continuity

More information

Why gravity is not an entropic force

Why gravity is not an entropic force Wy gravity is not an entropic force San Gao Unit for History and Pilosopy of Science & Centre for Time, SOPHI, University of Sydney Email: sgao7319@uni.sydney.edu.au Te remarkable connections between gravity

More information

DIGRAPHS FROM POWERS MODULO p

DIGRAPHS FROM POWERS MODULO p DIGRAPHS FROM POWERS MODULO p Caroline Luceta Box 111 GCC, 100 Campus Drive, Grove City PA 1617 USA Eli Miller PO Box 410, Sumneytown, PA 18084 USA Clifford Reiter Department of Matematics, Lafayette College,

More information

MATH1131/1141 Calculus Test S1 v8a

MATH1131/1141 Calculus Test S1 v8a MATH/ Calculus Test 8 S v8a October, 7 Tese solutions were written by Joann Blanco, typed by Brendan Trin and edited by Mattew Yan and Henderson Ko Please be etical wit tis resource It is for te use of

More information

1watt=1W=1kg m 2 /s 3

1watt=1W=1kg m 2 /s 3 Appendix A Matematics Appendix A.1 Units To measure a pysical quantity, you need a standard. Eac pysical quantity as certain units. A unit is just a standard we use to compare, e.g. a ruler. In tis laboratory

More information

Copyright c 2008 Kevin Long

Copyright c 2008 Kevin Long Lecture 4 Numerical solution of initial value problems Te metods you ve learned so far ave obtained closed-form solutions to initial value problems. A closedform solution is an explicit algebriac formula

More information

1 Limits and Continuity

1 Limits and Continuity 1 Limits and Continuity 1.0 Tangent Lines, Velocities, Growt In tion 0.2, we estimated te slope of a line tangent to te grap of a function at a point. At te end of tion 0.3, we constructed a new function

More information

2. A Generic Formulation and the Single-Commodity Flow Formulation for the CVRP

2. A Generic Formulation and the Single-Commodity Flow Formulation for the CVRP On Time-Dependent Models for Unit Demand Veicle Routing Problems Maria Teresa Godino, CIO-Dep. de Matemática, Instituto Politécnico de Beja, mtgodino@estig.ipbeja.pt Luis Gouveia, CIO-DEIO, Faculdade de

More information

Some Review Problems for First Midterm Mathematics 1300, Calculus 1

Some Review Problems for First Midterm Mathematics 1300, Calculus 1 Some Review Problems for First Midterm Matematics 00, Calculus. Consider te trigonometric function f(t) wose grap is sown below. Write down a possible formula for f(t). Tis function appears to be an odd,

More information

MATH 1020 TEST 2 VERSION A FALL 2014 ANSWER KEY. Printed Name: Section #: Instructor:

MATH 1020 TEST 2 VERSION A FALL 2014 ANSWER KEY. Printed Name: Section #: Instructor: ANSWER KEY Printed Name: Section #: Instructor: Please do not ask questions during tis eam. If you consider a question to be ambiguous, state your assumptions in te margin and do te best you can to provide

More information

Differentiation in higher dimensions

Differentiation in higher dimensions Capter 2 Differentiation in iger dimensions 2.1 Te Total Derivative Recall tat if f : R R is a 1-variable function, and a R, we say tat f is differentiable at x = a if and only if te ratio f(a+) f(a) tends

More information

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a?

(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a? Solutions to Test 1 Fall 016 1pt 1. Te grap of a function f(x) is sown at rigt below. Part I. State te value of eac limit. If a limit is infinite, state weter it is or. If a limit does not exist (but is

More information

Derivatives. By: OpenStaxCollege

Derivatives. By: OpenStaxCollege By: OpenStaxCollege Te average teen in te United States opens a refrigerator door an estimated 25 times per day. Supposedly, tis average is up from 10 years ago wen te average teenager opened a refrigerator

More information

Lecture 10: Carnot theorem

Lecture 10: Carnot theorem ecture 0: Carnot teorem Feb 7, 005 Equivalence of Kelvin and Clausius formulations ast time we learned tat te Second aw can be formulated in two ways. e Kelvin formulation: No process is possible wose

More information

Flavius Guiaş. X(t + h) = X(t) + F (X(s)) ds.

Flavius Guiaş. X(t + h) = X(t) + F (X(s)) ds. Numerical solvers for large systems of ordinary differential equations based on te stocastic direct simulation metod improved by te and Runge Kutta principles Flavius Guiaş Abstract We present a numerical

More information

2.3 Algebraic approach to limits

2.3 Algebraic approach to limits CHAPTER 2. LIMITS 32 2.3 Algebraic approac to its Now we start to learn ow to find its algebraically. Tis starts wit te simplest possible its, and ten builds tese up to more complicated examples. Fact.

More information

Lecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator.

Lecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator. Lecture XVII Abstract We introduce te concept of directional derivative of a scalar function and discuss its relation wit te gradient operator. Directional derivative and gradient Te directional derivative

More information

Monoidal Structures on Higher Categories

Monoidal Structures on Higher Categories Monoidal Structures on Higer Categories Paul Ziegler Monoidal Structures on Simplicial Categories Let C be a simplicial category, tat is a category enriced over simplicial sets. Suc categories are a model

More information

2.1 THE DEFINITION OF DERIVATIVE

2.1 THE DEFINITION OF DERIVATIVE 2.1 Te Derivative Contemporary Calculus 2.1 THE DEFINITION OF DERIVATIVE 1 Te grapical idea of a slope of a tangent line is very useful, but for some uses we need a more algebraic definition of te derivative

More information

Calculus I Practice Exam 1A

Calculus I Practice Exam 1A Calculus I Practice Exam A Calculus I Practice Exam A Tis practice exam empasizes conceptual connections and understanding to a greater degree tan te exams tat are usually administered in introductory

More information

Material for Difference Quotient

Material for Difference Quotient Material for Difference Quotient Prepared by Stepanie Quintal, graduate student and Marvin Stick, professor Dept. of Matematical Sciences, UMass Lowell Summer 05 Preface Te following difference quotient

More information

NUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example,

NUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example, NUMERICAL DIFFERENTIATION James T Smit San Francisco State University In calculus classes, you compute derivatives algebraically: for example, f( x) = x + x f ( x) = x x Tis tecnique requires your knowing

More information

Chapter 2 Limits and Continuity

Chapter 2 Limits and Continuity 4 Section. Capter Limits and Continuity Section. Rates of Cange and Limits (pp. 6) Quick Review.. f () ( ) () 4 0. f () 4( ) 4. f () sin sin 0 4. f (). 4 4 4 6. c c c 7. 8. c d d c d d c d c 9. 8 ( )(

More information

Derivative at a point

Derivative at a point Roberto s Notes on Differential Calculus Capter : Definition of derivative Section Derivative at a point Wat you need to know already: Te concept of liit and basic etods for coputing liits. Wat you can

More information

Natural Language Understanding. Recap: probability, language models, and feedforward networks. Lecture 12: Recurrent Neural Networks and LSTMs

Natural Language Understanding. Recap: probability, language models, and feedforward networks. Lecture 12: Recurrent Neural Networks and LSTMs Natural Language Understanding Lecture 12: Recurrent Neural Networks and LSTMs Recap: probability, language models, and feedforward networks Simple Recurrent Networks Adam Lopez Credits: Mirella Lapata

More information

Click here to see an animation of the derivative

Click here to see an animation of the derivative Differentiation Massoud Malek Derivative Te concept of derivative is at te core of Calculus; It is a very powerful tool for understanding te beavior of matematical functions. It allows us to optimize functions,

More information

Math Spring 2013 Solutions to Assignment # 3 Completion Date: Wednesday May 15, (1/z) 2 (1/z 1) 2 = lim

Math Spring 2013 Solutions to Assignment # 3 Completion Date: Wednesday May 15, (1/z) 2 (1/z 1) 2 = lim Mat 311 - Spring 013 Solutions to Assignment # 3 Completion Date: Wednesday May 15, 013 Question 1. [p 56, #10 (a)] 4z Use te teorem of Sec. 17 to sow tat z (z 1) = 4. We ave z 4z (z 1) = z 0 4 (1/z) (1/z

More information

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist

1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist Mat 1120 Calculus Test 2. October 18, 2001 Your name Te multiple coice problems count 4 points eac. In te multiple coice section, circle te correct coice (or coices). You must sow your work on te oter

More information

Time (hours) Morphine sulfate (mg)

Time (hours) Morphine sulfate (mg) Mat Xa Fall 2002 Review Notes Limits and Definition of Derivative Important Information: 1 According to te most recent information from te Registrar, te Xa final exam will be eld from 9:15 am to 12:15

More information

arxiv: v3 [cs.ds] 4 Aug 2017

arxiv: v3 [cs.ds] 4 Aug 2017 Non-preemptive Sceduling in a Smart Grid Model and its Implications on Macine Minimization Fu-Hong Liu 1, Hsiang-Hsuan Liu 1,2, and Prudence W.H. Wong 2 1 Department of Computer Science, National Tsing

More information

Math 161 (33) - Final exam

Math 161 (33) - Final exam Name: Id #: Mat 161 (33) - Final exam Fall Quarter 2015 Wednesday December 9, 2015-10:30am to 12:30am Instructions: Prob. Points Score possible 1 25 2 25 3 25 4 25 TOTAL 75 (BEST 3) Read eac problem carefully.

More information

Notes on wavefunctions II: momentum wavefunctions

Notes on wavefunctions II: momentum wavefunctions Notes on wavefunctions II: momentum wavefunctions and uncertainty Te state of a particle at any time is described by a wavefunction ψ(x). Tese wavefunction must cange wit time, since we know tat particles

More information

2.3 More Differentiation Patterns

2.3 More Differentiation Patterns 144 te derivative 2.3 More Differentiation Patterns Polynomials are very useful, but tey are not te only functions we need. Tis section uses te ideas of te two previous sections to develop tecniques for

More information

Sin, Cos and All That

Sin, Cos and All That Sin, Cos and All Tat James K. Peterson Department of Biological Sciences and Department of Matematical Sciences Clemson University Marc 9, 2017 Outline Sin, Cos and all tat! A New Power Rule Derivatives

More information

arxiv: v1 [math.dg] 4 Feb 2015

arxiv: v1 [math.dg] 4 Feb 2015 CENTROID OF TRIANGLES ASSOCIATED WITH A CURVE arxiv:1502.01205v1 [mat.dg] 4 Feb 2015 Dong-Soo Kim and Dong Seo Kim Abstract. Arcimedes sowed tat te area between a parabola and any cord AB on te parabola

More information

Polynomial Interpolation

Polynomial Interpolation Capter 4 Polynomial Interpolation In tis capter, we consider te important problem of approximatinga function fx, wose values at a set of distinct points x, x, x,, x n are known, by a polynomial P x suc

More information

Section 2: The Derivative Definition of the Derivative

Section 2: The Derivative Definition of the Derivative Capter 2 Te Derivative Applied Calculus 80 Section 2: Te Derivative Definition of te Derivative Suppose we drop a tomato from te top of a 00 foot building and time its fall. Time (sec) Heigt (ft) 0.0 00

More information

Chapter 2. Limits and Continuity 16( ) 16( 9) = = 001. Section 2.1 Rates of Change and Limits (pp ) Quick Review 2.1

Chapter 2. Limits and Continuity 16( ) 16( 9) = = 001. Section 2.1 Rates of Change and Limits (pp ) Quick Review 2.1 Capter Limits and Continuity Section. Rates of Cange and Limits (pp. 969) Quick Review..... f ( ) ( ) ( ) 0 ( ) f ( ) f ( ) sin π sin π 0 f ( ). < < < 6. < c c < < c 7. < < < < < 8. 9. 0. c < d d < c

More information

Differentiation. Area of study Unit 2 Calculus

Differentiation. Area of study Unit 2 Calculus Differentiation 8VCE VCEco Area of stud Unit Calculus coverage In tis ca 8A 8B 8C 8D 8E 8F capter Introduction to limits Limits of discontinuous, rational and brid functions Differentiation using first

More information

Exercises for numerical differentiation. Øyvind Ryan

Exercises for numerical differentiation. Øyvind Ryan Exercises for numerical differentiation Øyvind Ryan February 25, 2013 1. Mark eac of te following statements as true or false. a. Wen we use te approximation f (a) (f (a +) f (a))/ on a computer, we can

More information

. Compute the following limits.

. Compute the following limits. Today: Tangent Lines and te Derivative at a Point Warmup:. Let f(x) =x. Compute te following limits. f( + ) f() (a) lim f( +) f( ) (b) lim. Let g(x) = x. Compute te following limits. g(3 + ) g(3) (a) lim

More information

Domination Problems in Nowhere-Dense Classes of Graphs

Domination Problems in Nowhere-Dense Classes of Graphs LIPIcs Leibniz International Proceedings in Informatics Domination Problems in Nowere-Dense Classes of Graps Anuj Dawar 1, Stepan Kreutzer 2 1 University of Cambridge Computer Lab, U.K. anuj.dawar@cl.cam.ac.uk

More information

Lines, Conics, Tangents, Limits and the Derivative

Lines, Conics, Tangents, Limits and the Derivative Lines, Conics, Tangents, Limits and te Derivative Te Straigt Line An two points on te (,) plane wen joined form a line segment. If te line segment is etended beond te two points ten it is called a straigt

More information