Introduction to Languages and Grammars

Size: px
Start display at page:

Download "Introduction to Languages and Grammars"

Transcription

1 Introduction to Lnguges nd Grmmrs

2 lphbets nd Lnguges n lphbet is finite non-empty set. Let nd T be lphbets. T = { s t s ε, t ε T } (We ll often write T for T.) λ = empty string, string of length one 0 = {λ } 1 = n = (n-1), n > 1 + = 1 U 2 U 3 U... * = 0 U + lnguge L over n lphbet is subset of *.

3 How Mny Lnguges re There? How mny lnguges over prticulr lphbet re there? Uncountbly infinitely mny! Then, ny finite method of describing lnguges cn not include ll of them. Forml lnguge theory gives us techniques for defining some lnguges over n lphbet.

4 Why should I cre bout? Concepts of syntx nd semntics used widely in computer science: Bsic compiler functions Development of computer lnguges xploring the cpbilities nd limittions of lgorithmic problem solving

5 Methods for Defining Lnguges Grmmr Rules for defining which strings over n lphbet re in prticulr lnguge utomton (plurl is utomt) mthemticl model of computer which cn determine whether prticulr string is in the lnguge

6 Definition of Grmmr grmmr G is 4 tuple G = (N, Σ, P, ), where N is n lphbet of nonterminl symbols Σ is n lphbet of terminl symbols N nd Σ re disjoint is n element of N; is the strt symbol or initil symbol of the grmmr P is set of productions of the form α -> β where α is in (N U Σ)* N (N U Σ)* β is in (N U Σ)*

7 Definition of Lnguge Generted by Grmmr We define => by γ α δ => γ δ β if α -> β is in P, nd γ nd δ re in (N U Σ)* =>+ is the trnsitive closure of => =>* is the reflexive trnsitive closure of => The lnguge L generted by grmmr G = (N, Σ, P, ), is defined by L = L(G) = { x *=> x nd x is in Σ* }

8 Clsses of Grmmrs (The Chomsky Hierrchy) Type 0, Phrse tructure (sme s bsic grmmr definition) Type 1, Context ensitive (1) α -> β where α is in (N U Σ)* N (N U Σ)*, β is in (N U Σ)+, nd length(α) length(β) (2) γ δ -> γ β δ where is in N, β is in (N U Σ) +, nd γ nd δ re in (N U Σ)* Type 2, Context Free -> β where is in N, β is in (N U Σ) * Liner -> x or -> x B y, where nd B re in N nd x nd y re in Σ* Type 3, Regulr xpressions (1) left liner -> B or ->, where nd B re in N nd is in Σ (2) right liner -> B or ->, where nd B re in N nd is in Σ

9 Comments on the Chomsky Hierrchy (1) Definitions (1) nd (2) for context sensitive re equivlent. Definitions (1) nd (2) for regulr expressions re equivlent. If grmmr hs productions of ll three of the forms described in definitions (1) nd (2) for regulr expressions, then it is liner grmmr. ch definition of context sensitive is restriction on the definition of phrse structure. very context free grmmr cn be converted to context sensitive grmmr with stisfies definition (2) which genertes the sme lnguge except the lnguge generted by the context sensitive grmmr cnnot contin the empty string λ. The definition of liner grmmr is restriction on the definition of context free. The definitions of left liner nd right liner re restrictions on the definition of liner.

10 Comments on the Chomsky Hierrchy very lnguge generted by left liner grmmr cn be generted by right liner grmmr, nd every lnguge generted by right liner grmmr cn be generted by left liner grmmr. very lnguge generted by left liner or right liner grmmr cn be generted by liner grmmr. very lnguge generted by liner grmmr cn be generted by context free grmmr. Let L be lnguge generted by context free grmmr. If L does not contin λ, then L cn be generted by context sensitive grmmr. If L contins λ, then L-{λ} cn be generted by context sensitive grmmr. very lnguge generted by context sensitive grmmr cn be generted by phrse structure grmmr.

11 xmple : Left Liner Grmmr for Identifiers -> -> b -> 1 -> 2 -> -> b => => 1 => 1 => 2 => b 2 => 1 b 2 => 1 b 2

12 xmple : Right Liner Grmmr for Identifiers -> T -> b T -> -> b T -> T T -> b T T -> 1 T T -> 2 T T -> T -> b T -> 1 T -> 2 => => T => 1 => T => 1 T => 1 b T => 1 b 2

13 xmple: Right Liner Grmmr for { n b m c p n, m, p > 0} -> -> -> b B B -> b B B -> c C B -> c C -> c C C -> c => => => => b B => b c C => b c c

14 xmple : Liner Grmmr for { n b n n >0 } -> b -> b => b => b b => b b b => b b b b

15 xmple : Liner Grmmr for { n b m c m d n n > 0} (Context Free Grmmr) -> b -> T b T -> c T d T -> c d => b => b b => T b b b => c T d b b b => c c d d b b b

16 nother xmple : Context Free Grmmr for { n b n c m d m n > 0} -> R T R -> R b R -> b T -> c T d T -> c d => R T => R b T => R b b T => b b b T => b b b c T d => b b b c c d d

17 Context Free Grmmr for xpressions -> -> + T -> - T -> T T -> T * F T -> T / F T -> F F -> ( ) F -> F -> b F -> c F -> d F -> e => => + T => - T + T => T - T + T => F - T + T => - T + T => - T * F + T => - F * F + T => - b * F + T => - b * c + T => - b * c + F => - b * c - d

18 Context ensitive Grmmr for { n b n c n n >0} -> B C -> B C B -> b b B -> b b C B -> B C b C -> b c c C -> c c => B C => B C B C => b C B C => b B C C => b b C C => b b c C => b b c c

19 The Chomsky Hierrchy nd the Block Digrm of Compiler Type 3 Type 2 ource lnguge cnner progrm tokens Prser tree Intermedite Code Genertor Optimizer Int. code Code Genertor Object lnguge progrm Type 1 ymbol Tble Mnger rror Hndler rror messges ymbol Tble

20 utomt Turing mchine (Tm) Liner bounded utomton (lb) 2-stck pushdown utomton (2pd) (1-stck) pushdown utomton (pd) 1 turn pushdown utomton finite stte utomton (fs)

21 Recursive Definition Primitive regulr expressions: Given regulr expressions r 1 nd, r 2 λ, α r r r * r 1 ( r ) 1 r 2 2 re regulr expressions

22 xmple ( + b) * L (( + b) *) = L (( + b) ) L( *) ( b) L( *) = L + = = = = ( L( ) L( b) ) ( L( ) )* ({ } { b} ) { } ( )* {, b}{ λ,,,,... } {,,,..., b, b, b,... }

23 xmple ( + b) * L (( + b) *) = L (( + b) ) L( *) ( b) L( *) = L + = = = = ( L( ) L( b) ) ( L( ) )* ({ } { b} ) { } ( )* {, b}{ λ,,,,... } {,,,..., b, b, b,... }

24 xmple Regulr expression r = ( ) *( bb) * b L 2n 2 m ( r) = { b b : n, m 0}

25 xmple Regulr expression r = ( 0 + 1)*00 (0 + 1) * L (r) = { ll strings with t lest two consecutive 0 }

26 xmple Regulr expression r = ( 1+ 01)*(0 + λ) L (r) = { ll strings without two consecutive 0 }

27 quivlent Regulr xpressions Definition: r1 r2 Regulr expressions nd re equivlent if L ( r1 ) = L( r2 )

28 xmple L = { ll strings without two consecutive 0 } r1 = (1 + 01)*(0 + λ) r2 = (1*011*)*(0 + λ ) + 1*(0 + λ) L r ) = L( r ) = ( 1 2 L r1 nd r2 re equivlent regulr expr.

29 Liner Grmmrs Grmmrs with t most one vrible t the right side of production xmples: λ b b b λ

30 Non-Liner Grmmr Grmmr : G λ b b L( G) = { w: n ( w) n ( w)} = b Number of in string w

31 nother Liner Grmmr G Grmmr : B λ B b n n L( G) = { b : n 0}

32 Right-Liner Grmmrs ll productions hve form: xb or x xmple: b string of terminls

33 Left-Liner Grmmrs ll productions hve form: Bx or x xmple: b b B string of terminls B

34 Regulr Grmmrs regulr grmmr is ny right-liner or left-liner grmmr xmples: G 1 G 2 b b b B B

35 Observtion Regulr grmmrs generte regulr lnguges xmples: G 1 G 2 b B b b B L ( G 1 ) = ( b) * L ( G2) = b( b)*

36 Closure under lnguge opertions Theorem. The set of regulr lnguges is closed under the ll the following opertions. In other words if L 1 nd L 2 re regulr, then so is: Union: L 1 L 2 Intersection: L 1 L 2 Complement: L 1c = Σ* \ L 1 Difference: L 1 \ L 2 Conctention: L 1 L 2 Kleene str: L 1 *

37 Regulr expressions versus regulr lnguges We defined regulr lnguge to be one tht is ccepted by some DF (or NF). We cn prove tht lnguge is regulr by this definition if nd only if it corresponds to some regulr expression. Thus, 1) Given DF or NF, there is some regulr expression to describe the lnguge it ccepts 2) Given regulr expression, we cn construct DF or NF to ccept the lnguge it represents

38 ppliction: Lexicl-nlyzers nd lexicl-nlyzer genertors Lexicl nlyzer: Input: Chrcter string comprising computer progrm in some lnguge Output: string of symbols representing tokens elements of tht lnguge x in C++ or Jv : Input: if (x == 3) y = 2; Output (sort of): if-token, expression-token, vriblenme-token, ssignment-token, numeric-constnt token, sttement-seprtor-token.

39 Lexicl-nlyzer genertors Input: list of tokens in progrmming lnguge, described s regulr expressions Output: lexicl nlyzer for tht lnguge Technique: Builds n NF recognizing the lnguge tokens, then converts to DF.

40 Regulr xpressions: pplictions nd Limittions Regulr expressions hve mny pplictions: pecifiction of syntx in progrmming lnguges Design of lexicl nlyzers for compilers Representtion of ptterns to mtch in serch engines Provide n bstrct wy to tlk bout progrmming problems (lnguge correpsonds to inputs tht produce output yes in yes/no progrmming problem) Limittions There re lots of resonble lnguges tht re not regulr hence lots of progrmming problems tht cn t be solved using power of DF or NF

41 CFL Context-Free Lnguges n b n R { } { ww } Regulr Lnguges

42 Context-Free Lnguges Context-Free Grmmrs Pushdown utomt stck utomton

43 xmple context-free grmmr G: λ b derivtion: b bb bb

44 λ b L(G) = n n { b : n 0} Describes prentheses: (((( ))))

45 xmple context-free grmmr G: bb λ derivtion: bb bb

46 bb λ L (G) = { ww R : w {, b}*}

47 xmple context-free grmmr G: b λ derivtion: b b b

48 context-free grmmr G: b λ derivtion: b b bb bb

49 Definition: Context-Free Lnguges L lnguge is context-free if nd only if there is context-free grmmr G with L = L(G)

50 Derivtion Order 1. B B Bb Leftmost derivtion: λ 3 5. B λ BBBBbb 4 5 Rightmost derivtion: 1 4 B 5 Bb 2 b 3 b b

51 B bbb B λ Leftmost derivtion: B bbbb bbb bbbbbb bbbbb bbbb Rightmost derivtion: B bbb bb bbbbb bbbb

52 B λ B Bb λ B B Bb B B b

53 B λ B Bb λ B B Bb Bb B B b λ

54 B λ B Bb λ B B Bb Bb b Derivtion Tree B B b λ λ

55 B λ B Bb λ B B Bb Bb b Derivtion Tree B yield B b λλ = b b λ λ

56 ometimes, derivtion order doesn t mtter Leftmost: B B B Bb b Rightmost: B Bb b b b me derivtion tree B B b λ λ

57 ) ( * leftmost derivtion

58 ) ( leftmost derivtion

59 + ( ) + Two derivtion trees + +

60 The grmmr is mbiguous: + ( ) string + hs two derivtion trees + +

61 Definition: context-free grmmr is mbiguous w L(G) G if some string hs: two or more derivtion trees Copyright 2006 ddison-wesley. ll rights reserved. 1-61

62 In other words: context-free grmmr is mbiguous w L(G) G if some string hs: two or more leftmost derivtions (or rightmost)

63 = =

64 mbiguity is bd for progrmming lnguges We wnt to remove mbiguity Copyright 2006 ddison-wesley. ll rights reserved. 1-64

65 We fix the mbiguous grmmr: + ( ) New non-mbiguous grmmr: + T T T T F T F F F ( )

66 Copyright 2006 ddison-wesley. ll rights reserved F F F T F T T T T + ) ( F F F F T T T F T T T T + T F F T F +

67 Unique derivtion tree + + T T T F F F Copyright 2006 ddison-wesley. ll rights reserved. 1-67

68 The grmmr G: + T T T T F T F F F ( ) is non-mbiguous: very string hs w L(G) unique derivtion tree

69 nother mbiguous Grmmr IF_TMT if XPR then TMT if XPR then TMT else TMT Copyright 2006 ddison-wesley. ll rights reserved. 1-69

70 If expr1 then if expr2 then stmt1 else stmt2 IF_TMT if expr1 then TMT if expr2 then stmt1 else stmt2 IF_TMT if expr1 then TMT else stmt2 if expr2 then stmt1

71 Copyright 2006 ddison-wesley. ll rights reserved Inherent mbiguity ome context free lnguges hve only mbiguous grmmrs xmple: } { } { m m n m n n c b c b L = λ 1 1 b c λ 2 2 bbc B B 1 2

72 The string n b n c n hs two derivtion trees c 2

73 implifiction of Context Free Grmmr

74 ubstitution Rule quivlent B B B bbc b ubstitute B b grmmr B B b bbc bbc Copyright 2006 ddison-wesley. ll rights reserved. 1-74

75 ubstitution Rule B B bbc b ubstitute B bbc B b bbc bbc bc quivlent grmmr

76 In generl: xbz B y 1 ubstitute B y 1 xbz xy1z equivlent grmmr

77 Nullble Vribles λ production : λ Nullble Vrible: K λ Copyright 2006 ddison-wesley. ll rights reserved. 1-77

78 Removing Nullble Vribles xmple Grmmr: Mb M Mb M λ Nullble vrible Copyright 2006 ddison-wesley. ll rights reserved. 1-78

79 Mb M Mb M λ ubstitute M λ Finl Grmmr Mb b M Mb M b Copyright 2006 ddison-wesley. ll rights reserved. 1-79

80 Unit-Productions Unit Production: B ( single vrible in both sides) Copyright 2006 ddison-wesley. ll rights reserved. 1-80

81 Removing Unit Productions Observtion: Is removed immeditely Copyright 2006 ddison-wesley. ll rights reserved. 1-81

82 xmple Grmmr: B B B bb Copyright 2006 ddison-wesley. ll rights reserved. 1-82

83 B B B bb ubstitute B B B B B bb Copyright 2006 ddison-wesley. ll rights reserved. 1-83

84 B B Remove B B B B B B bb B bb Copyright 2006 ddison-wesley. ll rights reserved. 1-84

85 B B bb B ubstitute B B B bb Copyright 2006 ddison-wesley. ll rights reserved. 1-85

86 Remove repeted productions Finl grmmr B B B bb B bb Copyright 2006 ddison-wesley. ll rights reserved. 1-86

87 Useless Productions b λ Useless Production ome derivtions never terminte... K K K Copyright 2006 ddison-wesley. ll rights reserved. 1-87

88 nother grmmr: λ B b Useless Production Not rechble from Copyright 2006 ddison-wesley. ll rights reserved. 1-88

89 In generl: contins only terminls if K xy K w w L(G) then vrible is useful otherwise, vrible is useless

90 production is useless x if ny of its vribles is useless b λ Productions Vribles useless useless useless useless B C useless useless C D useless

91 Removing Useless Productions xmple Grmmr: B C Cb C Copyright 2006 ddison-wesley. ll rights reserved. 1-91

92 First: find ll vribles tht cn produce strings with only terminls Round 1: C {, B} B C Cb Round 2: {, B, }

93 Keep only the vribles tht produce terminl symbols: {, B, } (the rest vribles re useless) C B C Cb B Remove useless productions

94 econd: Find ll vribles rechble from Use Dependency Grph B B not rechble

95 Keep only the vribles rechble from (the rest vribles re useless) Finl Grmmr B Remove useless productions

96 Removing ll tep 1: Remove Nullble Vribles tep 2: Remove Unit-Productions tep 3: Remove Useless Vribles Copyright 2006 ddison-wesley. ll rights reserved. 1-96

97 Chomsky Norml Form for CFG ch productions hs form: BC or vrible vrible terminl Copyright 2006 ddison-wesley. ll rights reserved. 1-97

98 xmples: b Chomsky Norml Form Not Chomsky Norml Form Copyright 2006 ddison-wesley. ll rights reserved. 1-98

99 Convertion to Chomsky Norml Form B xmple: b B c Not Chomsky Norml Form Copyright 2006 ddison-wesley. ll rights reserved. 1-99

100 Introduce vribles for terminls: T, T, T b c BT B B b c B T T T T c T b T b b T c c

101 Introduce intermedite vrible: c T b T T T B T T T BT c b c b c T b T T T B T T T BT V V c b c b 1 1 V 1

102 Introduce intermedite vrible: c T b T T T B T T V V T BT V V c b c b V 2 c T b T T T B T T T BT V V c b c b 1 1

103 Finl grmmr in Chomsky Norml Form: c T b T T T B T T V V T BT V V c b c b c B b B Initil grmmr

104 In generl: From ny context-free grmmr (which doesn t produce ) λ not in Chomsky Norml Form we cn obtin: n equivlent grmmr in Chomsky Norml Form Copyright 2006 ddison-wesley. ll rights reserved

105 The Procedure First remove: Nullble vribles Unit productions Copyright 2006 ddison-wesley. ll rights reserved

106 Then, for every symbol : dd production T In productions: replce with T New vrible: T

107 Replce ny production C C 1 2 L C n with V 1 K C V 1 C 2 1 V 2 V n 2 C n 1 C n K New intermedite vribles: V1, V2,, V n 2

108 Observtions Chomsky norml forms re good for prsing nd proving theorems It is very esy to find the Chomsky norml form for ny context-free grmmr Copyright 2006 ddison-wesley. ll rights reserved

109 Greinbch Norml Form ll productions hve form: V V 1 2 L V k k 0 symbol vribles Copyright 2006 ddison-wesley. ll rights reserved

110 xmples: B cb bb b b bb Greinbch Norml Form Not Greinbch Norml Form Copyright 2006 ddison-wesley. ll rights reserved

111 Observtions Greinbch norml forms re very good for prsing It is hrd to find the Greinbch norml form of ny context-free grmmr Copyright 2006 ddison-wesley. ll rights reserved

112 Properties of CFL Copyright 2006 ddison-wesley. ll rights reserved

113 Union Context-free lnguges re closed under: Union L1 L2 is context free is context free L1 L 2 is context-free Copyright 2006 ddison-wesley. ll rights reserved

114 xmple Lnguge Grmmr L = 1 { n b n } 1 1b λ L = 2 R { ww } 2 2 b2b λ Union L = { n b n } { ww R } 1 2

115 In generl: For context-free lnguges with context-free grmmrs nd strt vribles L 1, L 2 G 1, G 2 1, 2 The grmmr of the union hs new strt vrible nd dditionl production 1 L 2 L 1 2

116 Conctention Context-free lnguges re closed under: Conctention L1 is context free L2 is context free L 1 L 2 is context-free Copyright 2006 ddison-wesley. ll rights reserved

117 xmple Lnguge Grmmr L = 1 { n b n } 1 1b λ L = 2 R { ww } 2 2 b2b λ L = { n b n Conctention }{ ww R } 1 2

118 In generl: For context-free lnguges with context-free grmmrs nd strt vribles L 1, L 2 G 1, G 2 1, 2 The grmmr of the conctention hs new strt vrible nd dditionl production 1 2 L 1 L 2

119 tr Opertion Context-free lnguges re closed under: tr-opertion L is context free * L is context-free Copyright 2006 ddison-wesley. ll rights reserved

120 xmple Lnguge Grmmr L = { n b n } b λ tr Opertion L = { n b n }* 1 1 λ Copyright 2006 ddison-wesley. ll rights reserved

121 In generl: For context-free lnguge with context-free grmmr nd strt vrible L G The grmmr of the str opertion hs new strt vrible 1 nd dditionl production 1 1 L* λ

122 Intersection Context-free lnguges re not closed under: intersection L1 L2 is context free is context free L1 L 2 not necessrily context-free Copyright 2006 ddison-wesley. ll rights reserved

123 xmple } { 1 m n n c b L = λ λ cc C b C Context-free: } { 2 m m n c b L = λ λ bbc B B Context-free: } { 2 1 n n n c b L L = NOT context-free Intersection

124 Complement Context-free lnguges re not closed under: complement L is context free L not necessrily context-free Copyright 2006 ddison-wesley. ll rights reserved

125 } { n n n c b L L L L = = NOT context-free xmple } { 1 m n n c b L = λ λ cc C b C Context-free: } { 2 m m n c b L = λ λ bbc B B Context-free: Complement

126 The intersection of context-free lnguge nd regulr lnguge is context-free lnguge L1 L2 context free regulr L1 L 2 context-free

127 ummry Copyright 2006 ddison-wesley. ll rights reserved

128 The Chomsky Hierrchy Non-recursively enumerble Recursively-enumerble Recursive Context-sensitive Context-free Regulr

129 Who is Nom Chomsky nywy? Philosopher of Lnguges Professor of Linguistics t MIT Constructed the ide tht lnguge ws not lerned behvior, but tht it ws cognitive nd innte; versus stimulusresponse driven In n effort to explin these theories, he developed the Chomsky Hierrchy

130 Chomsky Hierrchy Lnguge Grmmr Mchine xmple Regulr Grmmr Deterministic or Regulr Lnguge Right-liner grmmr Left-liner grmmr Nondeterministic Finite-stte cceptor * Context-free Lnguge Context-free grmmr Nondeterministic Pushdown utomton n b n Contextsensitive Context-sensitive grmmr Liner-bounded utomton n b n c n Recursively enumerble Unrestricted grmmr Turing mchine ny computble function

131 Chomsky Hierrchy Comprises four types of lnguges nd their ssocited grmmrs nd mchines. Type 3: Regulr Lnguges Type 2: Context-Free Lnguges Type 1: Context-ensitive Lnguges Type 0: Recursively numerble Lnguges These lnguges form strict hierrchy

Regular Sets and Expressions

Regular Sets and Expressions Regulr Sets nd Expressions Finite utomt re importnt in science, mthemtics, nd engineering. Engineers like them ecuse they re super models for circuits (And, since the dvent of VLSI systems sometimes finite

More information

Homework 3 Solutions

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

More information

One Minute To Learn Programming: Finite Automata

One Minute To Learn Programming: Finite Automata Gret Theoreticl Ides In Computer Science Steven Rudich CS 15-251 Spring 2005 Lecture 9 Fe 8 2005 Crnegie Mellon University One Minute To Lern Progrmming: Finite Automt Let me tech you progrmming lnguge

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata N Lecture Notes on Regulr Lnguges nd Finite Automt for Prt IA of the Computer Science Tripos Mrcelo Fiore Cmbridge University Computer Lbortory First Edition 1998. Revised 1999, 2000, 2001, 2002, 2003,

More information

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser:

Java CUP. Java CUP Specifications. User Code Additions You may define Java code to be included within the generated parser: Jv CUP Jv CUP is prser-genertion tool, similr to Ycc. CUP uilds Jv prser for LALR(1) grmmrs from production rules nd ssocited Jv code frgments. When prticulr production is recognized, its ssocited code

More information

flex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A

flex Regular Expressions and Lexical Scanning Regular Expressions and flex Examples on Alphabet A = {a,b} (Standard) Regular Expressions on Alphabet A flex Regulr Expressions nd Lexicl Scnning Using flex to Build Scnner flex genertes lexicl scnners: progrms tht discover tokens. Tokens re the smllest meningful units of progrm (or other string). flex is

More information

A Visual and Interactive Input abb Automata. Theory Course with JFLAP 4.0

A Visual and Interactive Input abb Automata. Theory Course with JFLAP 4.0 Strt Puse Step Noninverted Tree A Visul nd Interctive Input Automt String ccepted! 5 nodes generted. Theory Course with JFLAP 4.0 q0 even 's, even 's q2 even 's, odd 's q1 odd 's, even 's q3 odd 's, odd

More information

Algebra Review. How well do you remember your algebra?

Algebra Review. How well do you remember your algebra? Algebr Review How well do you remember your lgebr? 1 The Order of Opertions Wht do we men when we write + 4? If we multiply we get 6 nd dding 4 gives 10. But, if we dd + 4 = 7 first, then multiply by then

More information

Unambiguous Recognizable Two-dimensional Languages

Unambiguous Recognizable Two-dimensional Languages Unmbiguous Recognizble Two-dimensionl Lnguges Mrcell Anselmo, Dor Gimmrresi, Mri Mdoni, Antonio Restivo (Univ. of Slerno, Univ. Rom Tor Vergt, Univ. of Ctni, Univ. of Plermo) W2DL, My 26 REC fmily I REC

More information

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers. 2 Rtionl Numbers Integers such s 5 were importnt when solving the eqution x+5 = 0. In similr wy, frctions re importnt for solving equtions like 2x = 1. Wht bout equtions like 2x + 1 = 0? Equtions of this

More information

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY MAT 0630 INTERNET RESOURCES, REVIEW OF CONCEPTS AND COMMON MISTAKES PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY Contents 1. ACT Compss Prctice Tests 1 2. Common Mistkes 2 3. Distributive

More information

Solution to Problem Set 1

Solution to Problem Set 1 CSE 5: Introduction to the Theory o Computtion, Winter A. Hevi nd J. Mo Solution to Prolem Set Jnury, Solution to Prolem Set.4 ). L = {w w egin with nd end with }. q q q q, d). L = {w w h length t let

More information

9 CONTINUOUS DISTRIBUTIONS

9 CONTINUOUS DISTRIBUTIONS 9 CONTINUOUS DISTIBUTIONS A rndom vrible whose vlue my fll nywhere in rnge of vlues is continuous rndom vrible nd will be ssocited with some continuous distribution. Continuous distributions re to discrete

More information

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES DAVID WEBB CONTENTS Liner trnsformtions 2 The representing mtrix of liner trnsformtion 3 3 An ppliction: reflections in the plne 6 4 The lgebr of

More information

Concept Formation Using Graph Grammars

Concept Formation Using Graph Grammars Concept Formtion Using Grph Grmmrs Istvn Jonyer, Lwrence B. Holder nd Dine J. Cook Deprtment of Computer Science nd Engineering University of Texs t Arlington Box 19015 (416 Ytes St.), Arlington, TX 76019-0015

More information

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( ) Polynomil Functions Polynomil functions in one vrible cn be written in expnded form s n n 1 n 2 2 f x = x + x + x + + x + x+ n n 1 n 2 2 1 0 Exmples of polynomils in expnded form re nd 3 8 7 4 = 5 4 +

More information

Solutions for Selected Exercises from Introduction to Compiler Design

Solutions for Selected Exercises from Introduction to Compiler Design Solutions for Selected Exercises from Introduction to Compiler Design Torben Æ. Mogensen Lst updte: My 30, 2011 1 Introduction This document provides solutions for selected exercises from Introduction

More information

FORMAL LANGUAGES, AUTOMATA AND THEORY OF COMPUTATION EXERCISES ON REGULAR LANGUAGES

FORMAL LANGUAGES, AUTOMATA AND THEORY OF COMPUTATION EXERCISES ON REGULAR LANGUAGES FORMAL LANGUAGES, AUTOMATA AND THEORY OF COMPUTATION EXERCISES ON REGULAR LANGUAGES Introduction This compendium contins exercises out regulr lnguges for the course Forml Lnguges, Automt nd Theory of Computtion

More information

Virtual Machine. Part II: Program Control. Building a Modern Computer From First Principles. www.nand2tetris.org

Virtual Machine. Part II: Program Control. Building a Modern Computer From First Principles. www.nand2tetris.org Virtul Mchine Prt II: Progrm Control Building Modern Computer From First Principles www.nnd2tetris.org Elements of Computing Systems, Nisn & Schocken, MIT Press, www.nnd2tetris.org, Chpter 8: Virtul Mchine,

More information

On decidability of LTL model checking for process rewrite systems

On decidability of LTL model checking for process rewrite systems Act Informtic (2009) 46:1 28 DOI 10.1007/s00236-008-0082-3 ORIGINAL ARTICLE On decidbility of LTL model checking for process rewrite systems Lur Bozzelli Mojmír Křetínský Vojtěch Řehák Jn Strejček Received:

More information

4.11 Inner Product Spaces

4.11 Inner Product Spaces 314 CHAPTER 4 Vector Spces 9. A mtrix of the form 0 0 b c 0 d 0 0 e 0 f g 0 h 0 cnnot be invertible. 10. A mtrix of the form bc d e f ghi such tht e bd = 0 cnnot be invertible. 4.11 Inner Product Spces

More information

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions. Lerning Objectives Loci nd Conics Lesson 3: The Ellipse Level: Preclculus Time required: 120 minutes In this lesson, students will generlize their knowledge of the circle to the ellipse. The prmetric nd

More information

Binary Representation of Numbers Autar Kaw

Binary Representation of Numbers Autar Kaw Binry Representtion of Numbers Autr Kw After reding this chpter, you should be ble to: 1. convert bse- rel number to its binry representtion,. convert binry number to n equivlent bse- number. In everydy

More information

Reasoning to Solve Equations and Inequalities

Reasoning to Solve Equations and Inequalities Lesson4 Resoning to Solve Equtions nd Inequlities In erlier work in this unit, you modeled situtions with severl vriles nd equtions. For exmple, suppose you were given usiness plns for concert showing

More information

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff

Protocol Analysis. 17-654/17-764 Analysis of Software Artifacts Kevin Bierhoff Protocol Anlysis 17-654/17-764 Anlysis of Softwre Artifcts Kevin Bierhoff Tke-Awys Protocols define temporl ordering of events Cn often be cptured with stte mchines Protocol nlysis needs to py ttention

More information

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

and thus, they are similar. If k = 3 then the Jordan form of both matrices is Homework ssignment 11 Section 7. pp. 249-25 Exercise 1. Let N 1 nd N 2 be nilpotent mtrices over the field F. Prove tht N 1 nd N 2 re similr if nd only if they hve the sme miniml polynomil. Solution: If

More information

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam

1.00/1.001 Introduction to Computers and Engineering Problem Solving Fall 2011 - Final Exam 1./1.1 Introduction to Computers nd Engineering Problem Solving Fll 211 - Finl Exm Nme: MIT Emil: TA: Section: You hve 3 hours to complete this exm. In ll questions, you should ssume tht ll necessry pckges

More information

The Semantics of Graph Programs

The Semantics of Graph Programs The Semntics of Grph Progrms Detlef Plump Deprtment of Computer Science The University of York, UK Sndr Steinert Deprtment of Computer Science The University of York, UK GP (for Grph Progrms) is rule-bsed,

More information

Graphs on Logarithmic and Semilogarithmic Paper

Graphs on Logarithmic and Semilogarithmic Paper 0CH_PHClter_TMSETE_ 3//00 :3 PM Pge Grphs on Logrithmic nd Semilogrithmic Pper OBJECTIVES When ou hve completed this chpter, ou should be ble to: Mke grphs on logrithmic nd semilogrithmic pper. Grph empiricl

More information

Brillouin Zones. Physics 3P41 Chris Wiebe

Brillouin Zones. Physics 3P41 Chris Wiebe Brillouin Zones Physics 3P41 Chris Wiebe Direct spce to reciprocl spce * = 2 i j πδ ij Rel (direct) spce Reciprocl spce Note: The rel spce nd reciprocl spce vectors re not necessrily in the sme direction

More information

Automata and Computability. Solutions to Exercises

Automata and Computability. Solutions to Exercises Automata and Computability Solutions to Exercises Fall 25 Alexis Maciel Department of Computer Science Clarkson University Copyright c 25 Alexis Maciel ii Contents Preface vii Introduction 2 Finite Automata

More information

Experiment 6: Friction

Experiment 6: Friction Experiment 6: Friction In previous lbs we studied Newton s lws in n idel setting, tht is, one where friction nd ir resistnce were ignored. However, from our everydy experience with motion, we know tht

More information

Operations with Polynomials

Operations with Polynomials 38 Chpter P Prerequisites P.4 Opertions with Polynomils Wht you should lern: Write polynomils in stndrd form nd identify the leding coefficients nd degrees of polynomils Add nd subtrct polynomils Multiply

More information

CS154. Turing Machines. Turing Machine. Turing Machines versus DFAs FINITE STATE CONTROL AI N P U T INFINITE TAPE. read write move.

CS154. Turing Machines. Turing Machine. Turing Machines versus DFAs FINITE STATE CONTROL AI N P U T INFINITE TAPE. read write move. CS54 Turing Machines Turing Machine q 0 AI N P U T IN TAPE read write move read write move Language = {0} q This Turing machine recognizes the language {0} Turing Machines versus DFAs TM can both write

More information

Review guide for the final exam in Math 233

Review guide for the final exam in Math 233 Review guide for the finl exm in Mth 33 1 Bsic mteril. This review includes the reminder of the mteril for mth 33. The finl exm will be cumultive exm with mny of the problems coming from the mteril covered

More information

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes

9.3. The Scalar Product. Introduction. Prerequisites. Learning Outcomes The Sclr Product 9.3 Introduction There re two kinds of multipliction involving vectors. The first is known s the sclr product or dot product. This is so-clled becuse when the sclr product of two vectors

More information

19. The Fermat-Euler Prime Number Theorem

19. The Fermat-Euler Prime Number Theorem 19. The Fermt-Euler Prime Number Theorem Every prime number of the form 4n 1 cn be written s sum of two squres in only one wy (side from the order of the summnds). This fmous theorem ws discovered bout

More information

Factoring Polynomials

Factoring Polynomials Fctoring Polynomils Some definitions (not necessrily ll for secondry school mthemtics): A polynomil is the sum of one or more terms, in which ech term consists of product of constnt nd one or more vribles

More information

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation FUNCTIONS AND EQUATIONS. SETS AND SUBSETS.. Definition of set. A set is ny collection of objects which re clled its elements. If x is n element of the set S, we sy tht x belongs to S nd write If y does

More information

Lectures 8 and 9 1 Rectangular waveguides

Lectures 8 and 9 1 Rectangular waveguides 1 Lectures 8 nd 9 1 Rectngulr wveguides y b x z Consider rectngulr wveguide with 0 < x b. There re two types of wves in hollow wveguide with only one conductor; Trnsverse electric wves

More information

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University

FAULT TREES AND RELIABILITY BLOCK DIAGRAMS. Harry G. Kwatny. Department of Mechanical Engineering & Mechanics Drexel University SYSTEM FAULT AND Hrry G. Kwtny Deprtment of Mechnicl Engineering & Mechnics Drexel University OUTLINE SYSTEM RBD Definition RBDs nd Fult Trees System Structure Structure Functions Pths nd Cutsets Reliility

More information

Lecture 5. Inner Product

Lecture 5. Inner Product Lecture 5 Inner Product Let us strt with the following problem. Given point P R nd line L R, how cn we find the point on the line closest to P? Answer: Drw line segment from P meeting the line in right

More information

Bypassing Space Explosion in Regular Expression Matching for Network Intrusion Detection and Prevention Systems

Bypassing Space Explosion in Regular Expression Matching for Network Intrusion Detection and Prevention Systems Bypssing Spce Explosion in Regulr Expression Mtching for Network Intrusion Detection n Prevention Systems Jignesh Ptel, Alex Liu n Eric Torng Dept. of Computer Science n Engineering Michign Stte University

More information

Hillsborough Township Public Schools Mathematics Department Computer Programming 1

Hillsborough Township Public Schools Mathematics Department Computer Programming 1 Essentil Unit 1 Introduction to Progrmming Pcing: 15 dys Common Unit Test Wht re the ethicl implictions for ming in tody s world? There re ethicl responsibilities to consider when writing computer s. Citizenship,

More information

Drawing Diagrams From Labelled Graphs

Drawing Diagrams From Labelled Graphs Drwing Digrms From Lbelled Grphs Jérôme Thièvre 1 INA, 4, venue de l Europe, 94366 BRY SUR MARNE FRANCE Anne Verroust-Blondet 2 INRIA Rocquencourt, B.P. 105, 78153 LE CHESNAY Cedex FRANCE Mrie-Luce Viud

More information

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity Bbylonin Method of Computing the Squre Root: Justifictions Bsed on Fuzzy Techniques nd on Computtionl Complexity Olg Koshelev Deprtment of Mthemtics Eduction University of Texs t El Pso 500 W. University

More information

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza Automt theory An lgorithmic pproch 0 Lecture Notes Jvier Esprz My 3, 2016 2 3 Plese red this! Mny yers go I don t wnt to sy how mny, it s depressing I tught course on the utomt-theoretic pproch to model

More information

Lecture 3 Gaussian Probability Distribution

Lecture 3 Gaussian Probability Distribution Lecture 3 Gussin Probbility Distribution Introduction l Gussin probbility distribution is perhps the most used distribution in ll of science. u lso clled bell shped curve or norml distribution l Unlike

More information

EQUATIONS OF LINES AND PLANES

EQUATIONS OF LINES AND PLANES EQUATIONS OF LINES AND PLANES MATH 195, SECTION 59 (VIPUL NAIK) Corresponding mteril in the ook: Section 12.5. Wht students should definitely get: Prmetric eqution of line given in point-direction nd twopoint

More information

Vectors 2. 1. Recap of vectors

Vectors 2. 1. Recap of vectors Vectors 2. Recp of vectors Vectors re directed line segments - they cn be represented in component form or by direction nd mgnitude. We cn use trigonometry nd Pythgors theorem to switch between the forms

More information

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100 hsn.uk.net Higher Mthemtics UNIT 3 OUTCOME 1 Vectors Contents Vectors 18 1 Vectors nd Sclrs 18 Components 18 3 Mgnitude 130 4 Equl Vectors 131 5 Addition nd Subtrction of Vectors 13 6 Multipliction by

More information

Object Semantics. 6.170 Lecture 2

Object Semantics. 6.170 Lecture 2 Object Semntics 6.170 Lecture 2 The objectives of this lecture re to: to help you become fmilir with the bsic runtime mechnism common to ll object-oriented lnguges (but with prticulr focus on Jv): vribles,

More information

Automata and Formal Languages

Automata and Formal Languages Automata and Formal Languages Winter 2009-2010 Yacov Hel-Or 1 What this course is all about This course is about mathematical models of computation We ll study different machine models (finite automata,

More information

Integration by Substitution

Integration by Substitution Integrtion by Substitution Dr. Philippe B. Lvl Kennesw Stte University August, 8 Abstrct This hndout contins mteril on very importnt integrtion method clled integrtion by substitution. Substitution is

More information

Application Bundles & Data Plans

Application Bundles & Data Plans Appliction Appliction Bundles & Dt Plns We ve got plns for you. Trnsporttion compnies tody ren t one-size-fits-ll. Your fleet s budget, size nd opertions re unique. To meet the needs of your fleet nd help

More information

Engineer-to-Engineer Note

Engineer-to-Engineer Note Engineer-to-Engineer Note EE-280 Technicl notes on using Anlog Devices DSPs, processors nd development tools Visit our Web resources http://www.nlog.com/ee-notes nd http://www.nlog.com/processors or e-mil

More information

MODULE 3. 0, y = 0 for all y

MODULE 3. 0, y = 0 for all y Topics: Inner products MOULE 3 The inner product of two vectors: The inner product of two vectors x, y V, denoted by x, y is (in generl) complex vlued function which hs the following four properties: i)

More information

Learning Workflow Petri Nets

Learning Workflow Petri Nets Lerning Workflow Petri Nets Jvier Esprz, Mrtin Leucker, nd Mximilin Schlund Technische Universität München, Boltzmnnstr. 3, 85748 Grching, Germny {esprz,leucker,schlund}@in.tum.de Abstrct. Workflow mining

More information

CURVES ANDRÉ NEVES. that is, the curve α has finite length. v = p q p q. a i.e., the curve of smallest length connecting p to q is a straight line.

CURVES ANDRÉ NEVES. that is, the curve α has finite length. v = p q p q. a i.e., the curve of smallest length connecting p to q is a straight line. CURVES ANDRÉ NEVES 1. Problems (1) (Ex 1 of 1.3 of Do Crmo) Show tht the tngent line to the curve α(t) (3t, 3t 2, 2t 3 ) mkes constnt ngle with the line z x, y. (2) (Ex 6 of 1.3 of Do Crmo) Let α(t) (e

More information

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes.

LECTURE #05. Learning Objective. To describe the geometry in and around a unit cell in terms of directions and planes. LECTURE #05 Chpter 3: Lttice Positions, Directions nd Plnes Lerning Objective To describe the geometr in nd round unit cell in terms of directions nd plnes. 1 Relevnt Reding for this Lecture... Pges 64-83.

More information

How fast can we sort? Sorting. Decision-tree model. Decision-tree for insertion sort Sort a 1, a 2, a 3. CS 3343 -- Spring 2009

How fast can we sort? Sorting. Decision-tree model. Decision-tree for insertion sort Sort a 1, a 2, a 3. CS 3343 -- Spring 2009 CS 4 -- Spring 2009 Sorting Crol Wenk Slides courtesy of Chrles Leiserson with smll chnges by Crol Wenk CS 4 Anlysis of Algorithms 1 How fst cn we sort? All the sorting lgorithms we hve seen so fr re comprison

More information

Numeracy across the Curriculum in Key Stages 3 and 4. Helpful advice and suggested resources from the Leicestershire Secondary Mathematics Team

Numeracy across the Curriculum in Key Stages 3 and 4. Helpful advice and suggested resources from the Leicestershire Secondary Mathematics Team Numercy cross the Curriculum in Key Stges 3 nd 4 Helpful dvice nd suggested resources from the Leicestershire Secondry Mthemtics Tem 1 Contents pge The development of whole school policy 3 A definition

More information

6.2 Volumes of Revolution: The Disk Method

6.2 Volumes of Revolution: The Disk Method mth ppliction: volumes of revolution, prt ii Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem ) nd the ccumultion process is to determine so-clled volumes of

More information

Outline of the Lecture. Software Testing. Unit & Integration Testing. Components. Lecture Notes 3 (of 4)

Outline of the Lecture. Software Testing. Unit & Integration Testing. Components. Lecture Notes 3 (of 4) Outline of the Lecture Softwre Testing Lecture Notes 3 (of 4) Integrtion Testing Top-down ottom-up ig-ng Sndwich System Testing cceptnce Testing istriution of ults in lrge Industril Softwre System (ISST

More information

arxiv:1602.00812v2 [cs.cl] 26 Aug 2016

arxiv:1602.00812v2 [cs.cl] 26 Aug 2016 Chpter 9 The Gril theorem prover: Type theory for syntx nd semntics Richrd Moot rxiv:1602.00812v2 [cs.cl] 26 Aug 2016 Abstrct Type-logicl grmmrs use foundtion of logic nd type theory to model nturl lnguge.

More information

Unit 29: Inference for Two-Way Tables

Unit 29: Inference for Two-Way Tables Unit 29: Inference for Two-Wy Tbles Prerequisites Unit 13, Two-Wy Tbles is prerequisite for this unit. In ddition, students need some bckground in significnce tests, which ws introduced in Unit 25. Additionl

More information

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems. 3130CIT: Theory of Computation Turing machines and undecidability (IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems. An undecidable problem

More information

Decision Rule Extraction from Trained Neural Networks Using Rough Sets

Decision Rule Extraction from Trained Neural Networks Using Rough Sets Decision Rule Extrction from Trined Neurl Networks Using Rough Sets Alin Lzr nd Ishwr K. Sethi Vision nd Neurl Networks Lbortory Deprtment of Computer Science Wyne Stte University Detroit, MI 48 ABSTRACT

More information

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile

Pushdown Automata. place the input head on the leftmost input symbol. while symbol read = b and pile contains discs advance head remove disc from pile Pushdown Automata In the last section we found that restricting the computational power of computing devices produced solvable decision problems for the class of sets accepted by finite automata. But along

More information

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, 2010. Class 4 Nancy Lynch

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, 2010. Class 4 Nancy Lynch 6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, 2010 Class 4 Nancy Lynch Today Two more models of computation: Nondeterministic Finite Automata (NFAs)

More information

SOLUTIONS TO ASSIGNMENT 1 MATH 576

SOLUTIONS TO ASSIGNMENT 1 MATH 576 SOLUTIONS TO ASSIGNMENT 1 MATH 576 SOLUTIONS BY OLIVIER MARTIN 13 #5. Let T be the topology generated by A on X. We want to show T = J B J where B is the set of all topologies J on X with A J. This amounts

More information

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding 1 Exmple A rectngulr box without lid is to be mde from squre crdbord of sides 18 cm by cutting equl squres from ech corner nd then folding up the sides. 1 Exmple A rectngulr box without lid is to be mde

More information

Automated Grading of DFA Constructions

Automated Grading of DFA Constructions Automted Grding of DFA Constructions Rjeev Alur nd Loris D Antoni Sumit Gulwni Dileep Kini nd Mhesh Viswnthn Deprtment of Computer Science Microsoft Reserch Deprtment of Computer Science University of

More information

Integration. 148 Chapter 7 Integration

Integration. 148 Chapter 7 Integration 48 Chpter 7 Integrtion 7 Integrtion t ech, by supposing tht during ech tenth of second the object is going t constnt speed Since the object initilly hs speed, we gin suppose it mintins this speed, but

More information

SUBSTITUTION I.. f(ax + b)

SUBSTITUTION I.. f(ax + b) Integrtion SUBSTITUTION I.. f(x + b) Grhm S McDonld nd Silvi C Dll A Tutoril Module for prctising the integrtion of expressions of the form f(x + b) Tble of contents Begin Tutoril c 004 g.s.mcdonld@slford.c.uk

More information

5 a LAN 6 a gateway 7 a modem

5 a LAN 6 a gateway 7 a modem STARTER With the help of this digrm, try to descrie the function of these components of typicl network system: 1 file server 2 ridge 3 router 4 ckone 5 LAN 6 gtewy 7 modem Another Novell LAN Router Internet

More information

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm

Novel Methods of Generating Self-Invertible Matrix for Hill Cipher Algorithm Bibhudendr chry, Girij Snkr Rth, Srt Kumr Ptr, nd Sroj Kumr Pnigrhy Novel Methods of Generting Self-Invertible Mtrix for Hill Cipher lgorithm Bibhudendr chry Deprtment of Electronics & Communiction Engineering

More information

Section 7-4 Translation of Axes

Section 7-4 Translation of Axes 62 7 ADDITIONAL TOPICS IN ANALYTIC GEOMETRY Section 7-4 Trnsltion of Aes Trnsltion of Aes Stndrd Equtions of Trnslted Conics Grphing Equtions of the Form A 2 C 2 D E F 0 Finding Equtions of Conics In the

More information

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one. 5.2. LINE INTEGRALS 265 5.2 Line Integrls 5.2.1 Introduction Let us quickly review the kind of integrls we hve studied so fr before we introduce new one. 1. Definite integrl. Given continuous rel-vlued

More information

! What can a computer do? ! What can a computer do with limited resources? ! Don't talk about specific machines or problems.

! What can a computer do? ! What can a computer do with limited resources? ! Don't talk about specific machines or problems. Introduction to Theoreticl CS ecture 18: Theory of Computtion Two fundmentl questions.! Wht cn computer do?! Wht cn computer do with limited resources? Generl pproch. Pentium IV running inux kernel.4.!

More information

www.mathsbox.org.uk e.g. f(x) = x domain x 0 (cannot find the square root of negative values)

www.mathsbox.org.uk e.g. f(x) = x domain x 0 (cannot find the square root of negative values) www.mthsbo.org.uk CORE SUMMARY NOTES Functions A function is rule which genertes ectl ONE OUTPUT for EVERY INPUT. To be defined full the function hs RULE tells ou how to clculte the output from the input

More information

Math 135 Circles and Completing the Square Examples

Math 135 Circles and Completing the Square Examples Mth 135 Circles nd Completing the Squre Exmples A perfect squre is number such tht = b 2 for some rel number b. Some exmples of perfect squres re 4 = 2 2, 16 = 4 2, 169 = 13 2. We wish to hve method for

More information

PHY 140A: Solid State Physics. Solution to Homework #2

PHY 140A: Solid State Physics. Solution to Homework #2 PHY 140A: Solid Stte Physics Solution to Homework # TA: Xun Ji 1 October 14, 006 1 Emil: jixun@physics.ucl.edu Problem #1 Prove tht the reciprocl lttice for the reciprocl lttice is the originl lttice.

More information

Basically, logarithmic transformations ask, a number, to what power equals another number?

Basically, logarithmic transformations ask, a number, to what power equals another number? Wht i logrithm? To nwer thi, firt try to nwer the following: wht i x in thi eqution? 9 = 3 x wht i x in thi eqution? 8 = 2 x Biclly, logrithmic trnformtion k, number, to wht power equl nother number? In

More information

Rotating DC Motors Part II

Rotating DC Motors Part II Rotting Motors rt II II.1 Motor Equivlent Circuit The next step in our consiertion of motors is to evelop n equivlent circuit which cn be use to better unerstn motor opertion. The rmtures in rel motors

More information

Modular Generic Verification of LTL Properties for Aspects

Modular Generic Verification of LTL Properties for Aspects Modulr Generic Verifiction of LTL Properties for Aspects Mx Goldmn Shmuel Ktz Computer Science Deprtment Technion Isrel Institute of Technology {mgoldmn, ktz}@cs.technion.c.il ABSTRACT Aspects re seprte

More information

The Halting Problem is Undecidable

The Halting Problem is Undecidable 185 Corollary G = { M, w w L(M) } is not Turing-recognizable. Proof. = ERR, where ERR is the easy to decide language: ERR = { x { 0, 1 }* x does not have a prefix that is a valid code for a Turing machine

More information

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March

More information

SRM UNIVERSITY FACULTY OF ENGINEERING & TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF SOFTWARE ENGINEERING COURSE PLAN

SRM UNIVERSITY FACULTY OF ENGINEERING & TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF SOFTWARE ENGINEERING COURSE PLAN Course Code : CS0355 SRM UNIVERSITY FACULTY OF ENGINEERING & TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF SOFTWARE ENGINEERING COURSE PLAN Course Title : THEORY OF COMPUTATION Semester : VI Course : June

More information

Review Problems for the Final of Math 121, Fall 2014

Review Problems for the Final of Math 121, Fall 2014 Review Problems for the Finl of Mth, Fll The following is collection of vrious types of smple problems covering sections.,.5, nd.7 6.6 of the text which constitute only prt of the common Mth Finl. Since

More information

Pointed Regular Expressions

Pointed Regular Expressions Pointed Regulr Expressions Andre Asperti 1, Cludio Scerdoti Coen 1, nd Enrico Tssi 2 1 Deprtment of Computer Science, University of Bologn sperti@cs.unio.it scerdot@cs.unio.it 2 INRIA-Micorsoft tssi@cs.unio.it

More information

All pay auctions with certain and uncertain prizes a comment

All pay auctions with certain and uncertain prizes a comment CENTER FOR RESEARC IN ECONOMICS AND MANAGEMENT CREAM Publiction No. 1-2015 All py uctions with certin nd uncertin prizes comment Christin Riis All py uctions with certin nd uncertin prizes comment Christin

More information

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3.

Treatment Spring Late Summer Fall 0.10 5.56 3.85 0.61 6.97 3.01 1.91 3.01 2.13 2.99 5.33 2.50 1.06 3.53 6.10 Mean = 1.33 Mean = 4.88 Mean = 3. The nlysis of vrince (ANOVA) Although the t-test is one of the most commonly used sttisticl hypothesis tests, it hs limittions. The mjor limittion is tht the t-test cn be used to compre the mens of only

More information

Generating In-Line Monitors For Rabin Automata

Generating In-Line Monitors For Rabin Automata Generting In-Line Monitors For Rin Automt Hugues Chot, Rphel Khoury, nd Ndi Twi Lvl University, Deprtment of Computer Science nd Softwre Engineering, Pvillon Adrien-Pouliot, 1065, venue de l Medecine Queec

More information

Unit 6: Exponents and Radicals

Unit 6: Exponents and Radicals Eponents nd Rdicls -: The Rel Numer Sstem Unit : Eponents nd Rdicls Pure Mth 0 Notes Nturl Numers (N): - counting numers. {,,,,, } Whole Numers (W): - counting numers with 0. {0,,,,,, } Integers (I): -

More information

AP STATISTICS SUMMER MATH PACKET

AP STATISTICS SUMMER MATH PACKET AP STATISTICS SUMMER MATH PACKET This pcket is review of Algebr I, Algebr II, nd bsic probbility/counting. The problems re designed to help you review topics tht re importnt to your success in the clss.

More information

Chapter 6. Logic and Action. 6.1 Actions in General

Chapter 6. Logic and Action. 6.1 Actions in General Chpter 6 Logic nd Action Overview An ction is something tht tkes plce in the world, nd tht mkes difference to wht the world looks like. Thus, ctions re mps from sttes of the world to new sttes of the world.

More information

2 DIODE CLIPPING and CLAMPING CIRCUITS

2 DIODE CLIPPING and CLAMPING CIRCUITS 2 DIODE CLIPPING nd CLAMPING CIRCUITS 2.1 Ojectives Understnding the operting principle of diode clipping circuit Understnding the operting principle of clmping circuit Understnding the wveform chnge of

More information

3 The Utility Maximization Problem

3 The Utility Maximization Problem 3 The Utility Mxiiztion Proble We hve now discussed how to describe preferences in ters of utility functions nd how to forulte siple budget sets. The rtionl choice ssuption, tht consuers pick the best

More information

2005-06 Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration

2005-06 Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration Source: http://www.mth.cuhk.edu.hk/~mt26/mt26b/notes/notes3.pdf 25-6 Second Term MAT26B 1 Supplementry Notes 3 Interchnge of Differentition nd Integrtion The theme of this course is bout vrious limiting

More information