Question

If the second line in the grammar (definition of S1) is changed to   S1→ aS1a |...

  1. If the second line in the grammar (definition of S1) is changed to  

S1→ aS1a | bS1b | A  

will the language generated by the whole grammar change? If yes, give a precise description of the new language. If no, give a clear logical argument explaining why the language will not change.   

                                                                                                                                   

Homework Answers

Answer #1

Grammar for the mentioned question is not given.

So, I'm making an assumption that there are two inputs (a&b) and A is the end node.

If we divide the given line then, it'll be

S1 -> a S1 a

S1 -> b S1 b

S1 -> A

If we observe this grammar then we can change it into

S1 -> (a+b) S1(a+b)

S1 -> A

And from this, we can conclude that this grammar is checking the length of the entered string should be greater or equal to two.

So, if we add this line into any grammar then it'll definitely change it unless it confirms that length of entered string is greater or equal to two.

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
comment on 2 things you learned from this chapter of the Cognitive development ece 124 chapter...
comment on 2 things you learned from this chapter of the Cognitive development ece 124 chapter 9 Piaget -Preoperational intelligence • Cognitive development between the ages of about 2 and 6 • Includes language and imagination • Suggests logical, operational thinking is not yet possible at this stage Piaget: Symbolic Thought • Major accomplishment of preoperational intelligence • Allows a child to think symbolically, including understanding that words can refer to things not seen and that an item can symbolize...
THIS IS THE GENERAL EQUILIBRIUM PROBLEM THAT I PROMISED. YOU FIRST SOLVE FOR THE INITIAL EQUILIBRIUM...
THIS IS THE GENERAL EQUILIBRIUM PROBLEM THAT I PROMISED. YOU FIRST SOLVE FOR THE INITIAL EQUILIBRIUM AS POINT A. WE CONSIDER TWO DIFFERENT AND SEPARATE SHOCKS (I CALL THEM SCENARIOS). THE FIRST SHOCK IS TO THE IS CURVE, THE SECOND SHOCK IS A ‘LM’ SHOCK. AGAIN, WE CONSIDER THESE SHOCKS SEPARATELY SO THAT AFTER YOU COMPLETE SCENARIO 1 (THE IS SHOCK), WE GO BACK TO THE ORIGINAL CONDITIONS AND CONSIDER THE SECOND SCENARIO WHICH IS THE ‘LM’ SHOCK. Consider the...
Como Tool and Die was a second-tier component supplier to the auto industry. Its largest customer...
Como Tool and Die was a second-tier component supplier to the auto industry. Its largest customer was Ford Motor Company. Como had a reputation for delivering a quality product. During the 1980s and the early 1990s, Como’s business grew because of its commitment to quality. Emphasis was on manufacturing operations, and few attempts were made to use project management. All work was controlled by line managers who, more often than not, were overburdened with work. The culture at Como underwent...
Como Tool and Die was a second-tier component supplier to the auto industry. Its largest customer...
Como Tool and Die was a second-tier component supplier to the auto industry. Its largest customer was Ford Motor Company. Como had a reputation for delivering a quality product. During the 1980s and the early 1990s, Como’s business grew because of its commitment to quality. Emphasis was on manufacturing operations, and few attempts were made to use project management. All work was controlled by line managers who, more often than not, were overburdened with work. The culture at Como underwent...
If Heather could get the other managers, especially Jane and Carlos, to agree to let her...
If Heather could get the other managers, especially Jane and Carlos, to agree to let her develop a new compensation plan, which of these types of plan would it be? A single-use plan that shows how to achieve this unique goal that is unlikely to be repeated in the future A standing plan that will be used on an ongoing basis to provide guidance A strategy map that shows how compensation affects the organization’s strategy              A blueprint plan that shows...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It slaughters, manufactures, and sells pork food products.  Pigs R Us (PRU) is a low-tech, hands-on, “bricks and mortar” type of company with solid brand recognition, an impeccable reputation for high quality and ethical standards. The processes used in manufacturing are with the highest ISO20002 standards, and the plant is maintained immaculately. The personnel are comprised of an older work force (average employee age is late...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It slaughters, manufactures, and sells pork food products.  Pigs R Us (PRU) is a low-tech, hands-on, “bricks and mortar” type of company with solid brand recognition, an impeccable reputation for high quality and ethical standards. The processes used in manufacturing are with the highest ISO20002 standards, and the plant is maintained immaculately. The personnel are comprised of an older work force (average employee age is late...
Introduction Purpose Your goal is to create a design for a software interface. You will experience...
Introduction Purpose Your goal is to create a design for a software interface. You will experience the scope of the design process from brainstorming ideas and gathering information about users’ needs to storyboarding, prototyping, and finally, testing and refining your product. As you work on the software interface, you will demonstrate your ability to apply fundamental Human-Computer Interaction principles to interface analysis, design, and implementation. You will be responsible for delivering project components to your professor at several points during...
Fancy Millwork has a factory that produces custom kitchen cabinets. It has multiple product lines. Materials...
Fancy Millwork has a factory that produces custom kitchen cabinets. It has multiple product lines. Materials and labor for the cabinets are determined by each job. To simplify the assignment, we will assume the following average costs. The company estimates that it will have 32,000 direct labor hours in total for the kitchen cabinets. The materials include $2,000 for the wood and other materials on a per job basis. It requires 40 hours of labor on average for a custom...
Read the case study. Identify three (3) problems and recommendations to solve the problems. Each problem...
Read the case study. Identify three (3) problems and recommendations to solve the problems. Each problem will require a justified recommended solution at least a page each. Zappos CEO Asks Employees to Commit to Teal, or Leave Zappos had modest beginnings. In 1999, shoesite.com was started by Nick Swinmurn to capture online shoe sales. Swinmurn reached out to Tony Hsieh (pronounced “shay”) and Alfred Lin, who were running Venture Frogs, a kind of venture capital group, for advice and funding....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT