Question

Prove whether the following are regular (include regular expression) or not regular (show proof). The alphabet...

Prove whether the following are regular (include regular expression) or not regular (show proof). The alphabet is {0, 1}

Given L1 and L2 are regular, L3 = {all stings in L1, but not in L2} Is L3 regular?

I'm not sure what theorems i can use to prove this. I appreciate anything you can provide.

Homework Answers

Answer #1

Given that L1 and L2 are regular language.

Now L3 contain all strings in L1 but not in L2.

L3 can be written as L3 = all strings of L1 but that string must not be in L2

So, L3 = L1 - L2

Using demorgan's law L1 - L2 = L1 (L2)'

Now, according to closure property of regular language if L is regular language then L' (compliment of L) is also regular because we can make a DFA for L' using L by exchanging final and non-final states.

So, since L2 is regular (L2)' is also regular as well.

From the closure property of regular language we know that intersection of two regular language always results a language which is also regular .

Since, L1 and (L2)' are regular language their intersection will also be a regular language because we can make a DFA for that resultant language.

So, L3 which is obtained after intersection of two regular languages L1 and (L2)' is also a regular language.

Therefore, L3 is regular language

Hence, proved

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Which one of the following languages over the alphabet {0,1} is described by the regular expression...
Which one of the following languages over the alphabet {0,1} is described by the regular expression (0+1)* 0 (0+1)* 0 (0+1)* ? a.The set of all strings that begin and end with either 0 or 1 b.The set of all strings containing at most two zeros c.The set of all strings containing at least two zeros. d.The set of all strings containing the substring 00
Prove or disprove the following statements. Remember to disprove a statement you have to show that...
Prove or disprove the following statements. Remember to disprove a statement you have to show that the statement is false. Equivalently, you can prove that the negation of the statement is true. Clearly state it, if a statement is True or False. In your proof, you can use ”obvious facts” and simple theorems that we have proved previously in lecture. (a) For all real numbers x and y, “if x and y are irrational, then x+y is irrational”. (b) For...
Construct a truth table to determine whether the following expression is a tautology, contradiction, or a...
Construct a truth table to determine whether the following expression is a tautology, contradiction, or a contingency. (r ʌ (p ® q)) ↔ (r ʌ ((r ® p) ® q)) Use the Laws of Logic to prove the following statement: r ʌ (p ® q) Û r ʌ ((r ® p) ® q) [Hint: Start from the RHS, and use substitution, De Morgan, distributive & idempotent] Based on (a) and/or (b), can the following statement be true? (p ® q)...
Convert the following C program to C++. More instructions follow the code. #include <stdio.h> #include <stdlib.h>...
Convert the following C program to C++. More instructions follow the code. #include <stdio.h> #include <stdlib.h> #define SIZE 5 int main(int argc, char *argv[]) {    int numerator = 25;    int denominator = 10;    int i = 0;    /*    You can assume the files opened correctly and the    correct number of of command-line arguments were    entered.    */    FILE * inPut = fopen(argv[1], "r");    FILE * outPut = fopen(argv[2], "w");    float result =...
Questions 1 through 6 work with the length of the sidereal year vs. distance from the...
Questions 1 through 6 work with the length of the sidereal year vs. distance from the sun. The table of data is shown below. Planet Distance from Sun (in millions of miles) Years (as a fraction of Earth years) ln(Dist) ln(Year) Mercury 36.19 0.2410 3.5889 -1.4229 Venus 67.63 0.6156 4.2140 -0.4851 Earth 93.50 1.0007 4.5380 0.0007 Mars 142.46 1.8821 4.9591 0.6324 Jupiter 486.46 11.8704 6.1871 2.4741 Saturn 893.38 29.4580 6.7950 3.3830 Uranus 1,794.37 84.0100 7.4924 4.4309 Neptune 2,815.19 164.7800 7.9428...
A therapist was interested in determining whether patients experiences reduced anxiety following diaphragmatic breathing exercises. She...
A therapist was interested in determining whether patients experiences reduced anxiety following diaphragmatic breathing exercises. She includes 9 participants in her brief study. Each patient provides a rating for current anxiety, on a scale of 1 (least anxiety) to 10 (extreme anxiety). She then instructs them on a 45-minute diaphragmatic breathing exercise. Following the exercise, each patient again rates his/her anxiety on the same 1-10 scale. (Note that this is a repeated measures study because each patient/participant is measured twice,...
1. A researcher wants to test whether color can influence recall of words in a list....
1. A researcher wants to test whether color can influence recall of words in a list. To test this, the researcher displays 20 words on a computer screen. Ten words are in color, and 10 words are in black. All words are presented on a white background. Participants are given 1 minute to view the list, and then the list is taken away and participants are allowed 1 additional minute to write down as many words as they can recall....
Read the case study and addressing the following: In addition to regular gyms, nontraditional workout concepts...
Read the case study and addressing the following: In addition to regular gyms, nontraditional workout concepts and centers such as Kosama are increasing in popularity. Kosama is a franchise opportunity that offers members the opportunity to improve their health and fitness level. To learn more about the company visit kosama.com. Part 1, Section 1: Assume the following revenue and cost break-down. Revenue:   -Monthly membership fee = $30. Costs: -General fixed operating expenses = $4,100 per month. -Equipment Lease = $395...
A sample survey asked a random sample of 1498 adult Canadians, “Do you agree or disagree...
A sample survey asked a random sample of 1498 adult Canadians, “Do you agree or disagree that all firearms should be registered?” Of the 1498 people in the sample, 1282 answered either “Agree strongly” or “Agree somewhat.” Assuming this survey can be considered an SRS of all adult Canadians, what is the proportion of all Canadians who agree (as described) that all firearms should be registered? Your solution must include the following parts, in order. Point form is fine. a)...
Review the   PILOT DOSE-RESPONSE STUDY OF MEMOROL Consent Form (ICF) Check  to determine whether the required ICH-GCP...
Review the   PILOT DOSE-RESPONSE STUDY OF MEMOROL Consent Form (ICF) Check  to determine whether the required ICH-GCP elements are present by checking Yes or No in the Informed Consent Form Checklist’. If you review an element and are not convinced that the ICF adequately covers the details– indicate this on the review form by making a note in the “comments section. Introduction: I have been asked to participate in a 1 month research study which will evaluate the effectiveness and safety...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT