then l1 ∪ l2 is not regular
1 For each of the following statements indicate whether it is true or
Let L1 is a regular language and L2 is a non−regular language and they are disjoint i e L1 ∩ L2 = ∅ Suppose L = L1 ∪ L2 and L is regular (since regular |
Formal languages automata and computation
There are subsets of a regular language which are not regular 2 If L1 and L2 are nonregular then L1 ∪ L2 must be nonregular 3 |
CS 341 Homework 9 Languages That Are and Are Not Regular
(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 |
Properties of Regular Languages Example L = {a ba n
L1/L2 = 6 Page 7 Theorem If L1 and L2 are regular then L1/L2 is regular L1 is not regular 19 |
Definition: A language that cannot be defined by a regular expression is a nonregular language or an irregular language.
Can the union of 2 non-regular languages be regular?
O Yes, because of the closure property of regular languages under the union operation.
Yes, For instance, this is the case with the language constructed by the union of the two non-regular languages {a" b n = m} and {an bm n = m}, which is described by the regular expression a*b*.
O.
When l1l2 is regular and L1 is finite then L2 is regular?
(.
1) If L1 ∪ L2 is regular and L1 is finite, then L2 is regular.
TRUE.
Because L2 = (L1 ∪L2)−(L1 −L2).
The first part is regular by assumption, the second part is regular because it is finite (being a finite set minus something), and regular languages are closed under set difference.
Formal Languages Automata and Computation Identifying
If L is regular then M with p states recognizes L. Take a string If L1 is not regular and L2 is regular then. L = L1L2 = {xy : x ? L1and y ? L2} is ... |
CS 341 Homework 9 Languages That Are and Are Not Regular
(i) Every regular language has a regular proper subset. (j) If L1 and L2 are nonregular languages then L1 ? L2 is also not regular. |
CS 138: Mid-quarter Examination 2
Then L1 and L1 ? L2 are regular but L2 is irregular. 6. Page 7. 6. (10 points) Let L = {anbn : n ? |
Languages That Are and Are Not Regular
So L is not regular. Don't Try to Use Closure Backwards. One Closure Theorem: If L1 and L2 are regular then so is L3 = |
CS 121 Midterm Solutions
Oct 17 2013 (f) If L1 and L2 are finite languages |
Problem Set 3 Solutions
Aug 11 2000 n<N. This string is not in L |
Practice Problems for Final Exam: Solutions CS 341: Foundations of
If TM M does not accept string w then ?M |
Proving languages not regular using Pumping Lemma
If L is a regular language then there is an integer n > 0 with the property that: (*) for any string x ? L where |
CS 373: Theory of Computation
Then M = (Q |
Chapter 17: Context-Free Languages ?
Theorem: CFLs are not closed under intersection. If L1 and L2 are CFLs then L1 ? L2 may not be a CFL. Proof. 1. L1 = {anbnam |
CS 341 Homework 9 Languages That Are and Are Not Regular
(2) Every regular language except ∅ has a regular proper subset (j) If L1 and L2 are nonregular languages, then L1 ∪ L2 is also not regular False |
Pumping Lemma for Regular Languages - andrewcmued
There are subsets of a regular language which are not regular 2 If L1 and L2 are nonregular, then L1 ∪ L2 must be nonregular 3 If F is a finite language and L |
L1/L2
of Regular Languages Theorem 4 1 If L1 and L2 are regular languages, then L1 ∪ L2 L1 ∩L2 L1 = L(r1) and L2=L(r2) r1 + r2 is r e denoting L1 ∪ L2 ⇒ closed under union r1 r2 is r e denoting L1L2 L is not regular: • Proof by |
1 For each of the following statements indicate whether it is true or
Suppose L = L1 ∪ L2 and L is regular (since regular languages are closed under union) 900 states, since no loop is possible other than the sink state 1 |
CS 121 Midterm Solutions
17 oct 2013 · 2 ⊆ (L1 ∪ L2)∗ (f) If L1 and L2 are finite languages, then L1 ◦ L2 = L1·L2 ( “·” denotes multiplication ) (g) If L is regular and L is not |
Cse303 ELEMENTS OF THE THEORY OF COMPUTATION
regular languages is closed under intersection But obviously, L Obviously, L1 ⊆ L2 and L1 is a non-regular subset of a regular L2 Exercise 3 Given L1, L2 |
L1 ∩ L2 - UCSB Computer Science
Closure under Simple Set Operators Thm 4 1: If L1 and L2 are regular languages, then so are L1 ∪L2,L1 ∩ L2,L1L2,L1, and L∗ 1 Proof: 1 Assume that L1 |
Additional Material Section 21
8 fév 2011 · If L1 is regular, L2 is not regular, and L1 ∩ L2 is regular, then L1 ∪ L2 is not regular 2 IT16 (2011) Chapter 2 11 / 17 Page 12 Exercise |