regular expression theory [3]

Posted on 2008-11-15
Last Modified: 2012-08-13
Hello Experts,

I've got two statements concerning theorems about regular expressions:

If L1 is regular, then L1  U  L2 is regular for any language L2.

If L1 and L2 are not regular, then L1 \ L2  [L1 intersection L2]   is not regular.

is any of these statements true ?
if not , can anyone explain me why ?

Thanks in advance for any assistance !
Question by:perdoname_
    LVL 84

    Expert Comment

    Consider whether the empty language is regular
    LVL 13

    Accepted Solution

    Look at the properties of Regular Expressions.

    - An empty set is a regular expression
    - If L1 is regular and L2 is regular, then so is the disjunction, if only L1 is regular then we can't say if L2 is unknown.
    - Third, we know that for all a there's an alphabet of symbols

    So.. the first statement is only true if L2 is regular, otherwise it is false
    The second statement, intersection, the opposite is true, If L1 and L2 are regular than so is L1 \ L2.

    Perhaps the following link is useful:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    invest money into checking/savings account 4 85
    Group Data Frequency Distribution 9 34
    Data array of weights 2 51
    Probability 2 40
    We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
    Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now