Close
Register
Close Window

OpenDSA Complete Catalog

Chapter 35 Regular Languages

| About   «  35.4. The Power of Regular Expressions   ::   Contents   ::   35.6. Regular Grammars  »

35.5. Regular Grammars

35.5.1. Introduction to Regular Grammars

Regular grammars are another way to describe regular languages. Recall that a grammar is made of of terminals, variables, and production rule. As the name implies, a regular grammar is a special type of grammar (we will see plenty of grammars later that are not regular). Which begs the question: What makes a grammar regular?

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

What we have already done this semester:
Definition: DFA represents regular language
Theorem: NFA \(\Longleftrightarrow\) DFA
Theorem: RegEx \(\Longleftrightarrow\) NFA
What we will do next:
Theorem: DFA \(\Longleftrightarrow\) regular grammar

Of course, this will mean that DFAs, NFAs, REs, regular languages, and regular grammars all have exactly the same power. By this, we mean that DFAs, NFAs, Regular Expressions, and Regular Grammars all can recognize, or if you perfer they can all represent, exactly the same set of languages: the regular languages.

35.5.2. Converting Regular Grammars to NFAs

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

35.5.3. Converting NFAs to Regular Grammars

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

35.5.4. Converting between Left-linear and Right-linear Grammars

Settings

Proficient Saving... Error Saving
Server Error
Resubmit

35.5.5. RegEx and Regular Grammars

Settings

Proficient Saving... Error Saving
Server Error
Resubmit


Settings

Proficient Saving... Error Saving
Server Error
Resubmit

35.5.6. Summary

In this module we introduced regular grammars, defined to be either left-regular or right-regular grammars. We confirmed that we can convert between left- and right-regular grammars are really equivalent (by showing how to convert between them). We showed that NFAs can be converted to/from regular grammars, which means that regular grammars have the same power as our other representations for regular languages.

   «  35.4. The Power of Regular Expressions   ::   Contents   ::   35.6. Regular Grammars  »

Close Window