Regular expressions vs. Unix regular expressions. Regular expressions and Unix regular expressions have some superficial differences,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Regular expressions vs. Unix regular expressions. Regular expressions and Unix regular expressions have some superficial differences, but also some deeper ones that affect the class of languages recognized. (a) Unix regular expressions have quantifiers: if a is a regular expression, a{m,n} is a regular expression that matches at least m and no more than n strings that match a. More formally, it matches all strings w(1)...w(¹) where m < 1 ≤ n, and for all i such that 1≤ i ≤l, w(¹) matches a. Prove that for any regular expression with quantifiers, there is an equivalent regular expression without quantifiers. (b) Unix regular expressions have backreferences.¹ Give an example of a Unix regular expression that uses backreferences to describe a nonregular lan- guage, and prove that this language is not regular. We want you to get practice writing a non-regularity proof, so although you may use Ex- amples 1.73-77, do not simply cite one of them; please write out a full proof. Regular expressions vs. Unix regular expressions. Regular expressions and Unix regular expressions have some superficial differences, but also some deeper ones that affect the class of languages recognized. (a) Unix regular expressions have quantifiers: if a is a regular expression, a{m,n} is a regular expression that matches at least m and no more than n strings that match a. More formally, it matches all strings w(1)...w(¹) where m < 1 ≤ n, and for all i such that 1≤ i ≤l, w(¹) matches a. Prove that for any regular expression with quantifiers, there is an equivalent regular expression without quantifiers. (b) Unix regular expressions have backreferences.¹ Give an example of a Unix regular expression that uses backreferences to describe a nonregular lan- guage, and prove that this language is not regular. We want you to get practice writing a non-regularity proof, so although you may use Ex- amples 1.73-77, do not simply cite one of them; please write out a full proof.
Expert Answer:
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these operating system questions
-
The functions f and g are defined as follows. f(x)=-5x+2 g(x)=-4x-3 Find f (6) and g (5). Simplify your answers as much as possible.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
33. Monker Dining Room Furniture manufactures two models of dining table sets: Traditional brand Contemporary. Manufacturing requirements are as follows: um boxi mod sq to get YTO TRADITIONAL...
-
Ilya and Olga are brother and sister. Ilya owns 200 shares of stock in Parker Corporation. Is Olga deemed to own Ilya's 200 shares under the family attribution rules that apply to stock redemptions?
-
Considering the Diffusion of Innovation theory, which categories of adopters might you enlist to help in gaining acceptance of a new information system? What specifically would you ask of these...
-
On May 1 of the current year, Marsha Huerta and John Ward form a partnership. The partnership assumes the assets and liabilities of the two partners existing businesses. Partners share equally in all...
-
1 Carry out a PESTEL analysis of Alibaba at the time of the case. Evaluate the balance of opportunities and threats, using the same kind of figure as in Illustration 2.1. 2 Draw a basic sociogram of...
-
When you mentioned the participatory technique, I felt that it aligns well with the idea of fostering stakeholder engagement. I wonder if there are specific challenges or considerations you...
-
A traffic signal has a 60-second cycle length. For the travel direction of interest, the effective red and green times are 30 seconds each, the arrival rate is constant at 20 vehs/min and the...
-
Analyze the following case in the light of existing government laws, statutes, and rules. Determine if there is culpability on the part of the persons involve: The president of a faculty association...
-
Discuss some of the problems of ethnicity in the Middle East and Asia that have been influenced by globalization.
-
How did Darwin arrive at his theory of evolution by natural selection?
-
What types of contributions can anthropologists make by studying ethnic conflict and religious movements?
-
Explain intuitively why call and put options are more valuable the greater their underlying security's variability.
-
For complex traits, how do developmental environments modify genotypes to produce phenotypes?
-
Assignment: Designing a Survey for the Restaurant Business Objective: The objective of this assignment is to develop a comprehensive survey for the restaurant business. The survey should aim to...
-
2. Assume a person bends forward to lift a load "with his back" as shown in Figure P12.42a. The person's spine piv- ots mainly at the fifth lumbar vertebra, with the principal supporting force...
-
The U.S. Department of the Interior filed an environmental impact statement (EIS) with regard to its proposal to lease approximately eighty tracts of submerged land, primarily located off the coast...
-
Discuss the duties of collecting banks.
-
Jonnel Enterprises, Inc., contracted to construct a student dormitory at Clarion State College. On May 6, Jonnel entered into a written agreement with Graham and Long as electrical contractors to...
-
On December 31, 2017, Kim Company issued \(\$ 500,000\) of five-year, 12 percent bonds payable for \(\$ 538,609\), yielding an effective interest rate of ten percent. Interest is payable semiannually...
-
On January 1, Cheryl, Inc., entered into a lease contract. The lease contract was an eightyear lease for a sound system with \(\$ 28,000\) annual lease payments due at the end of each year. Cheryl...
-
Lyon Company had the following transactions: Apr. 8 Issued a \(6,000,60\)-day, six percent note payable in payment of an account with Bennett Company. May 15 Borrowed \(\$ 40,000\) from Lincoln Bank,...
Study smarter with the SolutionInn App