Unit-4: Regular properties

Size: px
Start display at page:

Download "Unit-4: Regular properties"

Transcription

1 1/26 Unit-4: Regulr properties B. Srivthsn Chenni Mthemticl Institute NPTEL-course July - November 2015

2 2/26 Module 2: A gentle introduction to utomt

3 3/26 { p 1 } { p 1,p 2 } request=1 redy request=1 busy request=0 redy {} request=0 busy { p 2 } AP = set of tomic propositions AP-INF = set of infinite words over PowerSet(AP) A property over AP is subset of AP-INF

4 Gol: Need finite descriptions of properties 4/26

5 4/26 Gol: Need finite descriptions of properties Here: Finite stte utomt to describe sets of words

6 4/26 Gol: Need finite descriptions of properties Here: Finite stte utomt to describe sets of finite words

7 Alphbet: {,b } 5/26

8 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...}

9 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1

10 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 q 0 q 1 q 2 q 3 q 4

11 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 q 0 q 1 q 2 q 3 b q 4

12 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q 3 b q 4

13 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q 3 b b q 4

14 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q b 3 b b q 4

15 5/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 1 b q 0 q 1 q 2 q b 3 b b q 4,b

16 6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with

17 6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2

18 6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2 q 0 q 1,b b q 2,b

19 6/26 Alphbet: {,b } L 2 = {,, b,, b, b, bb,...} L 2 is the set of ll words strting with Design TS with ctions {,b } nd mrk some sttes s ccepting so tht the set of ll pths from n initil stte to n ccepting stte equls L 2 q 0 q 1,b b q 2,b Finite Automton

20 Coming next: Some terminology 7/26

21 Alphbet Σ = {, b } 8/26

22 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b }

23 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb }

24 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2

25 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3

26 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3 Σ k. = words of length k.

27 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } b ε ε bbb w ε ε w = b = bbb = w = w Σ 0 = { ε } (empty word, with length 0) Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3. Σ k = words of length k.

28 8/26 Alphbet Σ = {, b } Σ Σ = {, b } {, b } = {, b, b, bb } b ε ε bbb w ε ε w = b = bbb = w = w Σ 0 = { ε } (empty word, with length 0) Σ 1 = words of length 1 Σ 2 = words of length 2 Σ 3 = words of length 3. Σ k = words of length k. Σ = i 0 Σi = set of ll finite length words

29 Σ = set of ll words over Σ 9/26

30 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge

31 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

32 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

33 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

34 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

35 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

36 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) (bbb) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

37 9/26 Σ = set of ll words over Σ Any set of words is clled lnguge { b, bb, bbb,...} Σ bσ b (b) (bbb) words strting with n words strting with b { ε, b, bb, bbb,...} { ε, b, bb, bbb,...} { ε, bbb, bbbbbb, (bbb) 3,...} Σ words strting nd ending with n { ε, b, bb, bbb, 4 b 4...}

38 10/26 In this module... Tsk: Design Finite Automt for some lnguges

39 11/26 Words Lnguges Finite Automt

40 12/26 Alphbet: {,b } L 1 = { b, bb, bbb,...} Design Finite utomton for L 1 q 0 b q 1 q 2 b q 3 b b q 4,b

41 13/26 Alphbet: {,b } L 3 = { ε, b, bb, bbb,...} Design Finite utomton for L 3 q 0 q b 1 b q 2,b

42 14/26 Alphbet: {,b } Σ = { ε,, b,, b, b, bb...} Design Finite utomton for Σ,b q 0

43 15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for

44 15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for q 0

45 15/26 Alphbet: {,b } = { ε,,,,, 5,...} is the set of ll words hving only Design Finite utomton for q 0 Non-deterministic utomton

46 16/26 Trnsition Systems Deterministic Non-deterministic Single initil stte nd Multiple initil sttes or s r s r 1 r 2. r m

47 16/26 Trnsition Systems Deterministic Non-deterministic Single initil stte nd Multiple initil sttes or s r s r 1 r 2. r m Sme pplies in the cse of Finite Automt

48 17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b

49 17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b b q 0 q 1

50 17/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} Design Finite utomton for b b q 0 q 1 Non-deterministic utomton

51 18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b

52 18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 b q 2

53 18/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 b q 2 Non-deterministic utomton

54 19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b

55 19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 q 2 b q 3

56 19/26 Alphbet: {,b } b = {, b, b 2, b 3, b 4,...} b = { b, b, b 2, b 3, b 4,...} Design Finite utomton for b b b q 0 q 1 q 2 b q 3 Multiple initil sttes: non-deterministic utomton

57 20/26 Wht is the lnguge of the following utomton?,b q 0 q 1 q 2

58 20/26 Wht is the lnguge of the following utomton?,b q 0 q 1 q 2 Answer: Σ words strting nd ending with

59 21/26 Wht is the lnguge of the following utomton?,b,b b q 0 q 1 q 2

60 21/26 Wht is the lnguge of the following utomton?,b,b b q 0 q 1 q 2 Answer: Σ b Σ words contining b

61 22/26 Wht is the lnguge of the following utomton?,b,b,b b q 0 q 1 q 2

62 22/26 Wht is the lnguge of the following utomton?,b,b,b b q 0 q 1 q 2 Answer: Σ Σ b Σ words where there exists n followed by b fter sometime

63 23/26 Wht is the lnguge of the following utomton?,b,c b,b,c q 0 q 1 c q 2

64 23/26 Wht is the lnguge of the following utomton?,b,c b,b,c q 0 q 1 c q 2 Answer: Σ b c Σ (Σ = {, b, c }) words where there exists n followed by only b s nd fter sometime c occurs

65 24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L?

66 24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L? Need infinitely mny sttes to remember the number of s

67 24/26 Alphbet: {,b } L = { ε, b, bb, bbb,..., i b i,...} Cn we design Finite utomton for L? Need infinitely mny sttes to remember the number of s Cnnot construct finite utomton for this lnguge

68 25/26 Regulr lnguges Lnguges { n b n n 0} L L Regulr lnguges Σ,, b, etc. Definition A lnguge is clled regulr if it cn be ccepted by finite utomton

69 26/26 Words Lnguges Finite Automt Deterministic (DFA) Non-deterministic (NFA) Regulr lnguges

70 26/26 Words Lnguges Finite Automt Deterministic (DFA) Non-deterministic (NFA) Regulr lnguges Next module: Are DFA nd NFA equivlent?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

1. In the Bohr model, compare the magnitudes of the electron s kinetic and potential energies in orbit. What does this imply?

1. In the Bohr model, compare the magnitudes of the electron s kinetic and potential energies in orbit. What does this imply? Assignment 3: Bohr s model nd lser fundmentls 1. In the Bohr model, compre the mgnitudes of the electron s kinetic nd potentil energies in orit. Wht does this imply? When n electron moves in n orit, the

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

Advanced Baseline and Release Management. Ed Taekema

Advanced Baseline and Release Management. Ed Taekema Advnced Bseline nd Relese Mngement Ed Tekem Introduction to Bselines Telelogic Synergy uses bselines to perform number of criticl configurtion mngement tsks. They record the stte of the evolving softwre

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

When Simulation Meets Antichains (on Checking Language Inclusion of NFAs)

When Simulation Meets Antichains (on Checking Language Inclusion of NFAs) When Simultion Meets Antichins (on Checking Lnguge Inclusion of NFAs) Prosh Aziz Abdull 1, Yu-Fng Chen 1, Lukáš Holík 2, Richrd Myr 3, nd Tomáš Vojnr 2 1 Uppsl University 2 Brno University of Technology

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

SE3BB4: Software Design III Concurrent System Design. Sample Solutions to Assignment 1

SE3BB4: Software Design III Concurrent System Design. Sample Solutions to Assignment 1 SE3BB4: Softwre Design III Conurrent System Design Winter 2011 Smple Solutions to Assignment 1 Eh question is worth 10pts. Totl of this ssignment is 70pts. Eh ssignment is worth 9%. If you think your solution

More information

AntiSpyware Enterprise Module 8.5

AntiSpyware Enterprise Module 8.5 AntiSpywre Enterprise Module 8.5 Product Guide Aout the AntiSpywre Enterprise Module The McAfee AntiSpywre Enterprise Module 8.5 is n dd-on to the VirusScn Enterprise 8.5i product tht extends its ility

More information

, and the number of electrons is -19. e e 1.60 10 C. The negatively charged electrons move in the direction opposite to the conventional current flow.

