2. Verification by Equivalence Checking

Size: px
Start display at page:

Download "2. Verification by Equivalence Checking"

Transcription

1 2. Verifiction by Equivlence Checking Pge Combintionl Circuits Verifiction 2.2 Propositionl Logic (Clculus) 2.5 Propositionl Resolution 2. Stålmrck s Procedure 2.9 Reduced Ordered Binry Decision Digrms (ROBDDs) 2.23 Sequentil Circuits Verifiction 2.55 Reltionl Representtion of FSMs 2.56 Reltionl Product of FSMs 2.6 Rechbility Anlysis on FSMs 2.62 Equivlence Checking Tools 2.7 References E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2. (of 73)

2 Combintionl Circuits Verifiction Consist of n interconnection of logic gtes AND, OR, NOT, NAND, NOR, XOR, XNOR, nd blocks implementing more complex logic (Boolen) functions. No logicl loops, i.e., topologiclly there my be loops, but they re not sensitizble under ny (vlid) input combintion, even such loops my be prohibited / not produced by utomted nlysis / synthesis tools Gol Given two Boolen netlists, check if the corresponding outputs of the two circuits re equl for ll possible inputs Two circuits re equivlent iff the Boolen function representing the outputs of the networks re logiclly equivlent Identify equivlence points nd implictions between the two circuits to simplify equivlence checking Since typicl design proceeds by series of locl chnges, in most cses there re mny implictions / equivlent subcircuits in the two circuits to be compred Vrious tutology/stisfibility checking lgorithms bsed on heuristics (problem is NPcomplete, but mny work well on rel pplictions...) In this course we consider three min combintionl equivlence checking methods: - Propositionl resolution method (tutology/stisfibility checking) - Stålmrck s method (recent ptented lgorithm, very efficient nd populr) - ROBDD-bsed method (Boolen function converted into ROBDD s representtion) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.2 (of 73)

3 Combintionl Equivlence Checking Explicit Proof f = flg: T/F Tutology Check f2 (f = f2) = T Propositionl resolution Stålmrck s procedure ROBDDs 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.3 (of 73)

4 Implicit Proof Combintionl Equivlence Checking (con t) b d f (,b,c) b c c out x y q f2 (x,y,z) out 2 y x z check! z p ROBDDs 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.4 (of 73)

5 Propositionl Logic (Clculus) Syntx P, Q, R,... propositionl symbols (tomic propositions) t: true; f: flse constnts P: not P P Q: P nd Q P Q: P or Q; P Q: if P then Q (proposition equivlent to P Q) P Q: P if nd only if Q, i.e., P equivlent to Q (proposition equivlent to (P Q) ( P Q) ) Semntics Given through the Truth Tble: P Q P P Q P Q P Q P Q t t f t t t t t f f f t f f f t t f t t f f f t f f t t An interprettion is function from the propositionl symbols to {t, f} 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.5 (of 73)

6 Propositionl Logic (cont d) Formul F is stisfible (consistent) iff it is true under t lest one interprettion Formul F is unstisfible (inconsistent) iff it is flse under ll interprettions Formul F is vlid iff it is true (consistent) under ll interprettions Interprettion I stisfies formul F (I is model of F) iff F is true under I. Nottion: I F Theorem: A formul F is vlid ( tutology) iff F is unstisfible. Nottion: The reltionship between F to F cn be visulized by mirror principle : F Vlid formuls All formuls in propositionl logic Stisfible, but non-vlid formuls Unstisfible formuls F F G G To determine if F is stisfible or vlid, test finite number (2 n ) of interprettions of the n tomic propositions occurring in F... but it is n exponentil method... stisfibility is n NP-complete problem 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.6 (of 73)

7 Propositionl Logic (cont d) Proofs A proof of proposition is derived using xioms, theorems, nd inference rules (n inference rule permits deducing conclusions bsed on the truth of certin premises) A logic formul F is deducible from the set S of sttements if there is finite proof of F strting from elements of S. Nottion: S F Exmple: A simple proof system Axioms: K: A (B A) S: (A (B C)) ((A B) (A C)) DN: A A Inference rule (Modus Ponens): {A B, A} A proof of A A () (A ((D A) A)) ((A (D A)) (A A)) by S ([B\D A], [C\A]) (2) A ((D A) A) by K ([B\D A]) (3) (A (D A)) (A A) by MP, (), (2) (4) A (D A) by K (5) A A by MP, (3), (4). B 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.7 (of 73)

8 Reltion between syntx nd semntics Propositionl Logic (cont d) Truth tbles provide mens of deciding truth Propositionl logic is: - complete: everything tht is true my be proven, i.e., if S A then S A - consistent (sound): nothing tht is flse my be proven. i.e., if S A then S A - decidble: there is n lgorithm for deciding the truth of ny proposition, i.e., test finite (exponentil) number of truth ssignments 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.8 (of 73)

9 Flse Negtive & Flse Positive Let P be proposition ( property) nd A verifiction method (lgorithm). Flse Negtive: (similr to incompleteness) A(P) reports true interprettion ψ, ψ(p) = true A(P) reports flse ( interprettion ψ, ψ(p) = true)! ( ψ, ψ(p) = flse) Flse Positive: (similr to inconsistency, unsoundness) A(P) reports flse interprettion ψ, ψ(p) = flse A(P) reports true ( interprettion ψ, ψ(p) = flse)! ( ψ, ψ(p) = true) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.9 (of 73)

10 Combintionl Equivlence Checking Determine if two expressions E nd E2 denote the sme truth tble Appliction: Determine if two combintionl logic circuit designs C nd C2 implement the sme truth tble (logic (Boolen) function) - Extrct representtion of logic expressions E nd E2 - Verify if (E E2) is vlid formul, i.e., (E E2) is unstisfible using stisfibility lgorithms (Propositionl Resolution methods), or (E E2) nd (E2 E) hold (where E nd E2 re trnsformed to impliction form using Stålmrck s procedure), or E nd E2 hve the sme cnonicl form using, e.g., Reduced Binry Decision Digrms 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2. (of 73)

11 Propositionl Resolution A Literl L is n tomic proposition A or its negtion A A Cluse C is finite set of disjunctive literls (C = L L 2 L 3...) C is true iff one of its elements is true. The empty cluse is lwys flse. Let A, A 2,... be tomic propositions nd L i, j literls Conjunctive Norml Form (CNF): conjunction of disjunctions of literls n F=( ( L i, j )), where L i, j {A,A 2,...} { A, A 2,...} i= j= Disjunctive Norml Form (DNF): disjunction of conjunctions of literls n m i m i F=( ( L i, j )), where L i, j {A,A 2,...} { A, A 2,...} i= j= Ech L i, j {A,A2,...} { A, A2,...} ppers in ech disjunct (conjunct) t most once! Theorem: For every logic formul F, there is n equivlent CNF nd n equivlent DNF Cnonicl Conjunctive Form (CCF): CNF in which ech L ppers exctly once Cnonicl Disjunctive Form (DCF): DNF in which ech L ppers exctly once 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2. (of 73)

12 Propositionl Resolution (cont d) Resolution is proof method underlying some utomtic theorem provers bsed on simple syntctic trnsformtion nd refuttion. Refuttion is procedure to show tht given formul is unstisfible Resolution procedure: - To prove F, we trnslte F into set of cluses, ech disjunction of tomic formule or their negtions. - Ech resolution step tkes two cluses nd yields new one. - The method succeeds if it produces the empty cluse ( contrdiction), thus refuting F. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.2 (of 73)

