[PDF] Additional Material Section 2.1





Previous PDF Next PDF



Additional Material Section 2.1

Feb 8 2011 Exercise 2.1.19 (formulation). Show that the language. L = {an





Homework 3 Solutions

Note that M? accepts the string 100 ? C = { w



q1 q2 q3 a b b a a b

Regular Expressions. • Nonregular Languages. CS 341: Chapter 1. 1-3. Introduction L(M3) is the language of strings over ? that do not have length 1.



Homework 4

different order from what is done below may result in a different (but also correct) regular 3. Prove that the following languages are not regular.



1 Closure Properties of Context-Free Languages

Context-free languages are not closed under intersection or complement. This will be shown later. 2. Page 3. 1.5 Intersection with a regular language.



Practice Problems for Final Exam: Solutions CS 341: Foundations of

Answer: A CFG is in Chomsky normal form if each of its rules has one of 3 Consider the language L = {?M?



Homework 5 Solutions

Note that if we start a derivation it never finishes



National Reading Panel - Teaching Children to Read: An Evidence

Chapter 3: Fluency 5. Does comprehension strategy instruction improve reading? ... effect on reading development than did multiple-skill instruction.



INTRODUCTION TO MATLAB FOR ENGINEERING STUDENTS

1.3.3 Quitting MATLAB . 1.4.9 Entering multiple statements per line . ... The seven lab sessions include not only the basic concepts of MATLAB but also ...



N-gram Language Models

CHAPTER 3 • N-GRAM LANGUAGE MODELS. When we use a bigram model to predict the conditional probability of the next word we are thus making the following 



Additional Material Section 2 - Eindhoven University of

theorem: if L1andL2 regular thenL1L2regularFor each of the statements below decide whether it is true orfalse If it is true prove it If not give a counterexample All parts refer to languages over the alphabetfabg 1 If L1 µL2 andL1is not regular thenL2is not regular



CSE 105 Fall 2019 - Homework 2 Solutions

language of size one is regular when break up L into two or more smaller languages Also many groups that did include the correct base case neglected to give a justification as to why a language of size 1 is regular or proved it only for the language {?} A valid justification



CS 341 Homework 9 Languages That Are and Are Not Regular

Show that the language L = {anbm: n ? m} is not regular 5 Prove or disprove the following statement: If L1 and L2 are not regular languages then L1 ? L2 is not regular 6 Show that the language L = {x ? {a b}* : x = anbambamax(mn)} is not regular 7 Show that the language L = {x ? {a b}* : x contains exactly two more b's than a

Is L1 L2 a regular language?

(h) If L? = L1 ? L2 is a regular language and L1 is a regular language, then L2 is a regular language. (i) Every regular language has a regular proper subset. (j) If L1 and L2 are nonregular languages, then L1 ? L2 is also not regular. 4. Show that the language L = {anbm : n ? m} is not regular. 5.

How to find the number of consecutive a's modulo n read so far?

Show that for each n >= 1, the language B nis regular. For each n>=1, we built a DFA with the n states q 0 , q 1, …, q n-1to count the number of consecutive a’s modulo n read so far. For each character a that is input, the counter increments by 1 and jumps to the next state in M. It accept the string if and only if the machine stops at q 0.

Is L a regular language?

If L is a regular language, then so is L? = {w : w ? and wR ? L}. If C is any set of regular languages, ?C (the union of all the elements of C) is a regular language. (g) L = {xyxR : x, y ? ?*} is regular. (h) If L? = L1 ? L2 is a regular language and L1 is a regular language, then L2 is a regular language.

How to find if L' is not regular?

7. First, let L' = L ? a*b*, which must be regular if L is. We observe that L' = anbn+2 : n ? 0. Now use the pumping lemma to show that L' is not regular in the same way we used it to show that anbn is not regular. 8. We use the pumping lemma.

Additional Material Section 2.1

2IT16 Finite Automata and Processes

Technische Universiteit Eindhoven

February 8, 2011

Exercise 2.1.15 (formulation)

Design an automaton with no more than five states that accepts the languageababnn0 abann0.

2IT16 (2011) Chapter 22/17

Exercise 2.1.15 (solution)

abab a a

L=ababnn0 abann0

2IT16 (2011) Chapter 23/17

Exercise 2.1.19 (formulation)

Show that the language

L=annis a multiple of 3, but not a multiple of 5

is regular.

2IT16 (2011) Chapter 24/17

Exercise 2.1.19 (solution)

s0s1s2aa a (M3) =annmultiple of 3

2IT16 (2011) Chapter 25/17

Exercise 2.1.19 (solution)

t0t1t2t3t4aaaa a (M5) =annno multiple of 5

2IT16 (2011) Chapter 26/17

Exercise 2.1.19 (solution)

s0 s1 s2 t0t1t2t3t4 u00u01u02u03u04 u10u11u12u13u14 u20u21u22u23u24

2IT16 (2011) Chapter 27/17

Exercise 2.1.19 (solution)

s0 s1 s2 t0t1t2t3t4 u00u01u02u03u04 u10u11u12u13u14 u20u21u22u23u24

2IT16 (2011) Chapter 28/17

Exercise 2.1.19 (solution)

u00u01u02u03u04 u10u11u12u13u14 u20u21u22u23u24

2IT16 (2011) Chapter 29/17

Intersection of regular languages

two automata1= (1,,1,1,1),2= (2,,2,2,2) definition:product automaton= (,,,,) =1 2=(s1,s2)s1 1,s2 2 (s1,s2)a(t1,t2)s1a1t1s2a2t2 = (1,2),=1 2 theorem:ifL1andL2regular, thenL1L2regular

2IT16 (2011) Chapter 210/17

Exercise 2.1.10 (formulation)

For each of the statements below, decide whether it is true or false. If it is true, prove it. If not, give a counterexample. All parts refer to languages over the alphabeta,b.

1IfL1L2andL1is not regular, thenL2is not regular.

2IfL1is regular,L2is not regular, andL1L2is regular, then

L

1L2is not regular.

2IT16 (2011) Chapter 211/17

Exercise 2.1.10 (solution)

1L=anbnn0is non-regular

L a,b buta,bis regular

2supposeL1L2is regular

then (L1L2)(L1L2)is regular also (L1L2)Lc1is regular hence

L2=?(L1L2)(L1L2)??(L1L2)Lc1?is regular

2IT16 (2011) Chapter 212/17

Exercise 2.1.21 (formulation)

Suppose the languageLis regular anda .

Show thatL ais regular.

2IT16 (2011) Chapter 213/17

Exercise 2.1.21 (solution)

a c b s a tc ab s,t,,,, s) =(u,b,v)u,v ,b :ubvv= (u,b,t)u,v ,b :ub (,a,s)

2IT16 (2011) Chapter 214/17

Exercise 2.1.20 (formulation)

Suppose the languageLis regular.

Show thatL εis regular.

2IT16 (2011) Chapter 215/17

Exercise 2.1.20 (solution)

st a b r a r,, (r,a,t),r,)

2IT16 (2011) Chapter 216/17

Exercise 2.1.20 (solution)

given= (,,,,) add fresh stater/ letrbe the new initial state ifasin, addras r,, ras as,r,)

2IT16 (2011) Chapter 217/17

quotesdbs_dbs4.pdfusesText_8
[PDF] show that x is a cauchy sequence

[PDF] show that x is a discrete random variable

[PDF] show that x is a markov chain

[PDF] show that x is a random variable

[PDF] show that [0

[PDF] show the mechanism of acid hydrolysis of ester

[PDF] show ? n 2 1 n log np converges if and only if p > 1

[PDF] shredded workout plan pdf

[PDF] shredding diet

[PDF] shredding workout plan

[PDF] shrm furlough

[PDF] shuttle paris

[PDF] si clauses french examples

[PDF] si clauses french exercises

[PDF] si clauses french practice