Chapter 1: Q57P (page 92)
If A is any language, let − be the set of all first halves of strings in A so that ,
Show that if A is regular, then so is −
Short Answer
Regular language and its deterministic finite machine are shown below.
/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
Learning Materials
Features
Discover
Chapter 1: Q57P (page 92)
If A is any language, let − be the set of all first halves of strings in A so that ,
Show that if A is regular, then so is −
Regular language and its deterministic finite machine are shown below.
All the tools & learning materials you need for study success - in one app.
Get started for free
Give regular expressions generating the languages of Exercise 1.6.
a. {begins with a 1 and ends with a 0}
b. { contains at least three 1s}
c. { contains the substring 0101 (i.e., w = x0101y for some x and y)}
d. { has length at least 3 and its third symbol is a 0}
e. { starts with 0 and has odd length, or starts with 1 and has even length}
f. { doesn’t contain the substring 110}
g. { the length of is at most 5}
h. { is any string except 11 and 111}
i. { every odd position of w is a 1 }
j. { contains at least two 0s and at most one 1}
k.
l. { contains an even number of 0 s, or contains exactly two 1s}
m. The empty set
n. All strings except the empty string
An all- that accepts if every possible state that M could be in after reading input M is a state from F. Note, in contrast, that an ordinary NFA accepts a string if some state among these possible states is an accept state. Prove that all-NFAs recognizes the class of regular languages.
Let be the same as in Problem 1.33. Consider the top and bottom rows to be strings of 0s and 1s, and let the bottom row of w is the reverse of the top row of w}. Show that is E not regular.
For languages A and B let the perfect shuffle of A and B be the language
Show that the class of regular languages is closed under perfect shuffle.
The construction in Theorem 1.54 shows that every GNFA is equivalent to a GNFA with only two states. We can show that an opposite phenomenon occurs for DFAs. Prove that for every , a language exists that is recognized by a DFA with k states but not by one with only states
What do you think about this solution?
We value your feedback to improve our textbook solutions.