13 Propositionl Resolution (cont d) Let F=(L,... L,n )... (L k,... L k,nk ) where literls L i, j {A,A 2,...} { A, A 2,...} F cn be viewed s set of cluses: F={{L,,..., L,n },..., {L k,,..., L k,nk }}, where - Comm seprting two literls within cluse corresponds to - Comm seprting two cluses corresponds to Let L be literl in cluse C (L C ) nd its complement L in cluse C 2 (L C 2 ), Cluse R is resolvent of C nd C 2 if: R = (C {L}) (C 2 {L}) Exmple: F = {{p, r}, {q, r}, { q}, { p, v}, { s}, {s, v}}. {p, r} {q, r} { p, v} {s, v} {p, q} { q} { p, s} { s} {p} { p} { } 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.3 (of 73)

14 Propositionl Resolution (cont d) A (resolution) deduction of C from F is finite sequence C, C 2,..., C n of cluses such tht ech C i is either in F or resolvent of C j, C k, (j, k < i) Res(F) = F R where R is resolvent of two cluses in F Lemm. F nd F R re equivlent Define Let Res * (F) = Res (F) = F, Res n+ (F) = Res( Res n (F) ), n n Res n (F) Theorem. F is unstisfible iff Res * (F) Algorithm: to decide stisfibility of formul F in CNF (cluse set): repet G:=F; F:=Res(F) until (( F) or (F = G); if F then F is unstisfible else F is stisfible. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.4 (of 73)

15 Summry of bsic ide: Propositionl Resolution (cont d) Gol: G in DNF is vlid? G is unstisfible F = G in CNF: F = (L,.. L,n )... (L k,... L k,nk ) F = {{L,,..., L,n },..., {L k,,..., L k,nk }} Resolution Refuttion procedure F = { } (contrdiction) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.5 (of 73)

16 Two circuits C nd C2 Propositinl Resolution - Exmple b b out out2 C C2 =? Propositionl Resolution C: out = b C2: out2 = ( b) ( ) (Mux: out2 = ( s b) (s ) ) G = (out out2) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.6 (of 73)

17 G = (out out 2) ( out out 2) (DNF) = true? F = G = ((out out 2) ( out out 2)) = Flse? (unstifible!) CNF F = ( out out 2) (out out 2) = ( ( b) [( b) ( )]) (( b) [( b) ( )]) =... = ( ) ( b) ( b) Literls: {{ }, { b}, {, b}} { b} {, b} {} { } { } derive empty cluse { } 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.7 (of 73)

18 Theorem Proving b out b out2 s out = ( s b) (s ) out2 = b = ( b) ( ) = ( b) = ( ) (b ) = (b ) = b = b out2 = out 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.8 (of 73)

19 Stålmrck s Procedure Trnsform propositionl formul G (in liner time) in nested impliction form, e.g.: G = (p (q r)) s G is now represented using set of triplets {b i, x, y}, mening b i (x y), e.g.: (p (q r)) s becomes {(b, q, r), (b 2, p, b ), (b 3, b 2, s)}; G = b 3 To prove formul vlid, ssume tht it is flse nd try to find contrdiction (use for flse nd for true, s in switching (Boolen) lgebr) Derivtion rules: (/b mens replce by b ) r (, y, z) y/, z/ mening flse (y z) implies y = true nd z = flse r2 (x, y, ) x/ mening x (y true) implies x = true r3 (x,, z) x/ mening x (flse z) implies x = true r4 (x,, z) x/z mening x (true z) implies x = z r5 (x, y, ) x/ y mening x (y ) implies x = y r6 (x, x, z) x/, z/ mening x (x z) implies x = true nd z = true r7 (x, y, y) x/ mening x (y y) implies x = true Exmple: G = (p (q p)) : {(b, q, p), (b 2, p, b )}, ssume G = b 2 =, i.e., (, p, b ) By r : p = nd b =, substitute for b nd get (, q, ) (which is terminl triplet) Agin by r this is contrdiction since / is derived for z in r, hence b 2 = G = (true) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.9 (of 73)

20 Stålmrck s Procedure (cont d) Not ll formuls cn be proved with these rules, need form of brnching: Dilemm rule T = set of triplets, D i, i =, 2, re derivtions, results U[S ] nd V[S 2 ], conclusion T[S] T T[x/] T[x/] D D 2 U[S ] V[S 2 ] T[S] Assume x = derive result, then ssume x = nd lso derive result. - If either derivtion gives contrdiction, the result is the other derivtion - If both re contrdictions, then T contins contrdiction - Otherwise return the intersection of the result of the two derivtions, since ny informtion gined from x = nd x = must be independent of tht vlue Exmple: T = { (, p, p), (, p, p) } cnnot be resolved using r - r7 T[p/] = {(,, ), (,, )} where (,, ) is contrdiction T[p/] = {(,, ), (,, )} where (,, ) is gin contrdiction Hence T[S] results in contrdiction. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.2 (of 73)

21 Stålmrck s Procedure (cont d) Trnsformtion from nd-or-not logic to impliction form: not: G =, G = x or: G = A B A B {( x, y, B), (y, A, ) }, G = x nd: G = A A {(x, A, ) } A B ( A B) {( x, y, ), (y, A, z), (z, B, ) }, G = x Exmple of equivlence checking: b x y.. b c r s t C = {(y, e, x), (e, b, ), (x, f, ), (f,, g), (g, b, )} Check y t nd t y C2 = {(t, h, s), (h, b, ), (s, u, ), (u, r, v), (v, c, ), (r, w, ), (w,, p), (p, b, )} y t: Form C C2 {(, y, t)} which by r yields [y/, t/] nd fter substitution {(, e, x), (e, b, ), (x, f, ), (f,, g), (g, b, ), (, h, s), (h, b, ), (s, u, ), (u, r, v), (v, c, ), (r, w, ), (w,, p), (p, b, )} giving by r gin [h/, s/] nd E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.2 (of 73)

22 Exmple of equivlence checking (cont d): Stålmrck s Procedure (cont d) {(, e, x), (e, b, ), (x, f, ), (f,, g), (g, b, ), (, b, ), (, u, ), (u, r, v), (v, c, ), (r, w, ), (w,, p), (p, b, )} pply r nd r5 nd get [u/, e/ b, x/ f, g/ b, v/ c, r/ w, p/ b] which yields {(, b, f), (f,, b), (, b, ), (, w, c), (w,, b)} Appliction of Dilemm rule to, sy, b yields: b = : {(,, f), (f,, ), (,, ), (, w, c), (w,, )} yields [f/, w/] by r2, thus {(,, ), (,, ), (,, c), (,, )} i.e., (,, ) is contrdiction b = : {(,, f), (f,, ), (,, ), (, w, c), (w,, )} contrdiction gin Conclusion: y t holds. Similrly for t y The two circuits re equivlent. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.22 (of 73)

23 Binry Decision Digrms (BDDs) Clssicl representtion of logic functions: Truth Tble, Krnugh Mps, Sum-of-Products, criticl complexes, etc. Criticl drwbcks: - My not be cnonicl form or is too lrge (exponentil) for useful functions, Equivlence nd tutology checking is hrd - Opertions like complementtion my yield representtion of exponentil size Reduced Ordered Binry Decision Digrms (ROBDDs) A cnonicl form for Boolen functions Often substntilly more compct thn trditionl norml forms Cn be efficiently mnipulted Introduced minly by R. E. Brynt (986). Vrious extensions exist tht cn be dpted to the sitution t hnd (e.g., the type of circuit to be verified) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.23 (of 73)

24 Binry Decision Trees A Binry decision Tree (BDT) is rooted, directed grph with terminl nd nonterminl vertices Ech nonterminl vertex v is lbeled by vrible vr(v) nd hs two successors: - low(v) corresponds to the cse where the vrible v is ssigned - high(v) corresponds to the cse where the vrible v is ssigned Ech terminl vertex v is lbeled by vlue(v) {, } Exmple: BDT for two-bit comprtor, f(, 2,b,b 2 ) = ( b ) ( 2 b 2 ) b 2 b Unordered vribles b 2 b b b b b 2 b E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.24 (of 73)

25 Binry Decision Trees (cont d) We cn decide if truth ssignment x = (x,..., x n ) stisfies formul in BDT in liner time in the number of vribles by trversing the tree from the root to terminl vertex: - If vr(v) x is, the next vertex on the pth is low(v) - If vr(v) x is, the next vertex on the pth is high(v) - If v is terminl vertex then f(x) = f v (x,..., x n ) = vlue(v) - If v is nonterminl vertex with vr(v)=x i, then the structure of the tree is obtined by Shnon s expnsion f v (x,..., x n ) = [ x i f low(v) (x,..., x n )] [x i f high(v) (x,..., x n )] For the comprtor, (, 2, b, b 2 ) leds to terminl vertex lbeled by, i.e., f(,,, ) = Binry decision trees re redundnt: - In the comprtor, there re 6 subtrees with roots lbeled by b 2, but not ll re distinct Merge isomorphic subtrees: - Results in directed cyclic grph (DAG), binry decision digrm (BDD) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.25 (of 73)

26 Cnonicl Form property Reduced Ordered BDD A cnonicl representtion for Boolen functions is desirble: two Boolen functions re logiclly equivlent iff they hve isomorphic representtions This simplifies checking equivlence of two formuls nd deciding if formul is stisfible Two BDDs re isomorphic if there exists bijection h between the grphs such tht - Terminls re mpped to terminls nd nonterminls re mpped to nonterminls - For every terminl vertex v, vlue(v) = vlue(h(v)), nd - For every nonterminl vertex v: vr(v) = vr(h(v)), h(low(v)) = low(h(v)), nd h(high(v)) = high(h(v)) Brynt (986) showed tht BDDs re cnonicl representtion for Boolen functions under two restrictions: () the vribles pper in the sme order long ech pth from the root to terminl (2) there re no isomorphic subtrees or redundnt vertices Reduced Ordered Binry Decision Digrms (ROBDDs) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.26 (of 73)

27 Cnonicl Form Property Requirement (): Impose totl order < on the vribles in the formul: if vertex u hs nonterminl successor v, then vr(u) < vr(v) Requirement (2): repetedly pply three trnsformtion rules (or implicitly in opertions such s disjunction or conjunction). Remove duplicte terminls: eliminte ll but one terminl vertex with given lbel nd redirect ll rcs to the eliminted vertices to the remining one b b b b 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.27 (of 73)

28 Cnonicl Form Property (cont d) 2. Remove duplicte nonterminls: if nonterminls u nd v hve vr(u) = vr(v), low(u) = low(v) nd high(u) = high(v), eliminte one of the two vertices nd redirect ll incoming rcs to the other vertex shre 3. Remove redundnt tests: if nonterminl vertex v hs low(v) = high(v), eliminte v nd redirect ll incoming rcs to low(v) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.28 (of 73)

29 Creting the ROBDD for ( x y z) () x y y z z z z (b) x x becomes x x x becomes x (c) x y y z z 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.29 (of 73)

30 Cnonicl Form Property (cont d) A cnonicl form is obtined by pplying the trnsformtion rules until no further ppliction is possible Brynt showed how this cn be done by procedure clled Reduce in liner time Applictions: - checking equivlence: verify isomorphism between ROBDDs - non-stisfibility: verify if ROBDD hs only one terminl node, lbeled by - tutology: verify if ROBDD hs only one terminl node, lbeled by Exmple: ROBDD of 2-bit Comprtor with vrible order < b < 2 < b 2 : b b 2 b 2 b E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.3 (of 73)

31 ROBDD Exmples OR b out = f (,b) = b b out b b b b BDD ROBDD 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.3 (of 73)

32 ROBDD Exmples (con t) AND b out = f (,b) = b b b b BDD ROBDD 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.32 (of 73)

33 ROBDD Exmples (con t) XOR b + out = f(,b) = b b b b b BDD ROBDD 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.33 (of 73)

34 ROBDD Exmples (con t) NAND b out = f(,b) = ( b) b b b b BDD ROBDD b out b red T.T. b out E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.34 (of 73)

35 Vrible Ordering Problem The size of n ROBDD depends criticlly on the vrible order For order < 2 < b < b 2, the comprtor ROBDD becomes: 2 2 b b b b b 2 b 2 For n n-bit comprtor: < b <... < n < b n gives 3n+2 vertices (liner complexity) <... < n < b... < b n, gives 3x2 n vertices (exponentil complexity!) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.35 (of 73)

36 Vrible Ordering Problem - Exmple ( x y) ( x2 y2) ( x3 y3) x x2 x2 x3 x3 x3 x3 y y y y y y y y y x2 y2 x y2 y y2 y2 y2 y2 x3 y3 y3 y3 y3 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.36 (of 73)

37 Vrible Ordering Problem (cont d) The problem of finding the optiml vrible order is NP-complete Some Boolen functions hve exponentil size ROBDDs for ny order (e.g., multiplier) Heuristics for Vrible Ordering Heuristics developed for finding good vrible order (if it exists) Intuition for these heuristics comes from the observtion tht ROBDDs tend to be smller when relted vribles re close together in the order (e.g., ripple-crry dder) Vribles ppering in subcircuit re relted: they determine the subcircuit s output should usully be close together in the order Dynmic Vrible Ordering Useful if no obvious sttic ordering heuristic pplies During verifiction opertions (e.g., rechbility nlysis) functions chnge, hence initil order is not good lter on Good ROBDD pckges periodiclly internlly reorder vribles to reduce ROBDD size Bsic pproch bsed on neighboring vrible exchnge... < < b <......< b < <... Among number of trils the best is tken, nd the exchnge is repeted 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.37 (of 73)

38 Residul function (cofctor): b {, } Logic Opertions on ROBDDs f x i b (x,...,x n ) = f(x,...,x i-, b, x i+,..., x n ) ROBDD of f x i b computed by depth-first trversl of the ROBDD of f: For ny vertex v which hs pointer to vertex w such tht vr(w) = x i, replce the pointer by low(w) if b is nd by high(w) if b is. If not in cnonicl form, pply Reduce to obtin ROBDD of f x i b. All 6 two-rgument logic opertions on Boolen function implemented efficiently on ROBDDs in liner time in the size of the rgument ROBDDs. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.38 (of 73)

39 Logic Opertions on ROBDDs (cont d) Bsed on Shnnon s expnsion f = [ x f x ] [x f x ] Brynt (986) gve uniform lgorithm, Apply, for computing ll 6 opertions: f * f : n rbitrry logic opertion on Boolen functions f nd f v nd v : the roots of the ROBDDs for f nd f, x = vr(v) nd x = vr(v ) Consider severl cses depending on v nd v () v nd v re both terminl vertices: f * f = vlue(v) * vlue(v ) (2) x = x : use Shnnon s expnsion f * f = [ x (f x * f x )] [x (f x * f x )] to brek the problem into two subproblems, ech is solved recursively The root is v with vr(v) = x Low(v) is (f x * f x ) High(v) is (f x * f x ) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.39 (of 73)

40 Logic Opertions on ROBDDs (cont d) (3) x < x : f x = f x = f since f does not depend on x In this cse the Shnnon s expnsion simplifies to f * f = [ x (f x * f )] [x (f x * f )], similr to (2) nd compute subproblems recursively, (4) x < x: similr to the cse bove Improvement using the if-then-else (ITE) opertor: ITE(F, G, H) = F. G + F. H where F, G nd H re functions Recursive lgorithm bsed on the following, v is the top vrible (lowest index): ITE(F, G, H) = v.(f.g + F.H) v + v.(f.g + F.H) v = v.(f v.g v + F v.h v ) + v.(f v.g v + F v.h v ) = (v, ITE(F v, G v, H v ), ITE(F v, G v, H v )) With terminl cses being: F = ITE(, F, G) = ITE(, G, F) = ITE(F,, ) = ITE(G, F, F) we define NOT(F) = ITE(F,, ) AND(F, G) = ITE(F, G, ) OR(F, G) = ITE(F,, G) XOR(F, G) = ITE(F, G, G) LEQ(F, G) = ITE(F, G, ) etc. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.4 (of 73)

41 Logic Opertions on ROBDDs (cont d) By using dynmic progrmming, it is possible to mke the ITE lgorithm polynomil: () The result must be reduced to ensure tht it is in cnonicl form; - record constructed nodes (unique tble); - before creting new node, check if it lredy exists in this unique hsh tble (2) Record ll previously computed functions in hsh tble (computed tble); - must be implemented efficiently s it my grow very quickly in size; - before computing ny function, check tble for solution lredy obtined Complement edges cn reduce the size of n ROBDD by fctor of 2 - Only one terminl node is lbeled - Edges hve n ttribute (dot) to indicte if they re inverting or not - To mintin cnonicity, dot cn pper only on low(v) edges - Complementtion chieved in O() time by plcing dot on the function edge - F nd F cn shre entry in computed tble - Adpttion of ITE esy Test for F G cn be computed by specilized ITE_CONSTANT lgorithm Comprtor: b b 2 b 2 F 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.4 (of 73)

42 BDD Opertors - Exmple b x y out = f (,b) Tsk: compute ROBDD for f (,b) ) f = x y = ( b) ( b) order,b. b out b out - - b 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.42 (of 73)

43 BDD Opertors - Exmples (con t) 2) f = x y BDD f = BDD x BDD y = Conj (BDD x, BDD y ) BDD x b BDD y b x = x = x = : b = b = : b = b = : = b = : = b 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.43 (of 73)

44 Other Decision Digrms Multiterminl BDD (MTBDD): Pseudo-Boolen functions B n N, terminl nodes re integers Binry Moment Digrms (BMD): for representing nd verifying rithmetic opertions, word-level representtion Ordered Kronecker Functionl BDDs (OKFBDD): Bsed on XOR opertions nd OBDD Free BDDs (FBDD): Different vrible order long different pths in the grph Zero suppressed BDDs (ZBDD) Combintion of vrious forms of DDs integrted in DD softwre pckges: Drechsler et l (U. Freiburg, Germny), Clrke et l (Crnegie Mellon U., USA) Extension to represent systems of liner nd Boolen constrints (DTU) Multiwy Decision Digrms (MDG): Representtion for subset of equtionl firstorder logic for modeling stte mchines with bstrct nd concrete dt (U. of Montrel) Well known ROBDD pckges: CMU (s used in SMV from Crnegie Mellon U.) CUDD, U. of Colordo t Boulder (s used in VIS from UC t Berkeley) Industril pckges: Intel, Lucent, Cdence, Synopsys, Bull Systems, etc. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.44 (of 73)

45 ROBDD: Applictions of ROBDDs Construction DD from circuit description: - Depth-first vs. bredth-first construction (keep only few levels in memory, rest on disk; problem with dynmic reordering) - Prtitioning of Boolen spce, ech prtition represented by seprte grph - Bottom-up vs. top-down, introducing decomposition points Internl correspondences in the two circuits equivlent functions, or complex reltions ATPG-bsed: Combine circuits with n XOR gte on the outputs, show inexistence of test for fult s- - on the output (i.e., the output would hve to be driven to mening tht there is difference in the two circuits) Use ATPG nd lerning to determine equivlent circuit nodes Fst rndom simultion: Detect quickly esy differences Rel tools: Use combintion of techniques, fst nd less powerful first, slow but exct lter 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.45 (of 73)

46 Combintionl Equivlence Chequing - Exmple Two circuits C nd C2 b out b out 2 C C2 =? C: b C2: if then else b MUX: if c then else b b isomorph b c b 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.46 (of 73)

47 Combintionl Equivlence Checking - Multiplexer Exmple Specifiction: if c = then out = else out = b Build ROBBD for Spec: c b out ROBDD: order: c,, b b c Implementtion: c b out = (c ) ( c b) out c b out 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.47 (of 73)

48 Combintionl Equivlence Checking - Mux Exmple (con t) Build ROBDD for Imp: c b x y out ROBDD2 order: c,, b x: c c disjunction (or) c b y: c b c b isomorph to ROBDD! 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.48 (of 73)

49 Alterntive wy to build ROBDD2: Mux Exmple (con t) c b out out = ( c ) ( c b) order: c,, b BBD c b b b b ROBBD b c isomorph to ROBDD! 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.49 (of 73)

50 â bˆ 2 Spec: 2 fâbˆ (, ) = if â= bˆ Comprtor Exmple fâbˆ (, ) 2 b b 2 b 2 b Refinement: f (, 2, b, b 2 ) = if ( = b ) ( 2 = b 2 ) bˆ â= 2 = b b 2 Implicit: b 2 b 2 = = f (...) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.5 (of 73)

51 Comprtor Exmple (cont d) x y = z : z= ( x y) ( x y) x y z b 2 b2 f ( ) f = T T2 [( b) ( b) ] [( 2 b2) ( 2 b2) ] T4 T3 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.5 (of 73)

52 Comprtor Exmple (cont d) T: b T2: b disj: T, T2, T2 b b x = x x = T3: 2 b2 T4: b2 2 disj: T3, T4, T34 2 b2 b2 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.52 (of 73)

53 Comprtor Exmple (cont d) conj. T 2, T 34,, 2 b, b 2 order:, b, 2, b 2 ) independent b 2 b 2 b 2 b Isomorph to the spec 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.53 (of 73)

54 Equivlence Checking in Prctice Usully, combintionl circuits implement rithmetic nd logic opertions, nd next-stte nd output functions of finite-stte mchines (sequentil circuits) Verifying the behvior of the gte-level implementtion ginst the RTL design of digitl systems cn often be reduced to verifying the combintionl circuits - Equivlence comprison between the next-stte nd output functions (combintionl circuits) - Requires tht both hve the sme stte spce (nd of course inputs nd outputs), knowing the mpping between sttes helps... - Cn lso be used to verify gte-level implementtion ginst gte-level model extrcted from lyout - This kind of verifiction is useful for confirming the correctness of mnul chnges or synthesis tools If the stte spce is not the sme, sequentil (behviorl equivlence) of FSM must be considered E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.54 (of 73)