, and the number of electrons is -19. e e 1.60 10 C. The negatively charged electrons move in the direction opposite to the conventional current flow. Prolem 1. f current of 80.0 ma exists in metl wire, how mny electrons flow pst given cross section of the wire in 10.0 min? Sketch the directions of the current nd the electrons motion. Solution: The chrge

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

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

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom Byesin Updting with Continuous Priors Clss 3, 8.05, Spring 04 Jeremy Orloff nd Jonthn Bloom Lerning Gols. Understnd prmeterized fmily of distriutions s representing continuous rnge of hypotheses for the

More information

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered:

Appendix D: Completing the Square and the Quadratic Formula. In Appendix A, two special cases of expanding brackets were considered: Appendi D: Completing the Squre nd the Qudrtic Formul Fctoring qudrtic epressions such s: + 6 + 8 ws one of the topics introduced in Appendi C. Fctoring qudrtic epressions is useful skill tht cn help you

More information

Regular Repair of Specifications

Regular Repair of Specifications Regulr Repir of Specifictions Michel Benedikt Oxford University michel.enedikt@coml.ox.c.uk Griele Puppis Oxford University griele.puppis@coml.ox.c.uk Cristin Riveros Oxford University cristin.riveros@coml.ox.c.uk

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

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

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

Linear Equations in Two Variables

Linear Equations in Two Variables Liner Equtions in Two Vribles In this chpter, we ll use the geometry of lines to help us solve equtions. Liner equtions in two vribles If, b, ndr re rel numbers (nd if nd b re not both equl to 0) then

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

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

On the expressive power of temporal logic

On the expressive power of temporal logic On the expressive power of temporl logic Joëlle Cohen, Dominique Perrin nd Jen-Eric Pin LITP, Pris, FRANCE Astrct We study the expressive power of liner propositionl temporl logic interpreted on finite

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

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

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

Section 5-4 Trigonometric Functions

Section 5-4 Trigonometric Functions 5- Trigonometric Functions Section 5- Trigonometric Functions Definition of the Trigonometric Functions Clcultor Evlution of Trigonometric Functions Definition of the Trigonometric Functions Alternte Form

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

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

Version 001 Summer Review #03 tubman (IBII20142015) 1

Version 001 Summer Review #03 tubman (IBII20142015) 1 Version 001 Summer Reiew #03 tubmn (IBII20142015) 1 This print-out should he 35 questions. Multiple-choice questions my continue on the next column or pge find ll choices before nswering. Concept 20 P03

More information

Scalar and Vector Quantities. A scalar is a quantity having only magnitude (and possibly phase). LECTURE 2a: VECTOR ANALYSIS Vector Algebra

Scalar and Vector Quantities. A scalar is a quantity having only magnitude (and possibly phase). LECTURE 2a: VECTOR ANALYSIS Vector Algebra Sclr nd Vector Quntities : VECTO NLYSIS Vector lgebr sclr is quntit hving onl mgnitude (nd possibl phse). Emples: voltge, current, chrge, energ, temperture vector is quntit hving direction in ddition to

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

Chapter. Contents: A Constructing decimal numbers

Chapter. Contents: A Constructing decimal numbers Chpter 9 Deimls Contents: A Construting deiml numers B Representing deiml numers C Deiml urreny D Using numer line E Ordering deimls F Rounding deiml numers G Converting deimls to frtions H Converting

More information

Complexity Results in Epistemic Planning

Complexity Results in Epistemic Planning Proceedings of the Twenty-Fourth Interntionl Joint Conference on Artificil Intelligence (IJCAI 2015) Complexity Results in Epistemic Plnning Thoms Bolnder DTU Compute Tech. University of Denmrk Copenhgen,

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

Quick Reference Guide: One-time Account Update

Quick Reference Guide: One-time Account Update Quick Reference Guide: One-time Account Updte How to complete The Quick Reference Guide shows wht existing SingPss users need to do when logging in to the enhnced SingPss service for the first time. 1)

More information

Answer, Key Homework 10 David McIntyre 1

Answer, Key Homework 10 David McIntyre 1 Answer, Key Homework 10 Dvid McIntyre 1 This print-out should hve 22 questions, check tht it is complete. Multiple-choice questions my continue on the next column or pge: find ll choices efore mking your

More information

The Principle of No Punishment Without a Law for It LEARNING OBJECTIVES: CRLA.GAAN:15.01.07-01.07

The Principle of No Punishment Without a Law for It LEARNING OBJECTIVES: CRLA.GAAN:15.01.07-01.07 True / Flse 1. An ex post fcto lw is lw which hs retroctive effect.. True b. Flse True 2. An lcoholic cnnot be convicte for the offense of being runk in public plce bse upon the Eighth n Fourteenth Amenments..

More information

Orbits and Kepler s Laws

Orbits and Kepler s Laws Obits nd Keple s Lws This web pge intoduces some of the bsic ides of obitl dynmics. It stts by descibing the bsic foce due to gvity, then consides the ntue nd shpe of obits. The next section consides how

More information

Physics 43 Homework Set 9 Chapter 40 Key

Physics 43 Homework Set 9 Chapter 40 Key Physics 43 Homework Set 9 Chpter 4 Key. The wve function for n electron tht is confined to x nm is. Find the normliztion constnt. b. Wht is the probbility of finding the electron in. nm-wide region t x

More information

Health insurance exchanges What to expect in 2014

Health insurance exchanges What to expect in 2014 Helth insurnce exchnges Wht to expect in 2014 33096CAEENABC 02/13 The bsics of exchnges As prt of the Affordble Cre Act (ACA or helth cre reform lw), strting in 2014 ALL Americns must hve minimum mount

More information

Health insurance marketplace What to expect in 2014

Health insurance marketplace What to expect in 2014 Helth insurnce mrketplce Wht to expect in 2014 33096VAEENBVA 06/13 The bsics of the mrketplce As prt of the Affordble Cre Act (ACA or helth cre reform lw), strting in 2014 ALL Americns must hve minimum

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

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

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

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

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

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

Week 11 - Inductance

Week 11 - Inductance Week - Inductnce November 6, 202 Exercise.: Discussion Questions ) A trnsformer consists bsiclly of two coils in close proximity but not in electricl contct. A current in one coil mgneticlly induces n

More information

Or more simply put, when adding or subtracting quantities, their uncertainties add.

Or more simply put, when adding or subtracting quantities, their uncertainties add. Propgtion of Uncertint through Mthemticl Opertions Since the untit of interest in n eperiment is rrel otined mesuring tht untit directl, we must understnd how error propgtes when mthemticl opertions re

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

On Recognizable Timed Languages

On Recognizable Timed Languages On Recognizle Timed Lnguges Oded Mler 1 nd Amir Pnueli 2,3 1 CNRS-VERIMAG, 2 Av. de Vignte, 38610 Gières, Frnce Oded.Mler@img.fr 2 Weizmnn Institute of Science, Rehovot 76100, Isrel 3 New York University,

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

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

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

Distributions. (corresponding to the cumulative distribution function for the discrete case).

Distributions. (corresponding to the cumulative distribution function for the discrete case). Distributions Recll tht n integrble function f : R [,] such tht R f()d = is clled probbility density function (pdf). The distribution function for the pdf is given by F() = (corresponding to the cumultive

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

Ratio and Proportion

Ratio and Proportion Rtio nd Proportion Rtio: The onept of rtio ours frequently nd in wide vriety of wys For exmple: A newspper reports tht the rtio of Repulins to Demorts on ertin Congressionl ommittee is 3 to The student/fulty

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

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

A Network Management System for Power-Line Communications and its Verification by Simulation

A Network Management System for Power-Line Communications and its Verification by Simulation A Network Mngement System for Power-Line Communictions nd its Verifiction y Simultion Mrkus Seeck, Gerd Bumiller GmH Unterschluerscher-Huptstr. 10, D-90613 Großhersdorf, Germny Phone: +49 9105 9960-51,

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

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

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

NQF Level: 2 US No: 7480

NQF Level: 2 US No: 7480 NQF Level: 2 US No: 7480 Assessment Guide Primry Agriculture Rtionl nd irrtionl numers nd numer systems Assessor:.......................................... Workplce / Compny:.................................

More information

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected At 14:05 April 16, 2011 At 13:55 April 16, 2011 At 14:20 April 16, 2011 ND ND 3.6E-01 ND ND 3.6E-01 1.3E-01 9.1E-02 5.0E-01 ND 3.7E-02 4.5E-01 ND ND 2.2E-02 ND 3.3E-02 4.5E-01 At 11:37 April 17, 2011 At

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd business. Introducing technology

More information

Small Business Networking

Small Business Networking Why network is n essentil productivity tool for ny smll business Effective technology is essentil for smll businesses looking to increse the productivity of their people nd processes. Introducing technology

More information

I calculate the unemployment rate as (In Labor Force Employed)/In Labor Force

I calculate the unemployment rate as (In Labor Force Employed)/In Labor Force Introduction to the Prctice of Sttistics Fifth Edition Moore, McCbe Section 4.5 Homework Answers to 98, 99, 100,102, 103,105, 107, 109,110, 111, 112, 113 Working. In the lnguge of government sttistics,

More information

SPECIAL PRODUCTS AND FACTORIZATION

SPECIAL PRODUCTS AND FACTORIZATION MODULE - Specil Products nd Fctoriztion 4 SPECIAL PRODUCTS AND FACTORIZATION In n erlier lesson you hve lernt multipliction of lgebric epressions, prticulrly polynomils. In the study of lgebr, we come

More information

Practice Test 2. a. 12 kn b. 17 kn c. 13 kn d. 5.0 kn e. 49 kn

Practice Test 2. a. 12 kn b. 17 kn c. 13 kn d. 5.0 kn e. 49 kn Prtie Test 2 1. A highwy urve hs rdius of 0.14 km nd is unnked. A r weighing 12 kn goes round the urve t speed of 24 m/s without slipping. Wht is the mgnitude of the horizontl fore of the rod on the r?

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

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

Pay over time with low monthly payments. Types of Promotional Options that may be available: *, ** See Page 10 for details

Pay over time with low monthly payments. Types of Promotional Options that may be available: *, ** See Page 10 for details With CreCredit... Strt cre immeditely Py over time with low monthly pyments For yourself nd your fmily Types of Promotionl Options tht my be vilble: Not ll enrolled helthcre prctices offer ll specil finncing

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

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

Lesson 4.1 Triangle Sum Conjecture

Lesson 4.1 Triangle Sum Conjecture Lesson 4.1 ringle um onjecture Nme eriod te n ercises 1 9, determine the ngle mesures. 1. p, q 2., y 3., b 31 82 p 98 q 28 53 y 17 79 23 50 b 4. r, s, 5., y 6. y t t s r 100 85 100 y 30 4 7 y 31 7. s 8.

More information

v T R x m Version PREVIEW Practice 7 carroll (11108) 1

v T R x m Version PREVIEW Practice 7 carroll (11108) 1 Version PEVIEW Prctice 7 crroll (08) his print-out should he 5 questions. Multiple-choice questions y continue on the next colun or pge find ll choices before nswering. Atwood Mchine 05 00 0.0 points A

More information

PDF hosted at the Radboud Repository of the Radboud University Nijmegen

PDF hosted at the Radboud Repository of the Radboud University Nijmegen PDF hosted t the Rdboud Repository of the Rdboud University Nijmegen The following full text is publisher's version. For dditionl informtion bout this publiction click this link. http://hdl.hndle.net/2066/111343

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

NOTES. Cohasset Associates, Inc. 2015 Managing Electronic Records Conference 8.1

NOTES. Cohasset Associates, Inc. 2015 Managing Electronic Records Conference 8.1 Cohsset Assocites, Inc. Expnding Your Skill Set: How to Apply the Right Serch Methods to Your Big Dt Problems Juli L. Brickell H5 Generl Counsel MER Conference My 18, 2015 H5 POWERING YOUR DISCOVERY GLOBALLY

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

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

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

Geometry 7-1 Geometric Mean and the Pythagorean Theorem

Geometry 7-1 Geometric Mean and the Pythagorean Theorem Geometry 7-1 Geometric Men nd the Pythgoren Theorem. Geometric Men 1. Def: The geometric men etween two positive numers nd is the positive numer x where: = x. x Ex 1: Find the geometric men etween the

More information

Polynomials. Common Mistakes

Polynomials. Common Mistakes Polnomils Polnomils Definition A polnomil is single term or sum or difference of terms in which ll vribles hve whole-number eponents nd no vrible ppers in the denomintor. Ech term cn be either constnt,

More information