Chapter 1: Q37P (page 87)
Let is a binary number that is a multiple of n}. Show that for each , the language is regular
Short Answer
It is proved that is regular.
Chapter 1: Q37P (page 87)
Let is a binary number that is a multiple of n}. Show that for each , the language is regular
It is proved that is regular.
All the tools & learning materials you need for study success - in one app.
Get started for freeQuestion:
a. Let and Show that B is a regular language.
b. Let and Show that C isn’t a regular language.
A homomorphism is a function from one alphabet to strings over another alphabet. We can extend f to operate on strings by defining:.
We further extend to operate on languages by defining for any language .
a. Show, by giving a formal construction, that the class of regular languages is closed under homomorphism. In other words, given a DFA that recognizes and a homomorphism f, construct a finite automaton role="math" localid="1660800566802" that recognizes Consider the machine role="math" localid="1660800575641" that you constructed. Is it a DFA in every case?
b. Show, by giving an example, that the class of non-regular languages is not closed under homomorphism.
a. Let be an infinite regular language. Prove that can be split into two infinite disjoint regular subsets.
b. Let be two languages. Write and contains infinitely many strings that are not in . Show that if and are two regular languages where , then we can find a regular language where .
Let be the same as in Problem 1.33. Consider each row to be a binary number and let the top row of w is a larger number than is the bottom row}. For example, , but . How that D is regular.
In the traditional method for cutting a deck of playing cards, the deck is arbitrarily split two parts, which are exchanged before reassembling the deck. In a more complex cut, called Scarne’s cut, the deck is broken into three parts and the middle part in placed first in the reassembly. We’ll take Scarne’s cut as the inspiration for an operation on languages. For a language , let
a. Exhibit a language for which
b. Show that the class of regular languages is closed under .
What do you think about this solution?
We value your feedback to improve our textbook solutions.