55 Sequentil Circuits nd Finite Stte Mchines x y Comb. Logic f(x, y) Comb. Logic g(x, y) r r s y Clock z r = (r,..., r s ) vector of memory bits stte vribles, memorize encoded sttes y = (y,..., y s ) vector of present stte vlues y = (y,..., y s ) vector of next stte vlues x = (x,..., x m ) vector of input bits encode input symbols z = (z,..., z n ) vector of output bits encode output symbols f = output function, f(x, y) = Mely, f(y) = Moore g = next-stte function Here we consider FSM synchronized on clock trnsitions synchronous sequentil circuits To verify the behvior of such circuits we need efficient representtion for the mnipultion of next-stte nd output functions nd sets of sttes Using chrcteristic functions of reltions nd sets 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.55 (of 73)

56 Representtion of Reltions nd Sets Reltionl Representtion of FSM If R is n-ry reltion over {,} then R cn be represented by (the ROBDD of) its chrcteristic function: f R (v,...,v n ) = iff (v,...,v n ) R - Sme technique cn be used to represent sets of sttes Trnsition reltion N of sequentil circuit is represented by its Boolen chrcteristic function over inputs nd stte vribles: N(x, y,..., y s,y,..., y s ) Exmple: synchronous modulo 8 counter, N(y, y ) = N (y, y ) N (y, y ) N 2 (y, y 2 ) y 2 y y Register (3 bits) y 2 y y Next stte y : y = y y = y y y 2 = (y y ) y 2 Trnsition reltion N(y,y ): N (y,y ) = (y y ) N (y,y ) = (y y y ) N 2 (y,y ) = (y 2 (y y ) y 2 ) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.56 (of 73)

57 Reltionl Representtion of FSM (cont d) Quntified Boolen Formuls (QBF) Needed to construct complex reltions nd mnipulte FSMs V={v,v 2,..., v n } = set of Boolen (propositionl) vribles QBF(V) is the smllest set of formuls such tht - every vrible in V is formul - if f nd g re formuls, then f, f g, f g re formuls - if f is formul nd v V, then v.f nd v.f re formuls A truth ssignment for QBF(V) is function σ: V {,} If {,}, then σ[v ] represents σ[v ](w) = if v = w σ[v ](w) = σ(w) if v w f is formul in QBF(V) nd σ is truth ssignment: σ f if f is true under σ. 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.57 (of 73)

58 Reltionl Representtion of FSM (cont d) Quntified Boolen Formuls (cont d) QBF formuls hve the sme expressive power s ordinry propositionl formuls; however, they my be more concise QBF Semntics: reltion is defined recursively: σ v iff σ(v)=; σ f iff σ f; σ f g iff σ f or σ g; σ f g iff σ f nd σ g; σ v.f iff σ[v ] f or σ[v ] f; σ v.f iff σ[v ] f nd σ[v ] f. Every QBF formul cn represent n n-ry Boolen reltion consisting of those truth ssignments for the vribles in V tht mkes the formul true: Boolen chrcteristic function of the reltion x. f = f x f x, x. f = f x f x In prctice, specil lgorithms needed to hndle quntifiers efficiently (e.g., on ROBDD) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.58 (of 73)

59 Sequentil Equivlence Checking Bsic Ide: To prove the equivlence of two FSMs M nd M 2 (with the sme input nd output lphbet), product mchine is formed which tests the equlity of outputs of the two individul mchines in every stte x M M 2 z z Product Mchine Flg M nd M 2 re equivlent iff the product mchine produces Flg = true output in every stte rechble from the initil stte Coudert et l. were first to recognize the dvntge of representing set of sttes with ROBDD s: Symbolic Bredth-First Serch of the trnsition grph of the product mchine Their technique ws initilly pplied to checking mchine equivlence nd lter extended by McMilln, et l. to symbolic model checking of temporl logic formuls (in CTL) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.59 (of 73)

60 Reltionl Product of FSMs Reltionl Products implementtion using ROBDD A typicl tsk in verifiction: compute reltionl products with bstrction of vribles: v.[f(v) g(v)] Algorithm RelProd computes it in one pss over ROBDDs f(v) nd g(v), insted of constructing f(v) g(v) RelProd uses computed tble (result cche), nd is bsed on Shnnon s expnsion Entries in the cche hve the form (f, g, E, h), where E is set of vribles tht re existentilly qulified out nd f, g nd h re (pointers to) ROBDDs If n entry indexed by f, g nd E is in the cche, then previous cll to RelProd (f, g, E) hs returned h, it is not recomputed Algorithm works well in prctice, even if it hs theoreticl exponentil complexity 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.6 (of 73)

61 Reltionl Representtion of FSMs (cont d) Reltionl Product Algorithm RelProd (f, g: ROBDD, E: set of vribles) if f=flse g=flse then return flse else if f=true g=true then return true else if (f, g, E, h) is cched then return h else let x nd y be the top vribles of f nd g, respectively let z be the topmost of x nd y, h:=relprod(f z=, g z=, E) h:=relprod(f z=, g z=, E) endif insert (f, g, E, h) in cche return h endif if z E then h:=or(h, h) {ROBDD: h h} else h:=ifthenelse(z, h, h) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.6 (of 73)

62 Computing Set of Rechble Sttes Rechbility Anlysis on FSMs Rechble stte computtion (stte enumertion) is needed for FSM equivlence nd model checking S = set of sttes, represented by the ROBDD S (V) Find those sttes S rechble in t most one trnsition from S : ROBDD s S (y) nd N(y, y ), compute n ROBDD representing S : S =S { s s [s S (s, s ) N]} S (y )=S (y ) y i [S (y) N(y,y )] yi y S S S 2 S 2 = S {s s [s S (s, s ) N ]} S 2 (y )=S (y ) y i [S (y) N(y,y )] yi y 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.62 (of 73)

63 Rechbility Anlysis (cont d) Rechbility Anlysis on FSMs (cont d) In generl, the sttes rechble in t most k+ steps re represented by: S k+ (y ) = S (y ) y i [ S k (y) N(y.y )] yi y As ech set of sttes is superset of the previous one, nd the totl number of sttes is finite, t some point, we must hve S k+ = S k, k 2 s the number of sttes Rechbility computtion cn be viewed s finding lest fixpoint Wht bout inputs x? Existentilly quntify them out in the reltionl product (equivlent to closing the system with non-deterministic source of vlues for x ) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.63 (of 73)

64 BDD Encoding M M2 = Flg Product Mchine Bsic ide: ) connect both mchines to equlity check of outputs 2) compute set of rechble sttes 2) representing set of sttes using ROBDD 2b) computing imges of BDDs of ll next sttes (using trnsition reltions) 2c) rechbility itertion (using imges strting from one initil stte until sequence emerges)... R = initil BDD R i + = R i Imge( R i ) convergence; 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.64 (of 73)

65 Sequentil Equivlence Checking Exmple ) Connect both mchines to equlity check of outputs i i i mux mux x Q D clk y x Q D clk y out x2 Q D clk y2 out + flg 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.65 (of 73)

66 Sequentil Equivlence Checking Exmple (con t) 2) Representing set of sttes using ROBDD Initil Stte: x = x = x2 = {,,} set x x x2 formul ROBDD x2 x x 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.66 (of 73)

67 Sequentil Equivlence Checking Exmple (cont d) 2) Representing set of sttes using ROBDDs Set {} {,,,,,} {} Formul x x x2 x x x x x2 ROBDD x x x2 x x x x x2 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.67 (of 73)

