Prove that the following languages are not regular. You may use the pumping lemma and the closure
Question:
Prove that the following languages are not regular. You may use the pumping lemma and the closure of the class of regular languages under union, intersection, and complement.
a. {0n1m0n| m, n ≥ 0}
Ab. {0m1n| m ≠ n}
c. {w| w ∈ {0,1}* is not a palindrome}8
*d. {wtw| w, t ∈ {0,1}+}
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 72% (11 reviews)
a To prove that the language 0n1m0n m n 0 is not regular we can use the pumping lemma for regular languages Assume for the sake of contradiction that ...View the full answer
Answered By
Mubarak Ali
I am serving as a Computer Science lecturer at different Colleges for more then 5 years. I delivered lectures to different Class Like:-
1:- Intermediate
2:-BS-Program(Subject)
3:-B.Sc
4:-Master Classes.
My teaching method is to simple that's way students get information in the easy way
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Use the pumping lemma to show that the following languages are not context free. a. {0 n 1 n 0 n 1 n | n 0} Ab. {0 n #02 n #03 n | n 0} Ac. {w#t| w is a substring of t, where w, t {a, b} * } d. {t...
-
Use the pumping lemma to show that the following languages are not regular. A a. A 1 = {0 n 1 n 2 n | n 0} b. A 2 = {www| w {a, b} * } A c. A 3 = {a 2n | n 0} (Here, a 2n means a string of 2 n as.)
-
Consider the language B = L(G), where G is the grammar given in Exercise 2.13. The pumping lemma for context-free languages, Theorem 2.34, states the existence of a pumping length p for B. What is...
-
Raner, Harris & Chan is a consulting firm that specializes in information systems for medical and dental clinics. The firm has two offices-one in Chicago and one in Minneapolis. The firm classifies...
-
The figure shows a scatter plot and a linear regression model for the annual revenue data in Table 13. (A) Interpret the slope of the model. (B) Use the model to predict the annual revenue (to the...
-
1. What is the definition of relations of a linear relations? 2. What is the definition of relations of 2D and 3D shapes and figures?
-
A hospital operating room needs to schedule three knee surgeries and two hip surgeries in a day. We denote a knee and hip surgery as \(k\) and \(h\), respectively. The number of possible sequences of...
-
Faber Company had gross wages of $110,000 during the week ended June 17. The amount of wages subject to social security tax was $110,000, while the amount of wages subject to federal and state...
-
Royal Lawncare Company produces and sells two packaged products-Weedban and Greengrow. Revenue and cost information relating to the products follow. Selling price per unit Variable expenses per unit...
-
Robinwood Fixtures manufactures two products, K4 and X7. The company prepares its master budget on the basis of standard costs. The following data are for September: Standards Direct materials Direct...
-
Let A/B = {w| wx A for some x B}. Show that if A is regular and B is any language, then A/B is regular.
-
Let = {1, #} and let Y = {w| w = x 1 #x 2 # #xk for k 0, each x i 1 * , and x i xj for i j}. Prove that Y is not regular.
-
For the same data set considered in Problem 2 (and employing the accompanying computer output), use the stepwise regression approach to find the best regression models of SBP on QUET, AGE, and QUET ...
-
A small reaction bomb fitted with a sensitive pressure-measuring device is flushed out and then filled with pure reactant A at 1-atm pressure. The operation is carried out at 25OC, a temperature low...
-
Create an app that scrolls a series of images across a marquee screen on a Canvas.
-
Take a copy of the above program, rename the class and modify the appropriate line so that the program accepts input from the standard input stream (i.e., using a Scanner around the standard input...
-
Write code to draw hearts, spades, clubs, and diamonds. To draw a heart, draw a filled diamond, then attach two filled semicircles to the upper left and upper right sides.
-
Write a program that takes an integer command-line argument n, reads n floating-point numbers from standard input, and prints their mean (average value) and sample standard deviation (square root of...
-
Hilton Worldwide Holdings Inc. (HLT) and Marriott International, Inc. (MAR) reported the following occupancy data for two recent years: _______________ Year 2 _____________ Year 1 Hilton...
-
A bar of a steel alloy that exhibits the stress-strain behavior shown in Figure 6.22 is subjected to a tensile load; the specimen is 375 mm (14.8 in.) long and has a square cross section 5.5 mm (0.22...
-
Consider the following code fragment, taken from some package:
-
Consider the inheritance of classes from Exercise R-2.12, and let d be an object variable of type Horse. If d refers to an actual object of type Equestrian, can it be cast to the class Racer? Why or...
-
Give an example of a Java code fragment that performs an array reference that is possibly out of bounds, and if it is out of bounds, the program catches that exception and prints the following error...
-
s Machine-hours required to support estimated production Fixed manufacturing overhead cost Variable manufacturing overhead cost per machine-hour Required: 1. Compute the plantwide predetermined...
-
How do visionary leaders navigate the complexities of organizational dynamics to cultivate a culture of innovation and adaptability ? Explain
-
Finnish Corporation manufactures custom molds for use in the extrusion industry. The company allocates manufacturing overhead based on machine hours. Selected data for costs incurred for Job 532 are...
Study smarter with the SolutionInn App