w = baa tš, w L µ? q 0 K : δ(q 2, b) = q 2 (1)

Size: px
Start display at page:

Download "w = baa tš, w L µ? q 0 K : δ(q 2, b) = q 2 (1)"

Transcription

1 J S "!$#"%"#"&"'(#$) 26 * 2 +, 3 * -/ /798 :. ; <>="?A@CBED, F$G, H$I JLKNMPO"Q"RCS5T$U"VCWAX"YNS5Z\[P]"O ^`_ Σ = {A, B,, Z, a, b,, z, (acb ),d, e, f } (gihkjlmcnc ) Σ + = { abc de, this is, aa, aaa, aabc, } (oqpsrtuv ) Σ = {ε} Σ + (aqospr (ε) wxyoprtuv ) L wz {}~otuvc ƒc, L Σ ƒ L = { T his is a pen., I am a boy., }. o pr x t w x ˆ..2 this is = 7, aaa = 3, ε = Σ AŠ( "Œ$ H"I>Ž O ^ _ ghjlmcnc (Σ) (L) š, w L w œk ž M wÿ U9 ª«}. a,b Q2 b Q a b a Q. ± ²«t³ Q µ s. 2. ¹ºt»s¼oprt t opt½¾ ÀÁÂÄÃÅ. 3. Æt³s ÇÈ, Yes, ²È, No wäé.

2 Σ = {a, b} L = {a, aba, ababa, abababa, } = {a(ba) n n } w = aba tš, w L µ? w = baa tš, w L µ? J X(Y M S ( S CO ) UC VCW. _ K = {q, q, q 2 } : suv F = {q } (F K) : uv q K : δ : K Σ K : δ(q, a) = q δ(q, b) = q 2 δ(q, a) = q 2 δ(q, b) = q δ(q 2, a) = q 2 δ(q 2, b) = q 2 ª«¼ M = (K, Σ, δ, q, F ) t!qiw" (FA) }". #c{, K, Σ ± a v, q K, F K, δ : K Σ K. δ ±$&%t&'& δ : K Σ K (c¹*) +&, -.k. { () δ (q, ε) = q +&, δ t/ (2) δ (q, ax) = δ (δ(q, a), x) (a Σ, x Σ ) δ (q, aba) = δ (δ(q, a), ba) = δ (q, ba) = δ (δ(q, b), a) = δ (q, a) = δ (δ(q, a), ε) = δ (q, ε) = q F Èi}q u () w M &'ÁÂ76c c }8. L(M) = {w Σ δ (q, w) F } (2) 2

3 ` 4 5 L, L(M) = L Ä ª«M 4 5 (RL) 5 L( Σ ) { Â, L = L(M) ièq iq q q iš L w"z (RL) }8. K"! ' ( ) * H"I $#&% L z tš, L = Σ L ±z sƒ. ) * (+-, t-. ". L w 6 P P 9L w M = (K, Σ, δ, q, F ) `P P š, M = ( K, Σ, δ, q, F ), L = L( M) È Ÿ /, L z s ƒ &.) 2 L, L 2 wz sc š, (i) L L 2 ±z ƒ. (ii) L L 2 ±z s ƒ. 2 3* Σ = {, }, M = {{p, p }, Σ, δ, p, {p }}, M 2 = {{q, q }, Σ, δ 2, q, {q }}. {, δ i : K i Σ K i (K = {p, p }, K 2 = {q, q }) ±,. δ (p, ) = p, δ 2 (q, ) = q δ (p, ) = p, δ 2 (q, ) = q δ (p, ) = p, δ 2 (q, ) = q δ (p, ) = p, δ 2 (q, ) = q (i) M, M 2 t6 k±, 4 5, 6t&'& Èkµ? (ii) L(M ) L(M 2 ) w6 M wÿ 7 8 '. (iii) L(M ) L(M 2 ) w 6 M wÿ 7 8 '..4 Haskell H"I :9 LKM N.4. G H IJ import Data.List W<;>="?:@ DBA DDC "E:F ˆTS Haskell s ± usv ±PORQ. Ususv±7 union WVYX s, Z\[\] È\^ /_ORQ t v& (++a concat) b c -.. duv± intersect WVeX -., Z [ ]wf g ± nub wh8. 3

4 *Main> [,2,3] ++ [4,5,6] [,2,3,4,5,6] *Main> concat [[,2,3],[4,5],[6,7,8,9]] [,2,3,4,5,6,7,8,9] *Main> intersect [..6] [2,4..] [2,4,6] *Main> [..6] ++ [2,4..] [,2,3,4,5,6,2,4,6,8,] *Main> nub ([..6] ++ [2,4..]) [,2,3,4,5,6,8,] *Main> union [..6] [2,4..] [,2,3,4,5,6,8,].4.2 G H concat a& union ± tpoq«tæ t OQ«w ({, s tpoq«po Q tsv, t ORQ $s±s È }. u v twususvkwä k±_ö Q st usvkt ty^ V! wu Â, 4tÆ, *$t tuv tuuvw/. "±, u vtuuv#*/&-. &'& s ƒ. 4 t ƒ union. union :: Eq a =>[[a]]->[a] union [] = [] union (x:xs) x == [] = union xs otherwise = [head x]++(union (xs++[tail x])) 2 *Main> union ["abc","2","456","789"] "a47b258c69" *Main> union [[,2,3], [4,5], [6,7,8,9]] [,4,6,2,5,7,3,8,9] *Main> take [..] [,,2,3,4,5,6,7,8,9] *Main> take $ union [[..], [2..]] [,2,,2,2,22,3,23,4,24].4.3 $ % & 'k G H (Σ ) uv Σ c{â, Σ ± t&'& œ (c. (i) ε Σ (ii) x Σ, w Σ t š, xw Σ (iii) (i),(ii) ^ Σ ±œ (c. tœ (±, Σ t ) *uv +, - : S = {ε} {xw w S} (3) t. / S ƒ &w { Â}. x Σ 4

5 ˆ S ˆ c 3 Σ = {a, b} t š, Σ t Äusv +, - (3) wuu v&7 union w t %t ƒ abstar. } Haskell {Ä abstar::[[char]] abstar = [""] ++ (union [["a"++ w w <-abstar], ["b"++ w w <-abstar ]]) *Main> take abstar ["","a","b","aa","ab","ba","bb","aaa","aab","aba"] Haskell t œ (±, Èš È e^/ c t,t&'& uqvw Haskell & -7.. ` w ±, È w «take &' -8T/ }. t w {, t5gh jl mcnc uqv Σ c{iâ, Σ w q sstar w q.. uv s = Σ c{ Â, sstar(s) = Σ È 7œ (±, - (??) ' %t '& È. sstar :: [Char] -> [[Char]] sstar [] = [] sstar s = [""] ++ (union [ [[x] ++ w w <- (sstar s)] x <- s ]) 4 Σ = {a, b, c} t vt Σ tw7$&%. *Main> take 3 $ sstar [ a, b, c ] ["","a","b","c","aa","ab","ac","ba","bb","bc","ca","cb","cc", "aaa","aab","aac","aba","abb","abc","aca","acb","acc","baa", "bab","bac","bba","bbb","bbc","bca","bcb"].4.4 ˆ S ' ª«g hkjl m n t± sƒ Char, o psrtk± ƒ String s, susv K wktk u v {, 4t w State. δ c{â, δ wÿ dstar ± - () ' %t&'& È. type State = Int type States = [State] -- type String = [Char] dstar::(state->char->state)->state->string->state dstar d s [] = s dstar d s (a:w) = dstar d (d s a) w $%st ' Σ tsºsusv A { Â, 6s ssusv L(M) A w7/sk 7 accepts ±- (??) ' œ (. A = Σ s{ sv, kè, Σ s tk š, accepts d s f (sstar s), L(M) w. s m {Â, L(m) w/ w language k. type Automaton = (States, [Char], State->Char->State, State, States) accepts::automaton->[string]->[string] accepts (q, s, d, s, f) ss = [w w <- ss, (dstar d s w) elem f] language::automaton ->[String] language (q, s, d, s, f) = accepts (q, s, d, s, f) (sstar s) 5 (Pœ ) A P M = (Σ, Q, δ, s, F ) "{ Â, Σ = {a, b}, Q = {,, 2}, t œ (k. s =, F = {} {, δ : Q Σ Q ± % 5

6 S δ (s, c) c = a c = b s = 2 s = 2 s = a,b Q2 b Q a b a Q m::automaton m = ([,,2], [ a, b ], d,, []) where d a = d b = 2 d a = 2 d b = d 2 a = 2 d 2 b = 2 L(M) È, language m, È, L(M) {b} L(M) {a} w/. *Main> take 5 $ language m ["a","aba","ababa","abababa","ababababa"] *Main> accepts m $ take 5 (sstar [ b ]) [] *Main> accepts m $ take 5 (sstar [ a ]) ["a"] L(M) = {a(ba) n n }, L(M) {b} = φ, Èk k, L(M) {a} = {a} sƒ s -.k..4.5 G H 273 ª m_complement::automaton -> Automaton m_complement (k, s, d, s, f) = (k, s, d, s, fc) where fc = [x x<-k, not (x elem f) ] 6 5 t 5N N m ${ Â, L(m) tpupv L(m) w 6PPA P `5w 5. L(m), L(m) {b}, È, L(m) {a} w/ c{ ÂÅ. *Main> take $ language $ m_complement m ["","b","aa","ab","ba","bb","aaa","aab","abb","baa"] *Main> accepts (m_complement m) $ take 5 (sstar [ b ]) ["","b","bb","bbb","bbbb"] *Main> accepts (m_complement m) $ take 5 (sstar [ a ]) ["","aa","aaa","aaaa"] ` 5 t Â, µs uv 6c Â} & KM natpairs::[(int,int)] natpairs = [(x,z-x) z <- [..], x<- [..z]] pxy::(int,int)->int pxy (i,j) = (div ((i+j) * (i+j+)) 2) + i px::int->int px z = fst (natpairs!!z) py::int->int py z = snd (natpairs!!z) 6

7 ! ƒ ˆ S natpairs ±¹ ) t tuv w. pxy (i,j) ± (i, j) natpairs t µw/c{â}. natpairs t z it x w qt px, y w qt ƒ py ƒ. pxy t & px 7 py t. 7 *Main> take natpairs [(,),(,),(,),(,2),(,),(2,),(,3),(,2),(2,),(3,)] *Main> take [pxy (i,j) (i,j)<-natpairs] [,,2,3,4,5,6,7,8,9] *Main> pxy (4,2) 25 *Main> px $ pxy (4,2) 4 2 *Main> py $ pxy (4,2).5 Œ" Ž Œ$ S"VCW<;>=$?:@ DBA DDC m_join::automaton -> Automaton -> Automaton m_join (kp, sp, dp, sp, fp) (kq, sq, dq, sq, fq) = (kpq, spq, dpq, spq, fpq) where kpq = [pxy (i,j) i<-kp, j<-kq] spq = sp dpq z c = pxy ((dp (px z) c),(dq (py z) c)) spq = pxy (sp,sq) fpq = [pxy (i,j) i<-fp, j<-kq] ++ [pxy (i,j) i<-kp, j<-fq] m_meet::automaton -> Automaton -> Automaton m_meet (kp, sp, dp, sp, fp) (kq, sq, dq, sq, fq) = (kpq, spq, dpq, spq, fpq) where kpq = [pxy (i,j) i<-kp, j<-kq] spq = sp dpq z c = pxy ((dp (px z) c),(dq (py z) c)) spq = pxy (sp,sq) fpq = [pxy (i,j) i<-fp, j<-fq] 8 ¼kt, m, m2 w k, 6s vw6 swÿ 7k. L(m), L(m2) tususv a\du P P PQ PQ PQ PQ Q Q PQ PQ PQ PQ mp::automaton mp = ([,], [, ], dp,, []) where dp = dp = dp = dp = mq::automaton mq = ([,], [, ], dq,, []) where dq = 7

8 @ X dq = dq = dq = *Main> take $ language mp ["","","","","","","","","",""] *Main> take $ language mq ["","","","","","","","","",""] *Main> take 5 $ language $ m_meet mp mq ["","","","",""] *Main> take $ language $ m_join mp mq ["","","","","","","","","",""] tµ ƒ L(m) = {w w t t } L(m2) = {w w t t } L(m) L(m2) = {w w t t # } L(m) L(m2) = {w w t, ş ±, t } = {, } {w w t t # } & &-...6 D Haskell t œ ( m_complement, m_join, m_meet w {Â,, 2 t+,w }. - ^ È, +, š&t w &. }È [], : */,!"# (986). [2] The Grasgow Haskell Compiler, [3] Graphviz Graph Visualization Software, 8

Introduction to computability Tutorial 7

Introduction to computability Tutorial 7 Introduction to computability Tutorial 7 Context free languages and Turing machines November 6 th 2014 Context-free languages 1. Show that the following languages are not context-free: a) L ta i b j a

More information

SFWR ENG 2FA3. Solution to the Assignment #4

SFWR ENG 2FA3. Solution to the Assignment #4 SFWR ENG 2FA3. Solution to the Assignment #4 Total = 131, 100%= 115 The solutions below are often very detailed on purpose. Such level of details is not required from students solutions. Some questions

More information

ALTER TABLE Employee ADD ( Mname VARCHAR2(20), Birthday DATE );

ALTER TABLE Employee ADD ( Mname VARCHAR2(20), Birthday DATE ); !! "# $ % & '( ) # * +, - # $ "# $ % & '( ) # *.! / 0 "# "1 "& # 2 3 & 4 4 "# $ % & '( ) # *!! "# $ % & # * 1 3 - "# 1 * #! ) & 3 / 5 6 7 8 9 ALTER ; ? @ A B C D E F G H I A = @ A J > K L ; ?

More information

Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, ListOps.hs, Tuples.lhs. 12/5/2003. Author: J. Nino.

Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, ListOps.hs, Tuples.lhs. 12/5/2003. Author: J. Nino. ! " # $ $ # Associated code files to read, execute in Hugs, modify: Intro.lhs, Trans1.hs, IntroFuns.lhs, istops.hs, Tuples.lhs % & ' ( ) * ++,( ' -. / 1,2 / ' + 3 4 2 5 4 ' 6 6,/ 5 +' / 5. ' 5 * 7 8 9

More information

LA PRISE DE CALAIS. çoys, çoys, har - dis. çoys, dis. tons, mantz, tons, Gas. c est. à ce. C est à ce. coup, c est à ce

LA PRISE DE CALAIS. çoys, çoys, har - dis. çoys, dis. tons, mantz, tons, Gas. c est. à ce. C est à ce. coup, c est à ce > ƒ? @ Z [ \ _ ' µ `. l 1 2 3 z Æ Ñ 6 = Ð l sl (~131 1606) rn % & +, l r s s, r 7 nr ss r r s s s, r s, r! " # $ s s ( ) r * s, / 0 s, r 4 r r 9;: < 10 r mnz, rz, r ns, 1 s ; j;k ns, q r s { } ~ l r mnz,

More information

Incorrect reasoning about RL. Equivalence of NFA, DFA. Epsilon Closure. Proving equivalence. One direction is easy:

Incorrect reasoning about RL. Equivalence of NFA, DFA. Epsilon Closure. Proving equivalence. One direction is easy: Incorrect reasoning about RL Since L 1 = {w w=a n, n N}, L 2 = {w w = b n, n N} are regular, therefore L 1 L 2 = {w w=a n b n, n N} is regular If L 1 is a regular language, then L 2 = {w R w L 1 } is regular,

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

An Example file... log.txt

An Example file... log.txt # ' ' Start of fie & %$ " 1 - : 5? ;., B - ( * * B - ( * * F I / 0. )- +, * ( ) 8 8 7 /. 6 )- +, 5 5 3 2( 7 7 +, 6 6 9( 3 5( ) 7-0 +, => - +< ( ) )- +, 7 / +, 5 9 (. 6 )- 0 * D>. C )- +, (A :, C 0 )- +,

More information

Vectors. Teaching Learning Point. Ç, where OP. l m n

Vectors. Teaching Learning Point. Ç, where OP. l m n Vectors 9 Teaching Learning Point l A quantity that has magnitude as well as direction is called is called a vector. l A directed line segment represents a vector and is denoted y AB Å or a Æ. l Position

More information

CSSTP. Given CSSTP. Statements Reasons. Given CSSTP. Mult. Prop. = Div. Prop. = Sym. Prop. = or 1 Mult. Prop. = Div. Prop. =

CSSTP. Given CSSTP. Statements Reasons. Given CSSTP. Mult. Prop. = Div. Prop. = Sym. Prop. = or 1 Mult. Prop. = Div. Prop. = : If the triangles are similar (~), then all of the sides must be congruent proportional (create equal scale fractions). Example: A~ F Before you start your proof, it is important to plan! Setup the three

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 14 SMALL REVIEW FOR FINAL SOME Y/N QUESTIONS Q1 Given Σ =, there is L over Σ Yes: = {e} and L = {e} Σ Q2 There are uncountably

More information

Chapter y. 8. n cd (x y) 14. (2a b) 15. (a) 3(x 2y) = 3x 3(2y) = 3x 6y. 16. (a)

Chapter y. 8. n cd (x y) 14. (2a b) 15. (a) 3(x 2y) = 3x 3(2y) = 3x 6y. 16. (a) Chapter 6 Chapter 6 opener A. B. C. D. 6 E. 5 F. 8 G. H. I. J.. 7. 8 5. 6 6. 7. y 8. n 9. w z. 5cd.. xy z 5r s t. (x y). (a b) 5. (a) (x y) = x (y) = x 6y x 6y = x (y) = (x y) 6. (a) a (5 a+ b) = a (5

More information

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 6a REVIEW for Q2 Q2 covers Lecture 5 and Lecture 6 Chapter 2 - Deterministic Finite Automata DFA Chapter 2 - Nondeterministic

More information

HW6 Solutions. Micha l Dereziński. March 20, 2015

HW6 Solutions. Micha l Dereziński. March 20, 2015 HW6 Solutions Micha l Dereziński March 20, 2015 1 Exercise 5.5 (a) The PDA accepts odd-length strings whose middle symbol is a and whose other letters are as and bs. Its diagram is below. b, Z 0 /XZ 0

More information

Lecture 7 Properties of regular languages

Lecture 7 Properties of regular languages Lecture 7 Properties of regular languages COT 4420 Theory of Computation Section 4.1 Closure properties of regular languages If L 1 and L 2 are regular languages, then we prove that: Union: L 1 L 2 Concatenation:

More information

CS 133 : Automata Theory and Computability

CS 133 : Automata Theory and Computability CS 133 : Automata Theory and Computability Lecture Slides 1 Regular Languages and Finite Automata Nestine Hope S. Hernandez Algorithms and Complexity Laboratory Department of Computer Science University

More information

Symmetry - intro. Matti Hotokka Department of Physical Chemistry Åbo Akademi University

Symmetry - intro. Matti Hotokka Department of Physical Chemistry Åbo Akademi University Symmetry - intro Matti Hotokka Department of Physical Chemistry Åbo Akademi University Jyväskylä 008 Symmetrical or not The image looks symmetrical. Why? Jyväskylä 008 Symmetrical or not The right hand

More information

VTU QUESTION BANK. Unit 1. Introduction to Finite Automata. 1. Obtain DFAs to accept strings of a s and b s having exactly one a.

VTU QUESTION BANK. Unit 1. Introduction to Finite Automata. 1. Obtain DFAs to accept strings of a s and b s having exactly one a. VTU QUESTION BANK Unit 1 Introduction to Finite Automata 1. Obtain DFAs to accept strings of a s and b s having exactly one a.(5m )( Dec-2014) 2. Obtain a DFA to accept strings of a s and b s having even

More information

Warshall s algorithm

Warshall s algorithm Regular Expressions [1] Warshall s algorithm See Floyd-Warshall algorithm on Wikipedia The Floyd-Warshall algorithm is a graph analysis algorithm for finding shortest paths in a weigthed, directed graph

More information

LESSON 7.1 FACTORING POLYNOMIALS I

LESSON 7.1 FACTORING POLYNOMIALS I LESSON 7.1 FACTORING POLYNOMIALS I LESSON 7.1 FACTORING POLYNOMIALS I 293 OVERVIEW Here s what you ll learn in this lesson: Greatest Common Factor a. Finding the greatest common factor (GCF) of a set of

More information

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3},

(b) If G=({S}, {a}, {S SS}, S) find the language generated by G. [8+8] 2. Convert the following grammar to Greibach Normal Form G = ({A1, A2, A3}, Code No: 07A50501 R07 Set No. 2 III B.Tech I Semester Examinations,MAY 2011 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All

More information

Examination paper for TFY4240 Electromagnetic theory

Examination paper for TFY4240 Electromagnetic theory Department of Physics Examination paper for TFY4240 Electromagnetic theory Academic contact during examination: Associate Professor John Ove Fjærestad Phone: 97 94 00 36 Examination date: 16 December 2015

More information

1 h 9 e $ s i n t h e o r y, a p p l i c a t i a n

1 h 9 e $ s i n t h e o r y, a p p l i c a t i a n T : 99 9 \ E \ : \ 4 7 8 \ \ \ \ - \ \ T \ \ \ : \ 99 9 T : 99-9 9 E : 4 7 8 / T V 9 \ E \ \ : 4 \ 7 8 / T \ V \ 9 T - w - - V w w - T w w \ T \ \ \ w \ w \ - \ w \ \ w \ \ \ T \ w \ w \ w \ w \ \ w \

More information

Matrices and Determinants

Matrices and Determinants Matrices and Determinants Teaching-Learning Points A matri is an ordered rectanguar arra (arrangement) of numbers and encosed b capita bracket [ ]. These numbers are caed eements of the matri. Matri is

More information

Finite Automata and Regular Languages

Finite Automata and Regular Languages Finite Automata and Regular Languages Topics to be covered in Chapters 1-4 include: deterministic vs. nondeterministic FA, regular expressions, one-way vs. two-way FA, minimization, pumping lemma for regular

More information

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission. CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this

More information

Fundamentele Informatica II

Fundamentele Informatica II Fundamentele Informatica II Answer to selected exercises 5 John C Martin: Introduction to Languages and the Theory of Computation M.M. Bonsangue (and J. Kleijn) Fall 2011 5.1.a (q 0, ab, Z 0 ) (q 1, b,

More information

EXAMPLE CFG. L = {a 2n : n 1 } L = {a 2n : n 0 } S asa aa. L = {a n b : n 0 } L = {a n b : n 1 } S asb ab S 1S00 S 1S00 100

EXAMPLE CFG. L = {a 2n : n 1 } L = {a 2n : n 0 } S asa aa. L = {a n b : n 0 } L = {a n b : n 1 } S asb ab S 1S00 S 1S00 100 EXAMPLE CFG L = {a 2n : n 1 } L = {a 2n : n 0 } S asa aa S asa L = {a n b : n 0 } L = {a n b : n 1 } S as b S as ab L { a b : n 0} L { a b : n 1} S asb S asb ab n 2n n 2n L {1 0 : n 0} L {1 0 : n 1} S

More information

Theory of Computation 4 Non-Deterministic Finite Automata

Theory of Computation 4 Non-Deterministic Finite Automata Theory of Computation 4 Non-Deterministic Finite Automata Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Theory of Computation

More information

Downloaded from ijcm.ir at 5: on Friday February 22nd , / 0+1" )$ $"%$ mds 3 (d 93 Id 0 # D ) i $M 0 '

Downloaded from ijcm.ir at 5: on Friday February 22nd , / 0+1 )$ $%$ mds 3 (d 93 Id 0 # D ) i $M 0 ' E rhdr 0 q 8, Na 1 7!"#$ Th U %& $ $ "! & $ *+, 5 $ 2, 0+1" $ $ #* $ +$, - $ & : -!" # $% : >, 9: 2; $ 2 1 $, $7 8, $ 261 55 2 1 #0 $1 - : " 67 $: $% $1G E HE F 8 C > 2D D EF B@?, @ *@ J $R @S $ # LS $

More information

General Neoclassical Closure Theory: Diagonalizing the Drift Kinetic Operator

General Neoclassical Closure Theory: Diagonalizing the Drift Kinetic Operator General Neoclassical Closure Theory: Diagonalizing the Drift Kinetic Operator E. D. Held eheld@cc.usu.edu Utah State University General Neoclassical Closure Theory:Diagonalizing the Drift Kinetic Operator

More information

! " # $! % & '! , ) ( + - (. ) ( ) * + / 0 1 2 3 0 / 4 5 / 6 0 ; 8 7 < = 7 > 8 7 8 9 : Œ Š ž P P h ˆ Š ˆ Œ ˆ Š ˆ Ž Ž Ý Ü Ý Ü Ý Ž Ý ê ç è ± ¹ ¼ ¹ ä ± ¹ w ç ¹ è ¼ è Œ ¹ ± ¹ è ¹ è ä ç w ¹ ã ¼ ¹ ä ¹ ¼ ¹ ±

More information

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I Internal Examination 2017-18 B.Tech III Year VI Semester Sub: Theory of Computation (6CS3A) Time: 1 Hour 30 min. Max Marks: 40 Note: Attempt all three

More information

An Introduction to Optimal Control Applied to Disease Models

An Introduction to Optimal Control Applied to Disease Models An Introduction to Optimal Control Applied to Disease Models Suzanne Lenhart University of Tennessee, Knoxville Departments of Mathematics Lecture1 p.1/37 Example Number of cancer cells at time (exponential

More information

Theory of Computation Turing Machine and Pushdown Automata

Theory of Computation Turing Machine and Pushdown Automata Theory of Computation Turing Machine and Pushdown Automata 1. What is a Turing Machine? A Turing Machine is an accepting device which accepts the languages (recursively enumerable set) generated by type

More information

UNIT II REGULAR LANGUAGES

UNIT II REGULAR LANGUAGES 1 UNIT II REGULAR LANGUAGES Introduction: A regular expression is a way of describing a regular language. The various operations are closure, union and concatenation. We can also find the equivalent regular

More information

CSC 774 Advanced Network Security

CSC 774 Advanced Network Security CSC 774 Advanced Network Security Topic 2.6 ID Based Cryptography #2 Slides by An Liu Outline Applications Elliptic Curve Group over real number and F p Weil Pairing BasicIdent FullIdent Extensions Escrow

More information

CSC 774 Advanced Network Security

CSC 774 Advanced Network Security CSC 774 Advanced Network Security Topic 2.6 ID Based Cryptography #2 Slides by An Liu Outline Applications Elliptic Curve Group over real number and F p Weil Pairing BasicIdent FullIdent Extensions Escrow

More information

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1

Properties of Regular Languages. BBM Automata Theory and Formal Languages 1 Properties of Regular Languages BBM 401 - Automata Theory and Formal Languages 1 Properties of Regular Languages Pumping Lemma: Every regular language satisfies the pumping lemma. A non-regular language

More information

OH BOY! Story. N a r r a t iv e a n d o bj e c t s th ea t e r Fo r a l l a g e s, fr o m th e a ge of 9

OH BOY! Story. N a r r a t iv e a n d o bj e c t s th ea t e r Fo r a l l a g e s, fr o m th e a ge of 9 OH BOY! O h Boy!, was or igin a lly cr eat ed in F r en ch an d was a m a jor s u cc ess on t h e Fr en ch st a ge f or young au di enc es. It h a s b een s een by ap pr ox i ma t ely 175,000 sp ect at

More information

Concordia University Department of Computer Science & Software Engineering

Concordia University Department of Computer Science & Software Engineering Concordia University Department of Computer Science & Software Engineering COMP 335/4 Theoretical Computer Science Winter 2015 Assignment 3 1. In each case, what language is generated by CFG s below. Justify

More information

A Study on the Analysis of Measurement Errors of Specific Gravity Meter

A Study on the Analysis of Measurement Errors of Specific Gravity Meter HWAHAK KONGHAK Vol. 40, No. 6, December, 2002, pp. 676-680 (2001 7 2, 2002 8 5 ) A Study on the Analysis of Measurement Errors of Specific Gravity Meter Kang-Jin Lee, Jae-Young Her, Young-Cheol Ha, Seung-Hee

More information

Optimization Theory. Linear Operators and Adjoints

Optimization Theory. Linear Operators and Adjoints Optimization Theory Linear Operators and Adjoints A transformation T. : X Y y Linear Operators y T( x), x X, yy is the image of x under T The domain of T on which T can be defined : D X The range of T

More information

Languages. Non deterministic finite automata with ε transitions. First there was the DFA. Finite Automata. Non-Deterministic Finite Automata (NFA)

Languages. Non deterministic finite automata with ε transitions. First there was the DFA. Finite Automata. Non-Deterministic Finite Automata (NFA) Languages Non deterministic finite automata with ε transitions Recall What is a language? What is a class of languages? Finite Automata Consists of A set of states (Q) A start state (q o ) A set of accepting

More information

Regular Expressions [1] Regular Expressions. Regular expressions can be seen as a system of notations for denoting ɛ-nfa

Regular Expressions [1] Regular Expressions. Regular expressions can be seen as a system of notations for denoting ɛ-nfa Regular Expressions [1] Regular Expressions Regular expressions can be seen as a system of notations for denoting ɛ-nfa They form an algebraic representation of ɛ-nfa algebraic : expressions with equations

More information

Day 66 Bellringer. 1. Construct a perpendicular bisector to the given lines. Page 1

Day 66 Bellringer. 1. Construct a perpendicular bisector to the given lines. Page 1 Day 66 Bellringer 1. Construct a perpendicular bisector to the given lines. a) b) HighSchoolMathTeachers@2018 Page 1 Day 66 Bellringer c) d) HighSchoolMathTeachers@2018 Page 2 Day 66 Bellringer 2. Identify

More information

Before we show how languages can be proven not regular, first, how would we show a language is regular?

Before we show how languages can be proven not regular, first, how would we show a language is regular? CS35 Proving Languages not to be Regular Before we show how languages can be proven not regular, first, how would we show a language is regular? Although regular languages and automata are quite powerful

More information

" #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y

 #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y " #$ +. 0. + 4 6 4 : + 4 ; 6 4 < = =@ = = =@ = =@ " #$ P UTS W U X [ZY \ Z _ `a \ dfe ih j mlk n p q sr t u s q e ps s t x q s y i_z { U U z W } y ~ y x t i e l US T { d ƒ ƒ ƒ j s q e uˆ ps i ˆ p q y h

More information

Expanding brackets and factorising

Expanding brackets and factorising CHAPTER 8 Epanding brackets and factorising 8 CHAPTER Epanding brackets and factorising 8.1 Epanding brackets There are three rows. Each row has n students. The number of students is 3 n 3n. Two students

More information

Chapter 6. Worked-Out Solutions AB 3.61 AC 5.10 BC = 5

Chapter 6. Worked-Out Solutions AB 3.61 AC 5.10 BC = 5 27. onstruct a line ( DF ) with midpoint P parallel to and twice the length of QR. onstruct a line ( EF ) with midpoint R parallel to and twice the length of QP. onstruct a line ( DE ) with midpoint Q

More information

Notes for Comp 497 (454) Week 10

Notes for Comp 497 (454) Week 10 Notes for Comp 497 (454) Week 10 Today we look at the last two chapters in Part II. Cohen presents some results concerning the two categories of language we have seen so far: Regular languages (RL). Context-free

More information

Distance. Warm Ups. Learning Objectives I can find the distance between two points. Football Problem: Bailey. Watson

Distance. Warm Ups. Learning Objectives I can find the distance between two points. Football Problem: Bailey. Watson Distance Warm Ups Learning Objectives I can find the distance between two points. Football Problem: Bailey Watson. Find the distance between the points (, ) and (4, 5). + 4 = c 9 + 6 = c 5 = c 5 = c. Using

More information

A Functional Quantum Programming Language

A Functional Quantum Programming Language A Functional Quantum Programming Language Thorsten Altenkirch University of Nottingham based on joint work with Jonathan Grattage and discussions with V.P. Belavkin supported by EPSRC grant GR/S30818/01

More information

Context-Free Grammars (and Languages) Lecture 7

Context-Free Grammars (and Languages) Lecture 7 Context-Free Grammars (and Languages) Lecture 7 1 Today Beyond regular expressions: Context-Free Grammars (CFGs) What is a CFG? What is the language associated with a CFG? Creating CFGs. Reasoning about

More information

TAFL 1 (ECS-403) Unit- III. 3.1 Definition of CFG (Context Free Grammar) and problems. 3.2 Derivation. 3.3 Ambiguity in Grammar

TAFL 1 (ECS-403) Unit- III. 3.1 Definition of CFG (Context Free Grammar) and problems. 3.2 Derivation. 3.3 Ambiguity in Grammar TAFL 1 (ECS-403) Unit- III 3.1 Definition of CFG (Context Free Grammar) and problems 3.2 Derivation 3.3 Ambiguity in Grammar 3.3.1 Inherent Ambiguity 3.3.2 Ambiguous to Unambiguous CFG 3.4 Simplification

More information

( ) Chapter 6 ( ) ( ) ( ) ( ) Exercise Set The greatest common factor is x + 3.

( ) Chapter 6 ( ) ( ) ( ) ( ) Exercise Set The greatest common factor is x + 3. Chapter 6 Exercise Set 6.1 1. A prime number is an integer greater than 1 that has exactly two factors, itself and 1. 3. To factor an expression means to write the expression as the product of factors.

More information

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions?

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions? Before We Start The Pumping Lemma Any questions? The Lemma & Decision/ Languages Future Exam Question What is a language? What is a class of languages? Context Free Languages Context Free Languages(CFL)

More information

Finite Automata and Formal Languages TMV026/DIT321 LP Testing Equivalence of Regular Languages

Finite Automata and Formal Languages TMV026/DIT321 LP Testing Equivalence of Regular Languages Finite Automata and Formal Languages TMV026/DIT321 LP4 2012 Lecture 10 Ana Bove April 23rd 2012 Overview of today s lecture: Equivalence of Regular Languages Minimisation of Automata Testing Equivalence

More information

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University Set Theory CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 Set theory Abstract set theory is one of the foundations of mathematical thought Most mathematical

More information

Polynomial Functions

Polynomial Functions Polynomial Functions NOTE: Some problems in this file are used with permission from the engageny.org website of the New York State Department of Education. Various files. Internet. Available from https://www.engageny.org/ccss-library.

More information

Author: Vivek Kulkarni ( )

Author: Vivek Kulkarni ( ) Author: Vivek Kulkarni ( vivek_kulkarni@yahoo.com ) Chapter-3: Regular Expressions Solutions for Review Questions @ Oxford University Press 2013. All rights reserved. 1 Q.1 Define the following and give

More information

A L A BA M A L A W R E V IE W

A L A BA M A L A W R E V IE W A L A BA M A L A W R E V IE W Volume 52 Fall 2000 Number 1 B E F O R E D I S A B I L I T Y C I V I L R I G HT S : C I V I L W A R P E N S I O N S A N D TH E P O L I T I C S O F D I S A B I L I T Y I N

More information

Undecidability of C(T 0,T 1 )

Undecidability of C(T 0,T 1 ) Undecidability of C(T 0,T 1 ) David A. Pierce 1997; recompiled, April 4, 2017 Mathematics Dept Mimar Sinan Fine Arts University, Istanbul david.pierce@msgsu.edu.tr http://mat.msgsu.edu.tr/~dpierce/ We

More information

Complexity Theory of Polynomial-Time Problems

Complexity Theory of Polynomial-Time Problems Complexity Theory of Polynomial-Time Problems Lecture 5: Subcubic Equivalences Karl Bringmann Reminder: Relations = Reductions transfer hardness of one problem to another one by reductions problem P instance

More information

Fundamentele Informatica 3 Antwoorden op geselecteerde opgaven uit Hoofdstuk 7 en Hoofdstuk 8

Fundamentele Informatica 3 Antwoorden op geselecteerde opgaven uit Hoofdstuk 7 en Hoofdstuk 8 Fundamentele Informatica 3 Antwoorden op geselecteerde opgaven uit Hoofdstuk 7 en Hoofdstuk 8 John Martin: Introduction to Languages and the Theory of Computation Jetty Kleijn Najaar 2008 7.1 (q 0,bbcbb,Z

More information

`G 12 */" T A5&2/, ]&>b ; A%/=W, 62 S 35&.1?& S + ( A; 2 ]/0 ; 5 ; L) ( >>S.

`G 12 */ T A5&2/, ]&>b ; A%/=W, 62 S 35&.1?& S + ( A; 2 ]/0 ; 5 ; L) ( >>S. 01(( +,-. ()*) $%&' "#! : : % $& - "#$ :, (!" -&. #0 12 + 34 2567 () *+ '!" #$%& ; 2 "1? + @)&2 A5&2 () 25& 89:2 *2 72, B97I J$K

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministic Finite Automata Not A DFA Does not have exactly one transition from every state on every symbol: Two transitions from q 0 on a No transition from q 1 (on either a or b) Though not a DFA,

More information

CS154. Non-Regular Languages, Minimizing DFAs

CS154. Non-Regular Languages, Minimizing DFAs CS54 Non-Regular Languages, Minimizing FAs CS54 Homework is due! Homework 2 will appear this afternoon 2 The Pumping Lemma: Structure in Regular Languages Let L be a regular language Then there is a positive

More information

Exam 1 CSU 390 Theory of Computation Fall 2007

Exam 1 CSU 390 Theory of Computation Fall 2007 Exam 1 CSU 390 Theory of Computation Fall 2007 Solutions Problem 1 [10 points] Construct a state transition diagram for a DFA that recognizes the following language over the alphabet Σ = {a, b}: L 1 =

More information

Theory Of Computation UNIT-II

Theory Of Computation UNIT-II Regular Expressions and Context Free Grammars: Regular expression formalism- equivalence with finite automata-regular sets and closure properties- pumping lemma for regular languages- decision algorithms

More information

Proofs. by Bill Hanlon

Proofs. by Bill Hanlon Proofs by Bill Hanlon Future Reference To prove congruence, it is important that you remember not only your congruence theorems, but know your parallel line theorems, and theorems concerning triangles.

More information

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata.

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata. CMSC 330: Organization of Programming Languages Last Lecture Languages Sets of strings Operations on languages Finite Automata Regular expressions Constants Operators Precedence CMSC 330 2 Clarifications

More information

Chapter 3. Regular grammars

Chapter 3. Regular grammars Chapter 3 Regular grammars 59 3.1 Introduction Other view of the concept of language: not the formalization of the notion of effective procedure, but set of words satisfying a given set of rules Origin

More information

The 3rd Olympiad of Metropolises

The 3rd Olympiad of Metropolises The 3rd Olympiad of Metropolises Day 1. Solutions Problem 1. Solve the system of equations in real numbers: (x 1)(y 1)(z 1) xyz 1, Answer: x 1, y 1, z 1. (x )(y )(z ) xyz. (Vladimir Bragin) Solution 1.

More information

Additional Practice Lessons 2.02 and 2.03

Additional Practice Lessons 2.02 and 2.03 Additional Practice Lessons 2.02 and 2.03 1. There are two numbers n that satisfy the following equations. Find both numbers. a. n(n 1) 306 b. n(n 1) 462 c. (n 1)(n) 182 2. The following function is defined

More information

Framework for functional tree simulation applied to 'golden delicious' apple trees

Framework for functional tree simulation applied to 'golden delicious' apple trees Purdue University Purdue e-pubs Open Access Theses Theses and Dissertations Spring 2015 Framework for functional tree simulation applied to 'golden delicious' apple trees Marek Fiser Purdue University

More information

Obtain from theory/experiment a value for the absorbtion cross-section. Calculate the number of atoms/ions/molecules giving rise to the line.

Obtain from theory/experiment a value for the absorbtion cross-section. Calculate the number of atoms/ions/molecules giving rise to the line. Line Emission Observations of spectral lines offer the possibility of determining a wealth of information about an astronomical source. A usual plan of attack is :- Identify the line. Obtain from theory/experiment

More information

HW 3 Solutions. Tommy November 27, 2012

HW 3 Solutions. Tommy November 27, 2012 HW 3 Solutions Tommy November 27, 2012 5.1.1 (a) Online solution: S 0S1 ɛ. (b) Similar to online solution: S AY XC A aa ɛ b ɛ C cc ɛ X axb aa b Y by c b cc (c) S X A A A V AV a V V b V a b X V V X V (d)

More information

vnm Stable Sets for Totally Balanced Games

vnm Stable Sets for Totally Balanced Games 581 Center for Mathematical Economics Working Papers April 18, 2018 vnm Stable Sets for Totally Balanced Games Joachim Rosenmüller Center for Mathematical Economics (IMW) Bielefeld University Universitätsstraße

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Nondeterministic Finite Automata with empty moves (-NFA) Definition A nondeterministic finite automaton

More information

Lecture 3. Jan C. Willems. University of Leuven, Belgium. Minicourse ECC 2003 Cambridge, UK, September 2, 2003

Lecture 3. Jan C. Willems. University of Leuven, Belgium. Minicourse ECC 2003 Cambridge, UK, September 2, 2003 Lecture 3 The ELIMINATION Problem Jan C. Willems University of Leuven, Belgium Minicourse ECC 2003 Cambridge, UK, September 2, 2003 Lecture 3 The ELIMINATION Problem p.1/22 Problematique Develop a theory

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

Loop parallelization using compiler analysis

Loop parallelization using compiler analysis Loop parallelization using compiler analysis Which of these loops is parallel? How can we determine this automatically using compiler analysis? Organization of a Modern Compiler Source Program Front-end

More information

Algebraic Expressions

Algebraic Expressions Algebraic Expressions 1. Expressions are formed from variables and constants. 2. Terms are added to form expressions. Terms themselves are formed as product of factors. 3. Expressions that contain exactly

More information

Fooling Sets and. Lecture 5

Fooling Sets and. Lecture 5 Fooling Sets and Introduction to Nondeterministic Finite Automata Lecture 5 Proving that a language is not regular Given a language, we saw how to prove it is regular (union, intersection, concatenation,

More information

Le rning Regular. A Languages via Alt rn ting. A E Autom ta

Le rning Regular. A Languages via Alt rn ting. A E Autom ta 1 Le rning Regular A Languages via Alt rn ting A E Autom ta A YALE MIT PENN IJCAI 15, Buenos Aires 2 4 The Problem Learn an unknown regular language L using MQ and EQ data mining neural networks geometry

More information

Sample Exam 1: Chapters 1, 2, and 3

Sample Exam 1: Chapters 1, 2, and 3 L L 1 ' ] ^, % ' ) 3 Sample Exam 1: Chapters 1, 2, and 3 #1) Consider the lineartime invariant system represented by Find the system response and its zerostate and zeroinput components What are the response

More information

CHAPTER - 2 EQUATIONS. Copyright -The Institute of Chartered Accountants of India

CHAPTER - 2 EQUATIONS. Copyright -The Institute of Chartered Accountants of India CHAPTER - EQUATIONS EQUATIONS LEARNING OBJECTIVES After studying this chapter, you will be able to: u Understand the concept of equations and its various degrees linear, simultaneous, quadratic and cubic

More information

Uses of finite automata

Uses of finite automata Chapter 2 :Finite Automata 2.1 Finite Automata Automata are computational devices to solve language recognition problems. Language recognition problem is to determine whether a word belongs to a language.

More information

Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs

Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harvard CS 121 and CSCI E-207 Lecture 10: CFLs: PDAs, Closure Properties, and Non-CFLs Harry Lewis October 8, 2013 Reading: Sipser, pp. 119-128. Pushdown Automata (review) Pushdown Automata = Finite automaton

More information

Homework 1/Solutions. Graded Exercises

Homework 1/Solutions. Graded Exercises MTH 310-3 Abstract Algebra I and Number Theory S18 Homework 1/Solutions Graded Exercises Exercise 1. Below are parts of the addition table and parts of the multiplication table of a ring. Complete both

More information

1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the following:

1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the following: Dear Policyholder, Per your recent request, enclosed you will find the following forms: 1. Allstate Group Critical Illness Claim Form: When filing Critical Illness claim, please be sure to include the

More information

UNIT-I. Strings, Alphabets, Language and Operations

UNIT-I. Strings, Alphabets, Language and Operations UNIT-I Strings, Alphabets, Language and Operations Strings of characters are fundamental building blocks in computer science. Alphabet is defined as a non empty finite set or nonempty set of symbols. The

More information

CMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata

CMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC330 Spring 2018 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Pushdown Automata. We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata.

Pushdown Automata. We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata. Pushdown Automata We have seen examples of context-free languages that are not regular, and hence can not be recognized by finite automata. Next we consider a more powerful computation model, called a

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC 330 Spring 2017 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Computational Models - Lecture 5 1

Computational Models - Lecture 5 1 Computational Models - Lecture 5 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 10/22, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Lecture 4 Nondeterministic Finite Accepters

Lecture 4 Nondeterministic Finite Accepters Lecture 4 Nondeterministic Finite Accepters COT 4420 Theory of Computation Section 2.2, 2.3 Nondeterminism A nondeterministic finite automaton can go to several states at once. Transitions from one state

More information

Damping Ring Requirements for 3 TeV CLIC

Damping Ring Requirements for 3 TeV CLIC Damping Ring Requirements for 3 TeV CLIC Quantity Symbol Value Bunch population N b 9 4.1 10 No. of bunches/train k bt 154 Repetition frequency f r 100 Hz Horizontal emittance γε x 7 4.5 10 m Vertical

More information