68 Sequentil Equivlence Checking Exmple (cont d) 2b) Compute imge of set { } set = { } x x x2 x x x2 imge: ( x x x2) ( x x x2) i = i = ( BDD BDD ) trnsition reltion: ( y= ( x i) ) ( y= ( i x) ( i x2) ) ( y2= ( i x2) ( i x) ) 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.68 (of 73)

69 Sequentil Equivlence Checking Exmple (cont d) 2b) Compute imges of set { } y = x i Tnsition{ y = i x Reltion y2 = ( ) ( i x3) ( i x2) ( i x) i i i = (i = ) = (i = ) (i = ) (i = ) (i = ) (i = ) x: x: x2: i = i = {{,,}, {,,}} ( x x x2) BDD BDD2 ( x x x2) ROBDD disj. BDD BDD2 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.69 (of 73)

70 Exmple (cont d) 2c) Rechbility itertion R = x x x2 R = ( x x x2) ( x x x2) R R 2 = R In terms of sets: R = {} R = {, } R2 = {,} R2 = R converged ll sttes reched! 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.7 (of 73)

71 Commercil tools: Chryslis: Design Verifier Synopsys: Formlity Cdence: Affirm Verysys: Torndo AHL: ChekOff-E Appliction: Equivlence Checking Tools Used to prove equivlence of two sequentil circuits tht hve the sme stte vribles (or t lest the sme stte spce nd known mpping between sttes) by verifying tht they hve the sme next-stte nd output functions Used in plce of gte vs. RTL verifiction by simultion Recommendtions: Use modulr design, reltively smll modules, k - 2k gtes Mintin hierrchy during synthesis (not flttening) nd before lyout: equivlence cn be proven hierrchiclly much fster, especilly for rithmetic circuits 997 E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.7 (of 73)

72 Equivlence Checking Tools (cont d) CheckOff-E Commercil product by Abstrct Hrdwre Ltd. (UK) nd Siemens AG (Germny) Performs behviorl comprison of two Finite Stte Mchines Input EDIF netlist + librry or VHDL VHDL subset (superset of synthesizble synchronous VHDL) - no rel time cluses (fter, wit for), no conditionl loop sttements Interprets VHDL simultion semntics to build Micro FSM Converts to Mcro FSM by merging trnsition until stbiliztion t ech time t Mcro FSM is strting point for ny verifiction; representtion in ROBDD For more informtion: E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.72 (of 73)

73 References. V. Sperschneider, G. Antoniou. Logic: A Foundtion for Computer Science. Addison- Wesley, S. Reeves, M. Clrke. Logic for Computer Science. Addison-Wesley, Aln J. Hu, Forml Hrdwre Verifiction with BDDs: An Introduction, IEEE Pcific Rim Conference on Communictions, Computers, nd Signl Processing, pp , J. Jin, A. Nryn, M. Fujit, nd A. Sngiovnni-Vincentelli, Forml Verifiction of Combintionl Circuits, VLSI Design, R.E. Brynt. Grph-Bsed Algorithms for Boolen Function Mnipultion. IEEE Trnsctions on Computers, C-35(8), pp , August R.E. Brynt. Symbolic Boolen Mnipultion with Ordered Binry Decision Digrms. ACM Computing Surveys, 24(3), 992, pp R.E. Brynt. Binry Decision Digrms nd Beyond: Enbling Technologies for Forml Verifiction. Interntionl Conference on Computer-Aided Design, pp , S. Minto. Binry Decision Digrms nd Applictions for VLSI CAD. Kluwer Acdemic Publishers, M. Sheern, G. Stålmrck. A tutoril on Stålmrck s proof procedure for propositionl logic. Forml Methods in Systems Design, Kluwer, 999..O. Coudert nd J.C. Mdre, A Unified Frmework for the Forml Verifiction of Sequentil Circuits, Int. Conference on Computer-Aided Design, pp , 99..H. Touti, H. Svoj, B. Lin, R.K. Bryton, nd A. Sngiovnni-Vincentelli, Implicit Stte Enumertion of Finite Stte Mchines Using BDD s, Int. Conference on Computer-Aided Design, pp. 3-33, E. Cerny, X. Song, 999 E. Cerny, 22 S. Thr 4/28/ 2.73 (of 73)

KNOWLEDGE-BASED AGENTS INFERENCE

KNOWLEDGE-BASED AGENTS INFERENCE AGENTS THAT REASON LOGICALLY KNOWLEDGE-BASED AGENTS Two components: knowledge bse, nd n inference engine. Declrtive pproch to building n gent. We tell it wht it needs to know, nd It cn sk itself wht to

More information

Boolean algebra.

Boolean algebra. http://en.wikipedi.org/wiki/elementry_boolen_lger Boolen lger www.tudorgir.com Computer science is not out computers, it is out computtion nd informtion. computtion informtion computer informtion Turing

More information

Learning Moore Machines from Input-Output Traces

Learning Moore Machines from Input-Output Traces Lerning Moore Mchines from Input-Output Trces Georgios Gintmidis 1 nd Stvros Tripkis 1,2 1 Alto University, Finlnd 2 UC Berkeley, USA Motivtion: lerning models from blck boxes Inputs? Lerner Forml Model

More 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

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

Review of Calculus, cont d

Review of Calculus, cont d Jim Lmbers MAT 460 Fll Semester 2009-10 Lecture 3 Notes These notes correspond to Section 1.1 in the text. Review of Clculus, cont d Riemnn Sums nd the Definite Integrl There re mny cses in which some

More 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

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

Handout: Natural deduction for first order logic

Handout: Natural deduction for first order logic MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes

More information

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties; Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

More information

Boolean Algebra. Boolean Algebras

Boolean Algebra. Boolean Algebras Boolen Algebr Boolen Algebrs A Boolen lgebr is set B of vlues together with: - two binry opertions, commonly denoted by + nd, - unry opertion, usully denoted by or ~ or, - two elements usully clled zero

More information

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite Unit #8 : The Integrl Gols: Determine how to clculte the re described by function. Define the definite integrl. Eplore the reltionship between the definite integrl nd re. Eplore wys to estimte the definite

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

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

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More 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

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

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificil Intelligence Spring 2007 Lecture 3: Queue-Bsed Serch 1/23/2007 Srini Nrynn UC Berkeley Mny slides over the course dpted from Dn Klein, Sturt Russell or Andrew Moore Announcements Assignment

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

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac REVIEW OF ALGEBRA Here we review the bsic rules nd procedures of lgebr tht you need to know in order to be successful in clculus. ARITHMETIC OPERATIONS The rel numbers hve the following properties: b b

More information

19 Optimal behavior: Game theory

19 Optimal behavior: Game theory Intro. to Artificil Intelligence: Dle Schuurmns, Relu Ptrscu 1 19 Optiml behvior: Gme theory Adversril stte dynmics hve to ccount for worst cse Compute policy π : S A tht mximizes minimum rewrd Let S (,

More information

New data structures to reduce data size and search time

New data structures to reduce data size and search time New dt structures to reduce dt size nd serch time Tsuneo Kuwbr Deprtment of Informtion Sciences, Fculty of Science, Kngw University, Hirtsuk-shi, Jpn FIT2018 1D-1, No2, pp1-4 Copyright (c)2018 by The Institute

More information

Nenofex: Expanding NNF for QBF Solving

Nenofex: Expanding NNF for QBF Solving Institute for Forml Models nd Verifiction (FMV) Johnnes Kepler University, Linz, Austri Nenofex Negtion Norml Form Expnsion Solver for Quntified Boolen Formule (QBF) propositionl formul + quntified vribles

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

More 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

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

More 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

Revision Sheet. (a) Give a regular expression for each of the following languages:

Revision Sheet. (a) Give a regular expression for each of the following languages: Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)

More information

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature CMDA 4604: Intermedite Topics in Mthemticl Modeling Lecture 19: Interpoltion nd Qudrture In this lecture we mke brief diversion into the res of interpoltion nd qudrture. Given function f C[, b], we sy

More information

Combinational Circuits Verification. 2. Verification by Equivalence Checking. Combinational Equivalence Checking (con t)

Combinational Circuits Verification. 2. Verification by Equivalence Checking. Combinational Equivalence Checking (con t) Comintionl Ciruits Verifition 2. Verifition y Equivlene Cheking Pge Comintionl Ciruits Verifition 2.2 Propositionl Logi (Clulus) 2.5 Propositionl Resolution 2. Stålmrk s Proedure 2.9 Redued Ordered Binry

More information

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

RELATIONAL MODEL.

RELATIONAL MODEL. RELATIONAL MODEL Structure of Reltionl Dtbses Reltionl Algebr Tuple Reltionl Clculus Domin Reltionl Clculus Extended Reltionl-Algebr- Opertions Modifiction of the Dtbse Views EXAMPLE OF A RELATION BASIC

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

expression simply by forming an OR of the ANDs of all input variables for which the output is

expression simply by forming an OR of the ANDs of all input variables for which the output is 2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output

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

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

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

Review of basic calculus

Review of basic calculus Review of bsic clculus This brief review reclls some of the most importnt concepts, definitions, nd theorems from bsic clculus. It is not intended to tech bsic clculus from scrtch. If ny of the items below

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

Good-for-Games Automata versus Deterministic Automata.

Good-for-Games Automata versus Deterministic Automata. Good-for-Gmes Automt versus Deterministic Automt. Denis Kuperberg 1,2 Mich l Skrzypczk 1 1 University of Wrsw 2 IRIT/ONERA (Toulouse) Séminire MoVe 12/02/2015 LIF, Luminy Introduction Deterministic utomt

More information

MAA 4212 Improper Integrals

MAA 4212 Improper Integrals Notes by Dvid Groisser, Copyright c 1995; revised 2002, 2009, 2014 MAA 4212 Improper Integrls The Riemnn integrl, while perfectly well-defined, is too restrictive for mny purposes; there re functions which

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

CSC 473 Automata, Grammars & Languages 11/9/10

CSC 473 Automata, Grammars & Languages 11/9/10 CSC 473 utomt, Grmmrs & Lnguges 11/9/10 utomt, Grmmrs nd Lnguges Discourse 06 Decidbility nd Undecidbility Decidble Problems for Regulr Lnguges Theorem 4.1: (embership/cceptnce Prob. for DFs) = {, w is

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

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

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

4.4 Areas, Integrals and Antiderivatives

4.4 Areas, Integrals and Antiderivatives . res, integrls nd ntiderivtives 333. Ares, Integrls nd Antiderivtives This section explores properties of functions defined s res nd exmines some connections mong res, integrls nd ntiderivtives. In order

More information

Review of Gaussian Quadrature method

Review of Gaussian Quadrature method Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge

More information

IST 4 Information and Logic

IST 4 Information and Logic IST 4 Informtion nd Logic T = tody x= hw#x out x= hw#x due mon tue wed thr fri 31 M1 1 7 oh M1 14 oh 1 oh 2M2 21 oh oh 2 oh Mx= MQx out Mx= MQx due 28 oh M2 oh oh = office hours 5 3 12 oh 3 T 4 oh oh 19

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

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q

More 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

Software Engineering using Formal Methods

Software Engineering using Formal Methods Softwre Engineering using Forml Methods Propositionl nd (Liner) Temporl Logic Wolfgng Ahrendt 13th Septemer 2016 SEFM: Liner Temporl Logic /GU 160913 1 / 60 Recpitultion: FormlistionFormlistion: Syntx,

More information

Lecture Note 9: Orthogonal Reduction

Lecture Note 9: Orthogonal Reduction MATH : Computtionl Methods of Liner Algebr 1 The Row Echelon Form Lecture Note 9: Orthogonl Reduction Our trget is to solve the norml eution: Xinyi Zeng Deprtment of Mthemticl Sciences, UTEP A t Ax = A

More information

Automata, Games, and Verification

Automata, Games, and Verification Automt, Gmes, nd Verifiction Prof. Bernd Finkbeiner, Ph.D. Srlnd University Summer Term 2015 Lecture Notes by Bernd Finkbeiner, Felix Klein, Tobis Slzmnn These lecture notes re working document nd my contin

More information

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!!

Before we can begin Ch. 3 on Radicals, we need to be familiar with perfect squares, cubes, etc. Try and do as many as you can without a calculator!!! Nme: Algebr II Honors Pre-Chpter Homework Before we cn begin Ch on Rdicls, we need to be fmilir with perfect squres, cubes, etc Try nd do s mny s you cn without clcultor!!! n The nth root of n n Be ble

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

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

Overview of Today s Lecture:

Overview of Today s Lecture: CPS 4 Computer Orgniztion nd Progrmming Lecture : Boolen Alger & gtes. Roert Wgner CPS4 BA. RW Fll 2 Overview of Tody s Lecture: Truth tles, Boolen functions, Gtes nd Circuits Krnugh mps for simplifying

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

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

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

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

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

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

Improper Integrals, and Differential Equations

Improper Integrals, and Differential Equations Improper Integrls, nd Differentil Equtions October 22, 204 5.3 Improper Integrls Previously, we discussed how integrls correspond to res. More specificlly, we sid tht for function f(x), the region creted

More information

Module 9: Tries and String Matching

Module 9: Tries and String Matching Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer

More information

Module 9: Tries and String Matching

Module 9: Tries and String Matching Module 9: Tries nd String Mtching CS 240 - Dt Structures nd Dt Mngement Sjed Hque Veronik Irvine Tylor Smith Bsed on lecture notes by mny previous cs240 instructors Dvid R. Cheriton School of Computer

More information

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim Mth 9 Course Summry/Study Guide Fll, 2005 [1] Limits Definition of Limit: We sy tht L is the limit of f(x) s x pproches if f(x) gets closer nd closer to L s x gets closer nd closer to. We write lim f(x)

More information

Math 1B, lecture 4: Error bounds for numerical methods

Math 1B, lecture 4: Error bounds for numerical methods Mth B, lecture 4: Error bounds for numericl methods Nthn Pflueger 4 September 0 Introduction The five numericl methods descried in the previous lecture ll operte by the sme principle: they pproximte the

More information

Bernoulli Numbers Jeff Morton

Bernoulli Numbers Jeff Morton Bernoulli Numbers Jeff Morton. We re interested in the opertor e t k d k t k, which is to sy k tk. Applying this to some function f E to get e t f d k k tk d k f f + d k k tk dk f, we note tht since f

More information

Lecture 14: Quadrature

Lecture 14: Quadrature Lecture 14: Qudrture This lecture is concerned with the evlution of integrls fx)dx 1) over finite intervl [, b] The integrnd fx) is ssumed to be rel-vlues nd smooth The pproximtion of n integrl by numericl

More information

Lecture 2 : Propositions DRAFT

Lecture 2 : Propositions DRAFT CS/Mth 240: Introduction to Discrete Mthemtics 1/20/2010 Lecture 2 : Propositions Instructor: Dieter vn Melkeeek Scrie: Dlior Zelený DRAFT Lst time we nlyzed vrious mze solving lgorithms in order to illustrte

More information

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan

CS 267: Automated Verification. Lecture 8: Automata Theoretic Model Checking. Instructor: Tevfik Bultan CS 267: Automted Verifiction Lecture 8: Automt Theoretic Model Checking Instructor: Tevfik Bultn LTL Properties Büchi utomt [Vrdi nd Wolper LICS 86] Büchi utomt: Finite stte utomt tht ccept infinite strings

More information

UNIT 1 FUNCTIONS AND THEIR INVERSES Lesson 1.4: Logarithmic Functions as Inverses Instruction

UNIT 1 FUNCTIONS AND THEIR INVERSES Lesson 1.4: Logarithmic Functions as Inverses Instruction Lesson : Logrithmic Functions s Inverses Prerequisite Skills This lesson requires the use of the following skills: determining the dependent nd independent vribles in n exponentil function bsed on dt from

More information

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as Improper Integrls Two different types of integrls cn qulify s improper. The first type of improper integrl (which we will refer to s Type I) involves evluting n integrl over n infinite region. In the grph

More information

8 Laplace s Method and Local Limit Theorems

8 Laplace s Method and Local Limit Theorems 8 Lplce s Method nd Locl Limit Theorems 8. Fourier Anlysis in Higher DImensions Most of the theorems of Fourier nlysis tht we hve proved hve nturl generliztions to higher dimensions, nd these cn be proved

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

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

DATA Search I 魏忠钰. 复旦大学大数据学院 School of Data Science, Fudan University. March 7 th, 2018

DATA Search I 魏忠钰. 复旦大学大数据学院 School of Data Science, Fudan University. March 7 th, 2018 DATA620006 魏忠钰 Serch I Mrch 7 th, 2018 Outline Serch Problems Uninformed Serch Depth-First Serch Bredth-First Serch Uniform-Cost Serch Rel world tsk - Pc-mn Serch problems A serch problem consists of:

More information

Uninformed Search Lecture 4

Uninformed Search Lecture 4 Lecture 4 Wht re common serch strtegies tht operte given only serch problem? How do they compre? 1 Agend A quick refresher DFS, BFS, ID-DFS, UCS Unifiction! 2 Serch Problem Formlism Defined vi the following

More information

1.2. Linear Variable Coefficient Equations. y + b "! = a y + b " Remark: The case b = 0 and a non-constant can be solved with the same idea as above.

1.2. Linear Variable Coefficient Equations. y + b ! = a y + b  Remark: The case b = 0 and a non-constant can be solved with the same idea as above. 1 12 Liner Vrible Coefficient Equtions Section Objective(s): Review: Constnt Coefficient Equtions Solving Vrible Coefficient Equtions The Integrting Fctor Method The Bernoulli Eqution 121 Review: Constnt

More information

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams

Chapter 4 Contravariance, Covariance, and Spacetime Diagrams Chpter 4 Contrvrince, Covrince, nd Spcetime Digrms 4. The Components of Vector in Skewed Coordintes We hve seen in Chpter 3; figure 3.9, tht in order to show inertil motion tht is consistent with the Lorentz

More information

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So. 5/9/ Comintionl Logic ENGG05 st Semester, 0 Dr. Hyden So Representtions of Logic Functions Recll tht ny complex logic function cn e expressed in wys: Truth Tle, Boolen Expression, Schemtics Only Truth

More information

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS. THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS RADON ROSBOROUGH https://intuitiveexplntionscom/picrd-lindelof-theorem/ This document is proof of the existence-uniqueness theorem

More information

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral Improper Integrls Every time tht we hve evluted definite integrl such s f(x) dx, we hve mde two implicit ssumptions bout the integrl:. The intervl [, b] is finite, nd. f(x) is continuous on [, b]. If one

More information

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below. Dulity #. Second itertion for HW problem Recll our LP emple problem we hve been working on, in equlity form, is given below.,,,, 8 m F which, when written in slightly different form, is 8 F Recll tht we

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2011.2.1 COMPUTER SCIENCE TRIPOS Prt IA Tuesdy 7 June 2011 1.30 to 4.30 COMPUTER SCIENCE Pper 2 Answer one question from ech of Sections A, B nd C, nd two questions from Section D. Submit the nswers

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

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems

Global Types for Dynamic Checking of Protocol Conformance of Multi-Agent Systems Globl Types for Dynmic Checking of Protocol Conformnce of Multi-Agent Systems (Extended Abstrct) Dvide Ancon, Mtteo Brbieri, nd Vivin Mscrdi DIBRIS, University of Genov, Itly emil: dvide@disi.unige.it,

More information

USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year

USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year 1/1/21. Fill in the circles in the picture t right with the digits 1-8, one digit in ech circle with no digit repeted, so tht no two circles tht re connected by line segment contin consecutive digits.

More information

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

SUMMER KNOWHOW STUDY AND LEARNING CENTRE SUMMER KNOWHOW STUDY AND LEARNING CENTRE Indices & Logrithms 2 Contents Indices.2 Frctionl Indices.4 Logrithms 6 Exponentil equtions. Simplifying Surds 13 Opertions on Surds..16 Scientific Nottion..18

More information

Chapter 1. Basic Concepts

Chapter 1. Basic Concepts Socrtes Dilecticl Process: The Þrst step is the seprtion of subject into its elements. After this, by deþning nd discovering more bout its prts, one better comprehends the entire subject Socrtes (469-399)

More information

38 Riemann sums and existence of the definite integral.

38 Riemann sums and existence of the definite integral. 38 Riemnn sums nd existence of the definite integrl. In the clcultion of the re of the region X bounded by the grph of g(x) = x 2, the x-xis nd 0 x b, two sums ppered: ( n (k 1) 2) b 3 n 3 re(x) ( n These

More information

Overview of Calculus I

Overview of Calculus I Overview of Clculus I Prof. Jim Swift Northern Arizon University There re three key concepts in clculus: The limit, the derivtive, nd the integrl. You need to understnd the definitions of these three things,

More information

Reasoning with Bayesian Networks

Reasoning with Bayesian Networks Complexity of Probbilistic Inference Compiling Byesin Networks Resoning with Byesin Networks Lecture 5: Complexity of Probbilistic Inference, Compiling Byesin Networks Jinbo Hung NICTA nd ANU Jinbo Hung

More information

Administrivia CSE 190: Reinforcement Learning: An Introduction

Administrivia CSE 190: Reinforcement Learning: An Introduction Administrivi CSE 190: Reinforcement Lerning: An Introduction Any emil sent to me bout the course should hve CSE 190 in the subject line! Chpter 4: Dynmic Progrmming Acknowledgment: A good number of these

More information

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

More information

Genetic Programming. Outline. Evolutionary Strategies. Evolutionary strategies Genetic programming Summary

Genetic Programming. Outline. Evolutionary Strategies. Evolutionary strategies Genetic programming Summary Outline Genetic Progrmming Evolutionry strtegies Genetic progrmming Summry Bsed on the mteril provided y Professor Michel Negnevitsky Evolutionry Strtegies An pproch simulting nturl evolution ws proposed

More information

Reinforcement learning II

Reinforcement learning II CS 1675 Introduction to Mchine Lerning Lecture 26 Reinforcement lerning II Milos Huskrecht milos@cs.pitt.edu 5329 Sennott Squre Reinforcement lerning Bsics: Input x Lerner Output Reinforcement r Critic

More information